0
点赞
收藏
分享

微信扫一扫

mavn 上传私服jar包

言诗把酒 2022-01-13 阅读 39

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 条评论