1

我刚刚下载了 Eclipse Indigo 和 m2e 插件,这个错误出现在pom.xml我的项目中:

ArtifactResolutionException: 
  Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 
  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 org.apache.maven.plugins:
  maven-compiler-plugin:pom:2.3.2 from/to central (http://repo1.maven.org/maven2): 
  null to http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom

我发现原始错误消息与null. 我检查了最后一个网址,那里确实有一个pom文件。

我曾尝试在我的镜子中指定一面镜子,settings.xml但显然它似乎并不在那里。

此外,当我键入时,mvn clean我会收到一条BUILD SUCCESSFUL消息。怎么来的 ?

谢谢你帮助我。

4

1 回答 1

0

未能获取依赖项的 POM 不会被视为错误。这只是一个警告。这就解释了为什么mvn clean是成功的。至于您的设置未被咨询,您是否确保已将 M2E 配置为使用您的设置文件?

于 2011-11-05T23:54:49.137 回答