[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.