cd /opt/tools
Download Maven 3
wget ftp://mirror.csclub.uwaterloo.ca/apache/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.tar.gz
Unpack Maven
tar -xzvf apache-maven-3.0.4-bin.tar.gz
Add java and maven environment variables:
sudo vi ~/.bashrc
export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
export M2_HOME=/opt/tools/apache-maven-3.0.4
export MAVEN_HOME=/opt/tools/apache-maven-3.0.4
export M2=/opt/tools/apache-maven-3.0.4/bin
export PATH=/opt/tools/apache-maven-3.0.4/bin:$PATH
Save ~/.bashrc
source ~/.bashrcTest Maven:
mvn --version
URL you used seems not working ... probably is better to use this
ReplyDeletehttp://ftp.cixug.es/apache/maven/maven-3/3.1.0/binaries/apache-maven-3.1.0-bin.tar.gz
to download binaries
Thanks Rafael! My link is probably outdated.
DeleteAre you trying to make cash from your traffic with popup ads?
ReplyDeleteIf so, did you ever use Pop Cash?