java - 创建 Maven 项目时无法计算构建计划

标签 java eclipse maven

我刚刚创建了一个新的maven项目,在创建时,我已经有一个错误:

Description Resource    Path    Location    Type
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from/to central (http://repo.maven.apache.org/maven2): null to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom pom.xml /WD_Automation  line 1  Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile)  pom.xml /WD_Automation  line 1  Maven Project Build Lifecycle Mapping Problem
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 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.3.2 from/to central (http://repo.maven.apache.org/maven2): null to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom    pom.xml /WD_Automation  line 1  Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile) pom.xml /WD_Automation  line 1  Maven Project Build Lifecycle Mapping Problem

我不明白为什么,因为我没有碰过 pom 中的任何东西或其他任何东西。

你有什么想法吗?

最佳答案

Maven 尝试从 MavenCentral 下载插件,但失败。这通常是网络或代理问题。

关于java - 创建 Maven 项目时无法计算构建计划,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45977854/

相关文章:

java - 如何检查列中是否存在特定数据

Android打包问题: resources. ap_不存在

java - 如何保持第二个进程直到完成 Android 中的第一个进程?

c++ - 从 Eclipse IDE 运行 C++ 应用程序

Android 应用程序无法在模拟器上启动

java - 使用父模块作为依赖项

eclipse - 将 Maven 编译器插件与 Eclipse 编译器和 Lombok 结合使用

java - 打开其中一个解决项目时,Eclipse中的“解决工作空间 Artifact ”选项会生成错误

java - JAXB 和 JPA 注释。是否有任何强有力的论据支持更喜欢字段访问而不是属性访问?

java - 更改 WheelView 的 TextView