Docs/其他/maven提交jar到nexus私服/mvn提交jar到私服.txt
2022-10-18 16:59:37 +08:00

54 lines
No EOL
2.1 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<<<<<<< HEAD
maven 使用命令发布jar包到私服nexus
setting.xml的配置
这个配置表示你的私服账号信息并设置一个id通过id来区别多个私服
<server>
<id>3rd_Party</id>
<username>admin</username>
<password>Qhiex@2017nexus</password>
</server>
命令:
mvn deploy:deploy-file -DgroupId=com.qhbaoe.platform.yanzhaoic -DartifactId=encrypt-icss -Dversion=1.0 -Dpackaging=jar -Dfile=encrypt-icss-1.0.jar -Durl=http://119.23.250.117:9090/repository/3rd_Party/ -DrepositoryId=3rd_Party
说明:
1、Durl可以在nexus 的 repository中找到地址并复制粘贴如果没看到可能权限不够
2、DrepositoryId前面配置的server里面的id
常见错误解析:
Return code is: 400, ReasonPhrase: Repository does not allow updating assets: maven-releases.
表示你要换一下版本号,这个版本已存在,不能更新
Return code is: 401
表示你的服务账号密码不对
Return code is: 405, ReasonPhrase: PUT
=======
maven 使用命令发布jar包到私服nexus
setting.xml的配置
这个配置表示你的私服账号信息并设置一个id通过id来区别多个私服
<server>
<id>3rd_Party</id>
<username>admin</username>
<password>Qhiex@2017nexus</password>
</server>
命令:
mvn deploy:deploy-file -DgroupId=com.qhbaoe.platform.yanzhaoic -DartifactId=encrypt-icss -Dversion=1.0 -Dpackaging=jar -Dfile=encrypt-icss-1.0.jar -Durl=http://119.23.250.117:9090/repository/3rd_Party/ -DrepositoryId=3rd_Party
说明:
1、Durl可以在nexus 的 repository中找到地址并复制粘贴如果没看到可能权限不够
2、DrepositoryId前面配置的server里面的id
常见错误解析:
Return code is: 400, ReasonPhrase: Repository does not allow updating assets: maven-releases.
表示你要换一下版本号,这个版本已存在,不能更新
Return code is: 401
表示你的服务账号密码不对
Return code is: 405, ReasonPhrase: PUT
>>>>>>> 28bec05... 20200611
-Durl 地址有问题,和 put没有关系