Maven Rocks!

Here's a few samples of me using maven:

Tips and tricks

A couple aliases to put in your .bashrc:
alias mvnsetup='source /home/corrado/_DEV/Maven/maven_config.sh'
alias mvNotest='mvn -Dmaven.test.skip=true'


the related maven_config.sh Bash script:
echo
echo "Maven Setup Script 1.0.1"
echo

echo "setting up Java..."
export JAVA_HOME=/home/corrado/_DEV/java7/jdk1.7.0_71
echo JAVA_HOME: $JAVA_HOME

echo "setting up Maven..."
export M2_HOME=/home/corrado/_DEV/Maven/apache-maven-3.2.5
echo M2_HOME: $M2_HOME

export M2=$M2_HOME/bin
echo M2: $M2

export MAVEN_OPTS="-Xms1024m -Xmx4096m"
echo MAVEN_OPTS: $MAVEN_OPTS

echo "adding 'mvn' to your lookup path..."
export PATH=$M2:$PATH
echo PATH: $PATH


echo "Moving to _DEV folder..."
DEV_HOME=/home/corrado/_DEV/
cd $DEV_HOME
echo "working directory: `pwd`"


echo 
echo "Welcome to your Maven shell!"
echo 


To setup maven on your Bash shell, start with mvnsetup first:
corrado@powerdesk:~$ mvnsetup 

Maven Setup Script 1.0.1

setting up Java...
JAVA_HOME: /home/corrado/_DEV/java7/jdk1.7.0_71
setting up Maven...
M2_HOME: /home/corrado/_DEV/Maven/apache-maven-3.2.5
M2: /home/corrado/_DEV/Maven/apache-maven-3.2.5/bin
MAVEN_OPTS: -Xms1024m -Xmx4096m
adding 'mvn' to your lookup path...
PATH: /home/corrado/_DEV/Maven/apache-maven-3.2.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Moving to _DEV folder...
working directory: /home/corrado/_DEV

Welcome to your Maven shell!

corrado@powerdesk:~/_DEV$