Thursday, October 20, 2011

Setup maven from scratch on Ubuntu

sudo apt-get install maven2
copy settungs.xml to ~/.m2


Edit .bashrc, add few lines:
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.16
export PATH=$JAVA_HOME/bin:$PATH
export M2_HOME=/usr/share/maven2
export M2=$M2_HOME/bin
export PATH=$M2:$PATH

No comments:

Post a Comment