---
title: " org.apache.maven deploy 400错误"
author: "abin103"
date: "2014-08-15T13:01:39Z"
tags: []
categories: ["编程语言"]
slug: "org-apache-maven-deploy-400"
draft: false
lastmod: "2014-08-15T13:01:39Z"
id: 2104297
url: "https://abin103.iteye.com/blog/2104297"
---

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. -&gt; \[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备注哈 ，欢迎访问小站 [**利多乐**](http://www.liduole.com)