Instalace Maven v Debianu

Instalace Maven v Debianu

mkdir /usr/share/maven && cd /usr/share/maven
wget http://www-eu.apache.org/dist/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
tar -zxvf apache-maven-3.5.3-bin.tar.gz
mv ./apache-maven-3.5.3/* . && rmdir apache-maven-3.5.3

readlink -f `which java`
vi /etc/profile.d/maven.sh
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export M2_HOME=/usr/share/maven
export PATH=${M2_HOME}/bin:${PATH}

source /etc/profile.d/maven.sh
mvn -v

mvn -X | grep settings.xml
vi /usr/share/maven/conf/settings.xml
servers..