nexus3.0 upload third-party jar package with command

 It took a little more time to upload the third-party jar package today, and now the record has been recorded for later search.

 

Excuting an order:

mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=10.2.0.1.0 -Dpackaging=jar -Dfile=D:\ojdbc6.jar -Durl=http://192.168.0.13:8081/repository/third-party -DrepositoryId=nexus

 

There are some pits, pay attention:

 -Durl=http://192.168.0.13:8081/repository/third-party The path is the path where you want to upload yours, third-party is a library I built myself, and the name is also given by myself. The corresponding name is as shown below.



 

-DrepositoryId=nexus nexus is the username and password of nexus configured in mavensetting.xml. As shown below



 

Finally, execute the maven result, as shown below



 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326697032&siteId=291194637