当前位置:   article > 正文

Maven Failed to deploy artifacts: status: 405 PUT_failed to deploy artifacts: could not transfer art

failed to deploy artifacts: could not transfer artifact

问题现象

 Failed to deploy artifacts: Could not transfer artifact  http-sign-request-client:jar:1.0.0 from/to nexus-user (https:///repository/maven-public/): transfer failed for https:///repository/maven-public/c equest-client/1.0.0/http-sign-request-client-1.0.0.jar, status: 405 PUT

mvn deploy:deploy-file -DgroupId=xxx -DartifactId=http-sign-xxx-client -Dversion=1.0.0 -Dpacckaging=jar -Dfile=http-sign-request-xx-1.0.0.jar -DrepositoryId=nexus-user -Durl=https://xxx/repository/maven-public/

执行命令后报错

解决方法

修改命令如下

mvn deploy:deploy-file -DgroupId=x.xx-DartifactId=http-sign-request-xx-Dversion=1.0.0 -Dpacckaging=jar -Dfile=http-sign-request-xxx-1.0.0.jar -DrepositoryId=nexus-user -Durl=https://xxx/repository/maven-releases/

问题原因

deploy我们的jar包,应该使用hosted类型的nexus仓库。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/656174
推荐阅读
相关标签
  

闽ICP备14008679号