mavn 上传私服jar包

阅读 40

2022-01-13

1、setting 里面要有用户名和密码

 <servers>
    <server>
        <id>Life-Agent-3rd-party</id>
        <username>life-agent</username>
        <password>life-agent#123</password>
    </server>
</servers>
 

2、使用 deploy命令

mvn deploy:deploy-file -DgroupId=gui.ava -DartifactId=html2image -Dversion=0.9 -Dpackaging=jar -Dfile=html2image-0.9.jar -Durl=http://10.10.108.39:8081/repository/Life-Agent-3rd-party/ -DrepositoryId=Life-Agent-3rd-party

3、注意DrepositoryId  和 setting里面的要相同

精彩评论(0)

0 0 举报