Maven Could not transfer artifact junit:junit:jar:3.8.1

我怕爱的太早我们不能终老 提交于 2019-12-24 04:56:19

问题


My software version:

  • Eclipse for Java Developers: http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr2
  • SVN Plugin: http://subclipse.tigris.org/update_1.8.x

The exception message:

Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: Failure to transfer junit:junit:jar:3.8.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: **Could not transfer artifact junit:junit:jar:3.8.1 from/to central (http://repo1.maven.org/maven2)**: The operation was cancelled. (org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources:default-resources:process-resources)

But the junit:junit:jar:3.8.1 can be found through the following link: http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22junit%22%20AND%20a%3A%22junit%22%20AND%20v%3A%223.8.1%22

There isn't any HTTP proxy.

How can I resolve the problem? Any suggestion is welcome!

来源:https://stackoverflow.com/questions/10788225/maven-could-not-transfer-artifact-junitjunitjar3-8-1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!