In short the installation follow:
- Download the apache maven binaries from the offical website http://maven.apache.org.
- Decompress the binaries. I use /home/magnus/bin/apache-maven-3.0.4 on my local laptop, but for a server I suggest /opt/apache-maven-3.0.4.
- Modify binary path and environment which I previously described here http://magnus-k-karlsson.blogspot.se/2012/04/how-to-set-javahome-environment.html.
$ cat /etc/environment
PATH="/home/magnus/bin/apache-maven-3.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
JAVA_HOME=/usr/lib/jvm/jdk1.6.0_31
M2_HOME=/home/magnus/bin/apache-maven-3.0.4
No comments:
Post a Comment