Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Koyasiva/java-sample

Repository files navigation

Installing maven

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 maven

Installing JAVA

sudo apt update

sudo apt install openjdk-8-jdk

Exporting the path

vi ~/.bashrc

Add the following configuration

#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

Save the bashrc

:wq!

source ~/.bashrc

Now go to Jenkins and download the following plugins

  1. Maven integration

  2. Maven invoker

Go to global tool configuration

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

Installing docker

  sudo apt-get install docker.io -y

Installing ansible

   sudo apt-get install ansible -y

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published