CoreException:无法计算构建计划:插件org.apache.maven.plugins:maven-compiler-plugin:3.5.1

时间:2018-09-27 06:40:47

标签: maven dependencies pom.xml

我正在VM上使用maven project。 Vm无法连接到中央存储库,因此不会在.m2文件夹中下载依赖项。

pom.xml将错误显示为:

CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.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:3.5.1: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.5.1 from https://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:3.5.1 from/to central (https://repo.maven.apache.org/maven2): Failed to connect to repo.maven.apache.org

我已经手动下载了jar并将其放置在.m2文件夹中,但该错误仍然存​​在于pom.xml中。

如何解决此问题,我尝试执行Run> maven build&Maven>更新项目,但是没有运气

0 个答案:

没有答案