This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8202|Reply: 1

[Source] Maven command pushes third-party jar packages to Nexus private repositories

[Copy link]
Posted on 2021-12-21 14:18:34 | | | |
During the development process, third-party jar packages may need to be used, which are not published in the public Maven repository, and our Maven project cannot directly modify pom.xml files to introduce third-party jar packages.

Publish to the local repository

You can publish third-party jar packages to the local repository through the mvn install:install-file command, but the disadvantage is that only you can use it, and after submitting the code, colleagues will report an error. The command is as follows:


Publish to Nexus private repositories


Publish a third party to the company's internal private Maven repository, colleagues can use it directly, and the pull code will not report errors.Some commands on the Internet are cumbersome, but you can actually do without modifying the settings.xml configuration file, the command is as follows:

The renderings are as follows:



Note: DartifactId, DgroupId parameters, and the package of the jar packageThere is no direct relationship, can be set at will.




Previous:.NET/C# multithreaded concurrency using the pit of HttpWebRequest
Next:Elasticsearch-7.x uses xpack for security authentication
Posted on 2021-12-26 17:21:42 |
Learn to learn。。。。。。。。。。
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com