上传第三方Jar包到Nexus私服

437 阅读1分钟

方式一:

maven的Setting.xml

  <servers> 
    <server>
         <id>gassSnapshots</id>
          <username>admin</username>
          <password>admin123</password>
    </server>
  </servers> 

执行命令

mvn deploy:deploy-file -DgroupId=com.hikvision -DartifactId=artemis-http-client -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=artemis-http-client-1.0-SNAPSHOT.jar -Durl=http://192.168.0.51:9891/nexus/content/repositories/gassSnapshots -DrepositoryId=gassSnapshots

方式二:

Nexus 后台管理直接导入

image.png