发布本地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> 

  

posted @ 2017-01-10 11:21  Mason.Ke  阅读(268)  评论(0编辑  收藏  举报