书单推荐:成为Java顶级程序员架构师 ,这20来本(高薪)必看点击获取
maven构建JAVA项目之后pom.xml的<project>标签上报错如下
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://repo1.maven.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://repo1.maven.org/maven2): Failed to transfer http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom. Error code 501, HTTPS Required
一、环境:
jdk1.8
apache-maven-3.8.4
工具:myeclipse
windows10 x64
二、错误起因
pom.xml中的如下代码引起
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> ----------这个版本号是错误的起因修改为2.3.2就好了 <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin>
原因:maven-compiler-plugin: 3.8.1编译,需要jre而不是jdk。而我的环境中所有地方用的都是jdk.
转载请注明:谷谷点程序 » maven配置文件pom的<project>标签上报Could not calculate build plan:Plugin错误