cd /opt
wget [https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz](https://dlcdn.apache.org/maven/maven-3/3.9.3/source/apache-maven-3.9.3-src.tar.gz)
tar -xvzf apache-maven-3.6.3-bin.tar.gz
mv apache-maven-3.6.3 mavensudo apt update
sudo apt install openjdk-8-jdkvi ~/.bashrc#bash_profile
#get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
#user specific environment and startup programs
export JAVA_HOME=/usr/lib/jvm/java-1.21.0-openjdk-amd64
export M2_HOME=/opt/maven
export M2=/opt/maven/bin
export PATH=$PATH:$HOME/bin/:$JAVA_HOME:$M2:$M2_HOME
export PATH:wq!
source ~/.bashrc
-
Maven integration
-
Maven invoker
Go to maven and uncheck install-automatically and update the maven home directory path and save
Go to new the iteam and create a maven job
sudo apt-get install docker.io -y sudo apt-get install ansible -y