用eclipse创建一个maven管理的项目,创建完成后pom.xml报错!!急求怎么解决!! 10
Multipleannotationsfoundatthisline:-Pluginexecutionnotcoveredbylifecycleconfiguration...
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:
2.3.2:compile (execution: default-compile, phase: compile)
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile:
PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies
could not be resolved: Failure to transfer org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1 from http://
repo.maven.apache.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.codehaus.plexus:plexus-compiler-javac:jar:1.8.1 from/to central (http://repo.maven.apache.org/maven2):
java.io.IOException: Remotely Closed [id: 0x5aaf85a3, /192.168.1.114:52094 :> repo.maven.apache.org/103.245.222.184:80]
- CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile:
PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies
could not be resolved: Failure to transfer org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1 from http://
repo.maven.apache.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.codehaus.plexus:plexus-compiler-javac:jar:1.8.1 from/to central (http://repo.maven.apache.org/maven2):
java.io.IOException: Remotely Closed [id: 0x5aaf85a3, /192.168.1.114:52094 :> repo.maven.apache.org/103.245.222.184:80]
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:
2.3.2:testCompile (execution: default-testCompile, phase: test-compile) 展开
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:
2.3.2:compile (execution: default-compile, phase: compile)
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile:
PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies
could not be resolved: Failure to transfer org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1 from http://
repo.maven.apache.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.codehaus.plexus:plexus-compiler-javac:jar:1.8.1 from/to central (http://repo.maven.apache.org/maven2):
java.io.IOException: Remotely Closed [id: 0x5aaf85a3, /192.168.1.114:52094 :> repo.maven.apache.org/103.245.222.184:80]
- CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile:
PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies
could not be resolved: Failure to transfer org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1 from http://
repo.maven.apache.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.codehaus.plexus:plexus-compiler-javac:jar:1.8.1 from/to central (http://repo.maven.apache.org/maven2):
java.io.IOException: Remotely Closed [id: 0x5aaf85a3, /192.168.1.114:52094 :> repo.maven.apache.org/103.245.222.184:80]
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:
2.3.2:testCompile (execution: default-testCompile, phase: test-compile) 展开
2个回答
展开全部
有多种情况会导致这种报错,可以尝试以下5个方法:
1.项目右键:maven>install
2.项目右键:maven>clean
3.删除对应jar在仓库中的文件夹
4.在pom.xml中添加镜像地址:
<dependency>
<groupId></groupId>
<artifactId></artifactId>
<version></version>
</dependency>
=========以上4个方法结束后,项目右键>maven>update project
5.如果下载成功,仍然报错:
项目右键:maven>update project,勾选Force Update of Snapshots/Releases
1.项目右键:maven>install
2.项目右键:maven>clean
3.删除对应jar在仓库中的文件夹
4.在pom.xml中添加镜像地址:
<dependency>
<groupId></groupId>
<artifactId></artifactId>
<version></version>
</dependency>
=========以上4个方法结束后,项目右键>maven>update project
5.如果下载成功,仍然报错:
项目右键:maven>update project,勾选Force Update of Snapshots/Releases
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询