找做钢筋笼的活网站,直播软件平台,小韩网站源码,网页设计作品介绍范文使用集成了maven的Eclipse版本新建maven项目后#xff0c;配置文件pom.xml会在project以及引用的xsd文件处出现错误#xff08;第一、二行报错#xff09; 其中一个报错例子#xff1a; Multiple annotations found at this line:- Plugin execution not covered by lifecy…使用集成了maven的Eclipse版本新建maven项目后配置文件pom.xml会在project以及引用的xsd文件处出现错误第一、二行报错 其中一个报错例子 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: Could not transfer artifact org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.8.1/plexus-compiler-javac-1.8.1.jar- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile) 等等报错信息大同小异。 原因是Eclipse集成的maven存在问题版本问题或网站访问问题而新安装的maven并未成功添加到m2e插件中 解决方法如下 Step.1 到官网下载合适版本的maven 存放到合适的路径或者看报错中缺少哪一个jar包文件----相应的报错信息会提供网址取下载缺少的这个文件---copy到本地仓库的相应路径下 Step.2 打开Eclipse的preferences-Maven-UserSettings 更改Global Settings和User Settings为刚刚下载的maven下的conf/settings.xml Step.3 Eclipse的preferences-Maven-Installations 点击Add添加刚才下载的maven文件夹然后勾选自己下载的版本而不使用自带版本 Step.4 经过以上两步后已经成功将自己下载的maven版本与Eclipse集成这时右键点击之前报错的项目右键 Run As -Maven clean清理一下再Run As -Maven install即可 Step.5如果还不行项目右击-Maven-Update Project 这一步需要一点时间看界面的右下角就知道是否更新完。 转载于:https://www.cnblogs.com/980081922q/p/6210931.html