http://www.javatang.com/archives/2010/01/23/4518375.html
Return code is: 400
400 error means "bad request", the reason here is often that there is no deployment to the nexus repository. The repository of nexus is divided into three types: Hosted, Proxy and Virtual, and there is also a repository group (repository group) for combining multiple repositories. When deploying, it can only be deployed to the Hosted type warehouse. If it is other types, this 400 error will appear.
mvn deploy:deploy-file -DgroupId=com.cpcn -DartifactId=cpcn-payment-api -Dversion=2.0.9 -Dpackaging=jar -Dfile=c:/maven_lib_temp/cpcn-payment-api-2.0.9.jar -Durl=http://admin:[email protected]:8081/nexus/content/repositories/thirdparty -DrepositoryId=thirdparty