maven 返回400错误, 无法上传到maven服务器, 只能是type=hosted的可以成功

maven 返回 400错误
http://www.javatang.com/archives/2010/01/23/4518375.html

Return code is: 400


400错误的含义是“错误的请求”,在这里的原因是往往是没有部署到nexus的仓库中。nexus的repository分三种类型:Hosted、Proxy和Virtual,另外还有一个repository group(仓库组)用于对多个仓库进行组合。部署的时候只能部署到Hosted类型的仓库中,如果是其他类型就会出现这个400错误。 


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 


猜你喜欢

转载自dannyhz.iteye.com/blog/2388652