Maven 错误笔记

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 Errorapache

 

 

pom报错,具体如上。maven

缘由:maven-compiler-plugin的版本过高ui

解决方法1:this

将maven-compiler-plugin的版本下降,便可解决。.net

解决方法2:code

右键项目,选择maven  -> update project,勾选Force  Update of Snapshots/Releases,点击ok便可解决。ip

相关文章
相关标签/搜索