CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin

我们在配置pom.xml的依赖的时候有可能出现下面的异常

异常问题

CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin_第1张图片
问题的完整描述:
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin: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:3.2: ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.2 from/to my (http://192.168.50.22:8081/nexus/content/groups/public/): No route to host: connect
从这个异常中间一段话Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.2
可以看出,不能读取到工件备注说明,什么工件备注说明呢?看for后面的英文就是
org\apache\maven\plugins路径下的maven-compiler-plugin下的jar包,版本是3.2的

pom.xml配置插件

CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin_第2张图片

问题解决

上面异常已经说明路径地址了,我们看下我们本地的仓库下的路径信息,里面的jar包文件是lastUpdated为后缀名的,说明还没有更新完成(由于网络一些异常原因导致的)
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin_第3张图片

我们把整个3.2文件夹删了,然后在我们的pom.xml文件中随便打个空格保存下,系统会自动去帮我们下载
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin_第4张图片

你可能感兴趣的:(Maven,Issues)