Multiple annotations found at this line:
- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3..0.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3..0.5: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3..0.5 from http://maven.oschina.net/ content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of CN has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3..0.5 from/to CN (http:// maven.oschina.net/content/groups/public/): Failed to transfer http://maven.oschina.net/content/groups/public/org/apache/maven/plugins/ maven-compiler-plugin/3..0.5/maven-compiler-plugin-3..0.5.pom. Error code 500, Server Error - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3..0.5:testCompile (execution: default-testCompile, phase: test-compile) - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3..0.5:compile (execution: default-compile, phase: compile) - CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3..0.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3..0.5: ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3..0.5 from/to CN (http:// maven.oschina.net/content/groups/public/): Failed to transfer http://maven.oschina.net/content/groups/public/org/apache/maven/plugins/ maven-compiler-plugin/3..0.5/maven-compiler-plugin-3..0.5.pom. Error code 500, Server Error
pom报错,具体如上。
原因:maven-compiler-plugin的版本太高
解决方法1:
将maven-compiler-plugin的版本降低,即可解决。
解决方法2:
右键项目,选择maven -> update project,勾选Force Update of Snapshots/Releases,点击ok即可解决。