`
abin103
  • 浏览: 151085 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

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备注哈 ,欢迎访问小站 利多乐

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics