上传jar包至nexus

上传命令:

mvn deploy:deploy-file

-DgroupId=com.xxx

-DartifactId=xxx-pdf

-Dversion=16.10.0

-Dpackaging=jar

-Dfile=/Users/xxx/work/xxx/xxx/xxx/libs/xxx.pdf-16.11.0.jar 

-Durl=http://10.12.0.79:8888/nexus/content/repositories/thirdparty/ 

-DrepositoryId=thirdparty

 

maven conf/setting.xml

<server>
        <id>thirdparty</id>
        <username>xxx_dev</username>
        <password>xxx123</password>
    </server>

  

原文地址:https://www.cnblogs.com/kisf/p/7885070.html