nexus3.0 上传第三方 jar包

1. 确认本地 maven 的配置文件中,设置的 server 用户账号有权限进行 thirdparty 仓库的操作权限

  <server>  
    <id>nexus-thirdparty</id>  
    <username>thirdparty</username>  
    <password>thirdparty</password>  
  </server>

2. 使用命令发布 jar 包

mvn deploy:deploy-file -DgroupId=com.aliyun.alicom -DartifactId=alicom-mns-receive-sdk -Dversion=1.0.1 -Dpackaging=jar -Dfile=alicom-mns-receive-sdk-1.0.1.jar
 -Durl=http://HOST:PORT/repository/thirdparty/ -DrepositoryId=nexus-thirdparty

其中最后的 -DrepositoryId 的值与第一步中配置的 server.id 一致


猜你喜欢

转载自blog.csdn.net/zxcvqwer19900720/article/details/80310700
今日推荐