MVN deploy reported 400 errors

Source: Internet
Author: User
Tags stack trace
[INFO]------------------------------------------------------------------------[INFO] BUILD FAILURE [INFO]-------- ----------------------------------------------------------------[INFO] Total time:2.532 s [info] finished at:2014-1 2-29t19:27:43+08:00 [INFO] Final memory:9m/22m [INFO]------------------------------------------------------------- -----------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (Default-deploy) o N Project d4:failed to deploy artifacts:could not tra nsfer artifact d3:d4:jar:0.0.1-20141229.112743-1 from/to loiy_sn Apshots (http:/127.0.0.1:8081/nexus/content/repositories/loiy_snapshots/) Failed to transfer F ile:http://127.0.0. 1:8081/nexus/content/repositories/loiy_snapshots/d3/d4/0.0.1-snapshot/d4-0.0.1-20141229.112743-1.jar. 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 Swit ch.[ERROR]  
Re-run Maven using The-x switch to enable full debug logging.  
[ERROR] [ERROR] For more information on the errors and possible solutions, please rea d the following articles: [ERROR] [Help 1] HT   Tp://cwiki.apache.org/confluence/display/maven/mojoexecutione xception

Return Code is:400
The meaning of the 400 error is "wrong request", where the reason is often not deployed to the Nexus's warehouse.

Finally found that the local warehouse Loiy_snapshots policy selected as release.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.