2012-10-25 169 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