launched an instance with m7i-flex-large
install dependencies java 17 for both maven and jenkins
sudo dnf install java-17-amazon-corretto -y
copy the latest 2 links from the jenkins.io and install jenkins
yum install jenkins -y
systemctl start jenkins
access with jenkins page with port no 8080 and public ip
crate an account
now install git
yum install git -y
git init
install maven
yum install maven -y
now create a jenkins job and configure with git url

and build now your pom.xml is in workspace
now again configure the job in build steps invoke toplevel maven targets
give "clean package" in goals
now save and build now
build success
