无法从中心传输项目maven编译器插件
我刚刚下载了EclipseIndigo和m2e插件,这个错误出现在我的项目的无法从中心传输项目maven编译器插件,maven,eclipse-indigo,Maven,Eclipse Indigo,我刚刚下载了EclipseIndigo和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
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
很奇怪。
我检查了最后一个url,那里确实有一个pom
文件
我曾尝试在我的settings.xml
中指定一个镜像,但显然它看起来并没有这样做
另外,当我键入mvn clean
时,我会收到一条buildsuccessful
消息。为什么
感谢您的帮助。未能获取依赖项的POM不视为错误。这只是一个警告。这解释了
mvn clean
成功的原因。就未咨询您的设置而言,您是否已确保已将M2E配置为使用您的设置文件?实际上,此警告位于CoreException:无法计算生成计划:。。。maven编译器插件…
。至于设置,我确实在Maven首选项中指定了它(在Eclipse中)。我怎样才能确保它试过镜子?@krookdking确保它试过什么镜子?Maven将只搜索设置中指定的存储库。如果在设置中指定镜像,也将搜索这些镜像。至于确保始终可以尝试指定-e
开关。如果强制M2Eclipse使用外部Maven安装,那么实现起来就更容易了。