MAVEN INSTALLATION sudo apt update sudo apt install openjdk-17-jdk -y java --version sudo update-alternatives --config java sudo apt install maven -y mvn -version Creating a Maven Project Step 1: Open Terminal & Generate Project If there is already a folder named MyMavenApp then change the -DrartifactId value to some other name or delete the MyMavenApp folder. mvn archetype:generate -DgroupId=com.example -DartifactId=MyMavenApp -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false cd MyMavenApp Maven Project Layout sudo snap install tree tree Open pom.xml file gedit pom.xml Remove the existing pom.xml file and paste the following <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> ...
sudo apt update sudo apt upgrade -y sudo wget -O /etc/apt/keyrings/jenkins-keyring.asc \ https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key echo "deb [signed-by=/etc/apt/keyrings/jenkins-keyring.asc]" \ https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/null sudo apt update sudo apt install jenkins -y sudo systemctl start jenkins sudo systemctl enable jenkins sudo systemctl status jenkins localhost:8080 sudo cat /var/lib/jenkins/secrets/initialAdminPassword Copy the displayed password and paste it into the "Administrator password" field in your browser. Click "Continue". On the next screen, click "Install suggested plugins" to install a recommended set of plugins. After the plugins are installed, you will be asked to create an administrator user. Fill in the required details and click "Save and Finish". You should now see the Jenkins dashboard, ready for use. Prepare Yo...
Comments
Post a Comment