发布本地jar到Nexus仓库

Posted Fly , Mason ! ! !

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了发布本地jar到Nexus仓库相关的知识,希望对你有一定的参考价值。

mvn deploy:deploy-file -Durl=http://192.168.0.4:8081/nexus/content/repositories/thirdparty 
-DrepositoryId=thirdparty -Dfile=jmxspi.jar -DgroupId=oracle.as -DartifactId=jmxspi -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true

  

一定要在settting.xml配置认证。  
  <server>  
      <id>thirdparty</id>  
      <username>admin</username>  
      <password>admin123</password>  
  </server> 

  

以上是关于发布本地jar到Nexus仓库的主要内容,如果未能解决你的问题,请参考以下文章

批量导入本地仓库Jar到Nexus3中

maven上传jar到nexus本地仓库

Nexus3将本地jar包添加到仓库

maven私服仓库nexus,怎样手动上传jar

手动发布本地jar包到Nexus私服

nexus 搭建maven本地仓库