JAVA 编译产生Return code is: 400 , ReasonPhrase:Bad Request 错误
汉哥 2015-02-10 03:35:33 cd D:\DTLDownLoads\spiderman\spiderman-sample; "JAVA_HOME=D:\\Program Files\\Java\\JDK17~1.0.7.0" cmd /c "\"\"D:\\Program Files\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\" -Dexec.args=\"-classpath %classpath TestSpider\" -Dexec.executable=\"D:\\Program Files\\Java\\JDK17~1.0.7.0\\bin\\java.exe\" -Dexec.classpathScope=test -Dmaven.ext.class.path=\"D:\\Program Files\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 process-test-classes org.codehaus.mojo:exec-maven-plugin:1.2.1:exec\""
Scanning for projects...
------------------------------------------------------------------------
Building spiderman-sample 0.1.0-SNAPSHOT
------------------------------------------------------------------------
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/junit/test/4.8.2/test-4.8.2.pom
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/eweb4j/spiderman-plugin/0.1.0-SNAPSHOT/maven-metadata.xml
Could not transfer metadata org.eweb4j:spiderman-plugin:0.1.0-SNAPSHOT/maven-metadata.xml from/to nexus-releases (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/eweb4j/spiderman-plugin/0.1.0-SNAPSHOT/maven-metadata.xml. Return code is: 400 , ReasonPhrase:Bad Request.
Failure to transfer org.eweb4j:spiderman-plugin:0.1.0-SNAPSHOT/maven-metadata.xml from https://oss.sonatype.org/service/local/staging/deploy/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of nexus-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.eweb4j:spiderman-plugin:0.1.0-SNAPSHOT/maven-metadata.xml from/to nexus-releases (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/eweb4j/spiderman-plugin/0.1.0-SNAPSHOT/maven-metadata.xml. Return code is: 400 , ReasonPhrase:Bad Request.
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/eweb4j/spiderman-plugin/0.1.0-SNAPSHOT/spiderman-plugin-0.1.0-SNAPSHOT.pom
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 16.829s
Finished at: Tue Feb 10 15:28:20 CST 2015
Final Memory: 6M/15M
------------------------------------------------------------------------
Failed to execute goal on project spiderman-sample: Could not resolve dependencies for project org.eweb4j:spiderman-sample:jar:0.1.0-SNAPSHOT: Failed to collect dependencies for [org.junit:test:jar:4.8.2 (test), mysql:mysql-connector-java:jar:5.1.27 (compile), org.eweb4j:spiderman-plugin:jar:0.1.0-SNAPSHOT (compile)]: Failed to read artifact descriptor for org.junit:test:jar:4.8.2: Could not transfer artifact org.junit:test:pom:4.8.2 from/to nexus-releases (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/junit/test/4.8.2/test-4.8.2.pom. Return code is: 400 , ReasonPhrase:Bad Request. -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException