当前位置:   article > 正文

org.apache.maven deploy 400错误

org.apache.maven deploy 400

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project xxx.3rd: Failed to deploy artifacts: Could not transfer artifact com.xxx.xxx-3rd:pom:1.0 from/to nexus-releases (http://xxx.xxx.xx.xx:8081/nexus/content/repositories/releases/): Failed to transfer file: http://xxx.xxx.xx.xx:8081/nexus/content/repositories/releases/com/xxx/xxx/1.0/xxx-3rd-1.0.pom. Return code is: 400, ReasonPhrase: Bad Request. -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

 

 最后发现,是因为不允许再次发布,到nexus后台把 Deployment Policy 改成  Allow Redeploy,

要注意还有可能是repository的id 和 maven setting中id 要对应,要不也会报400错误

ok备注哈 ,欢迎访问小站 利多乐

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

闽ICP备14008679号