eclipse juno中的maven安装错误

标签 maven eclipse-juno

当我尝试在 eclipse juno 中安装 maven 时,出现此错误。
错误详情:

Multiple annotations found at this line:
    - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (execution: default-compile, phase: 
     compile)
    - CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies could not be resolved: 
     Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1: ArtifactResolutionException: The repository system is offline but the 
     artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 is not available in the local repository.
    - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (execution: default-testCompile, 
     phase: test-compile)
如果知道正确答案,请帮助我。
谢谢

最佳答案

如果您使用代理,请务必在 maven 的 settings.xml 中定义它.我猜你正在使用外部 maven 安装,所以你可以在 MAVEN_HOME/conf 中找到这个文件.在此文件中搜索 <proxies> </proxies>标签并查看这些标签之间的示例,了解如何设置代理。
还要确保在 Eclipse ( Preferences > Maven > Installations ) 中选择外部 maven 安装。最后一步是将用户设置( Preferences > Maven > User Setting )配置为指向 settings.xml (全局和用户)。运行更新项目,错误应该消失。

请注意,如果您移动到没有代理的网络,您应该在 settings.xml 中注释掉定义的代理。或设置 <active>false</active> <proxy> 中的标签标签。

关于eclipse juno中的maven安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23609587/

相关文章:

java - 如何在现有项目中正确使用 Swagger Maven Plugin

java - 在不丢失结构的情况下将 Eclipse 项目转换为 Maven

java - hibernate-commons-annotations-4.0.1.Final.jar;无效的 LOC header (错误的签名)?

c++ - 安装 CDT 后 Eclipse 不显示任何 C++ 项目选择

Eclipse IDE - Open Call Hierarchy 为空/损坏

maven - 添加本地外部 jar - 不应指向项目目录中的文件

java - 如何正确地将资源添加到我的 java 项目中,以便它们可供构建的实例使用?

svn - 获取 SVN 提交 Eclipse 历史记录

eclipse - 将 Eclipse 从 Indigo 升级到 Juno 时我可以保留我的设置吗?

javascript - 如何将 Javascript 文件添加到 Eclipse 中?