2012-10-25 168 views
0

以下问题出现在标记的看法:M2E故障转移的JUnit

Failure to transfer junit:junit:jar:3.8.1 from (http://nexus.xyz.com/content/groups/public) 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://xyz.com/content/groups/public): The operation was cancelled. pom.xml /project line 1 Maven Configuration Problem

我需要为M2E添加一个插件排除过滤到我的POM?

回答

0

似乎Maven被配置为从您的公司Maven存储库下载任何工件。这是一个常见的设置。公司的Maven仓库通常作为Maven Central Repository的代理,其中包含大部分开源库,如JUnit。但是这似乎不适用于您的设置。尝试下载JUnit失败并且您正在收到此错误。

+0

我认为它更多的是一个m2eclipse问题。该项目可以从控制台(mvn clean install)中生成。我们还在使用Junit 4而不是3.8.1,所以我不确定它从哪里挑选。 – DarVar