在nexus界面上可以手动上传release和hosted的包,但是无法手动上传snapshots的包

上传snapshots jar包到nexus仓库

 

 

 需要使用 mvn deploy 来上传snapshots包,比如

mvn deploy:deploy-file -DgroupId=org.apache.impala -DartifactId=impala-frontend -Dversion=0.1-SNAPSHOT -Dpackaging=jar -Dfile=/home/lintong/下载/impala-frontend-0.1-SNAPSHOT.jar -Durl=http://ip:8081/nexus/repository/maven-snapshots/ -DrepositoryId=nexus-snapshots

其中

-Durl 指定的是仓库的URL地址

上传snapshots jar包到nexus仓库

 

-DrepositoryId 指的是maven settings.xml中的repository的id

注意<server></server>中的账号密码的id需要和<repository></repository>中的id对的上

上传snapshots jar包到nexus仓库

 上传snapshots jar包到nexus仓库

 

相关文章:

  • 2022-12-23
  • 2021-05-24
  • 2021-08-13
  • 2021-12-29
  • 2021-12-06
  • 2022-01-30
猜你喜欢
  • 2021-05-06
  • 2021-05-17
  • 2022-01-01
  • 2021-07-14
  • 2021-05-17
  • 2022-12-23
相关资源
相似解决方案