Getting the wrong jar out of Maven repository

From: Guillaume Radde [mailto:guillaume.radde@redhat.com]
Sent: Saturday, September 29, 2012 5:24 PM
To: Ruckman, Maurice (HAL)
Subject: Re: Nexus and Maven

If for some reason (and it rarely happens), you think you have a wrong jar in your local repository, you can rename the repository folder and maven will think it doesn't have a local repo and re-download everything:

$ mv /home/maurice/.m2/repository /home/maurice/.m2/disabled-repository
$ mvn install
-> maven will recreate the /home/maurice/.m2/repository folder with fresh content it will have to redownload
If you believe the shared Nexus repository contains an eronous jar, you can disable it in your settings.xml (see /home/maurice/.m2/settings.xml). You will have to fight with the proxy if you disable the shared Nexus repo on your VM as maven will try to connect directly to the internet.

Hope all is well

G

Setup Subversion (SVN) Server in Ubuntu 12.04

1. Install Subversion
sudo apt-get install subversion libapache2-svn apache2

2. Where you want to keep repository?
sudo mkdir /svn
sudo gedit /etc/apache2/mods-enabled/dav_svn.conf

Delete everything and make it this instead:

<Location /svn>
DAV svn
SVNParentPath /svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>

3. Create a user
sudo htpasswd -cm /etc/apache2/dav_svn.passwd username

4. Setup first repository
cd /svn
sudo svnadmin create test

5. Make sure you have all of the proper permissions for the repository
sudo chown -R www-data:www-data /svn

6. Restart Apache service
sudo /etc/init.d/apache2 restart

7. You are now ready to use TortoiseSVN for Windows or RapidSVN for Linux

8. Your repository URL is http://localhost/svn/test
Note: It looks like RapidSVN does not like spaces in its file names.

Please see PDF for original notes.

Ubuntu SSH Steps

1. Ubuntu needs to run in Virtual Box as a bridged network

2. Make sure you have SSH installed, it will automatically start
sudo apt-get install ssh

3. Use ifconfig to get the virtual machine's IP address

4. Use putty and SSH onto that machine or FileZilla

You can remove SSH by (did not disable)
sudo apt-get remove ssh

Start/Stop with:
sudo /etc/init.d/ssh stop
sudo /etc/init.d/ssh start

VM Upates for Safenet Installation

sudo su -

# DELETE CRON JOBS

cd /etc/cron.hourly
rm jboss-config
rm jboss-config~

# RE-RUN THE 256-BIT STEPS

extract the JAR file and copy the files into /opt/jce

$cd /opt/jce
$cp /home/jboss1/Desktop/jce .

$rm -f /usr/lib/jvm/jre-1.6.0-sun.x86_64/lib/security/{local,US_export}_policy.jar
$update-alternatives --auto jce_1.6.0_sun_local_policy.x86_64
$update-alternatives --install /usr/lib/jvm/jre-1.6.0-sun.x86_64/lib/security/local_policy.jar jce_1.6.0_sun_local_policy.x86_64 /opt/jce/local_policy.jar 160200 --slave /usr/lib/jvm/jre-1.6.0-sun.x86_64/lib/security/US_export_policy.jar jce_1.6.0_sun_us_export_policy.x86_64 /opt/jce/US_export_policy.jar

scp Setup

If you are trying to run an scp command and you keep getting a drop connection, then...

Secure Copy - scp - When setting up secure copy between jBoss and the target server, get the keys in place in the known_hosts file and the like, and then first connect to the target server via ssh, and then do a test ssh command.  If that works, then you can continue with your testing and final rollout.