无法从中心传输工件maven-compiler-plugin

时间:2011-11-05 18:12:27

标签: maven eclipse-indigo

我刚刚下载了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条消息。怎么样?

感谢您帮助我。

1 个答案:

答案 0 :(得分:0)

无法获取依赖项的POM不被视为错误。这只是一个警告。这解释了mvn clean成功的原因。如果您没有参考您的设置,您是否确保已将M2E配置为使用您的设置文件?

相关问题