Header

Running Maven, a popular build tool for Java

In order to be able to use Maven (mvn) to build your Java projects, you will need to first add this step:

wget https://dlcdn.apache.org/maven/maven-3/3.8.2/binaries/apache-maven-3.8.2-bin.tar.gz -P /tmp
tar xf /tmp/apache-maven-*.tar.gz -C /home/deploy-build
ls -l /home/deploy-build/apache-maven-3.8.2
export M2_HOME=/home/deploy-build/apache-maven-3.8.2/
export MAVEN_HOME=/home/deploy-build/apache-maven-3.8.2/
export PATH=${M2_HOME}/bin:${PATH}
mvn -version
Tree

Proudly powered by Katapult. Running on 100% renewable energy.