Nexus Training Notes Dec 12 2023

DevOps

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Day2

How to Upload java package using Maven?

https://www.devopsschool.com/blog/how-to-upload-the-artifacts-in-sonatype-nexus/


Step 1 - mvn archetype:generate -DgroupId=com.companyname.devopsschool -DartifactId=chat -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false


Step 2 - Repo location in pom.xml
http://18.235.233.115:8081/repository/devopsschool-hosted/

<distributionManagement>
	<repository>
		<id>devopsschool-release</id>
		<name>Internal Releases</name>
		<url>http://18.235.233.115:8081/repository/devopsschool-hosted/</url>
	</repository>
 
	<snapshotRepository>
		<id>devopsschool-snapshot</id>
		<name>Internal Releases</name>
		<url>http://18.235.233.115:8081/repository/devopsschool-hosted/</url>
	</snapshotRepository>
</distributionManagement>

Step 2 - Access of nexus must be in setting.xml



How to Download java package using Maven?

How to configure Sonatype Nexus repository to download maven dependency?
--------------------------------------- chat ====> Nexus mail =====> Download chat Package mvn ---> pom.xml ----> Local Repo --> Central repo C:\Users\Rajesh Kumar\.m2\repository https://repo.maven.apache.org/maven2/ mvn ---> pom.xml ----> Local Repo --> nexus C:\Users\Rajesh Kumar\.m2\repository mvn archetype:generate -DgroupId=com.companyname.devopsschool -DartifactId=mail -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false How to Upload Docker image using Docker? How to Download Docker image using Docker?
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x