maven returns 400 error, unable to upload to maven server, only type=hosted can be successful

maven returns 400 error
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


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326231584&siteId=291194637