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
...全文
724 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
skgary 2015-02-10
  • 打赏
  • 举报
回复
https://oss.sonatype.org/service/local/staging/deploy/maven2/org/junit/test/4.8.2/test-4.8.2.pom 或者看看有没有别的版本的junit可用。
skgary 2015-02-10
  • 打赏
  • 举报
回复
maven依赖关系对应的服务器产生了400的错。。。 改下maven的配置。。。或者研究下服务器为什么会出这个错。

62,634

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧