54 lines
No EOL
2.1 KiB
Text
54 lines
No EOL
2.1 KiB
Text
<<<<<<< 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没有关系 |