java面試必過大公司面試試題下載,java高薪
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錯誤