当前位置: 首页 > 知识库问答 >
问题:

Maven错误:无法计算构建计划

融宏伟
2023-03-14

我得到以下错误,我不知道为什么。我在多个环境中设置了我的项目,从来没有任何问题,但最近我将项目添加到运行Windows8的环境中,所有的东西都设置正确(例如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)
    - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (execution: default-testCompile, phase: test-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: Could not transfer artifact org.apache.maven.plugins:maven-compiler-
     plugin:pom:2.5.1 from/to central (http://repo.maven.apache.org/maven2): Address family not supported by protocol family: connect
    - 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: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 
     from http://repo.maven.apache.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.5.1 from/to central (http://repo.maven.apache.org/maven2): Address family not supported 
     by protocol family: connect
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
  • 删除.m2存储库,Maven->Update Project...
  • 删除所有.lastupdated文件,Maven->Update project...
  • 更新项目时尝试选择“强制更新快照/发布”

有人对我可以尝试的东西有其他想法吗?

共有1个答案

仰翔
2023-03-14

在Eclipse中,转到Windows>Preferences>Maven>用户设置

在用户设置中,用Settings.xml>%m2_home%\conf的路径(或正确的路径)填充字段。

 类似资料:
  • 当我尝试构建项目时。生成失败,出现以下消息。 我看到了两个类似的问题,并尝试了答案中提到的一切。 我尝试过的事情。

  • 在Eclipse for Selenium中尝试创建Maven项目时,我在POM中遇到以下错误。xml: CoreException:无法计算生成计划:插件组织。阿帕奇。专家插件:maven编译器插件:3.8.0或其依赖项之一无法解析 生命周期配置未涵盖插件执行:org。阿帕奇。专家插件:maven编译器插件:3.8.0:编译(执行:默认编译,阶段:编译) 组织。阿帕奇。专家插件:maven资源插

  • 错误信息 当我第一次运行Docker Quickstart Terminal时,我收到以下消息,机器无法创建。 创建机器出错:机器创建过程中驱动程序出错:退出状态1看起来出了问题…按任意键继续… 有人知道吗? 相关组件的版本: 泊坞工具盒-1.9.0 视窗 7 sp1 虚拟盒版本 5.0.8 r103449

  • 我被这个错误弄得神魂颠倒,在我解决这个问题之前,我无法取得任何进展。 我有最新的STS(Spring Tool Source)3.7.1,专门用于Eclipse Mars 4.5.1。我删除了所有旧版本的STS,也删除了旧的.Eclipse文件,因为我希望这是一个全新的安装。我还进入了c:\Users\Tom Holmes\AppData文件夹,删除了“Spring Tool Suite”的所有痕

  • Itinerary类存储有关具有以下成员的旅程的信息: •一个名为flights的私有ArrayList数据字段,其中包含按DepartureTime递增顺序排列的旅程航班。(提示:您不需要进行排序。) •使用ArrayList类型的指定航班创建旅程的构造函数。 •名为getTotalFlightTime()的方法,以分钟为单位返回旅程的总飞行时间。(提示:为每个飞行对象调用getFlightTi