问题
eclipse导入maven工程报错:
引用
maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported by m2e.
原因
eclipse m2e插件并不支持所有的maven plugin,对于不支持的plugin就只能报错了,参见
M2E plugin execution not covered
解决方案
在报错的pom.xml文件中,<build>结点下插入以下结点
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[2.0,)</versionRange>
<goals>
<goal>copy-dependencies</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
分享到:
相关推荐
maven-dependency-plugin-2.8.jar
maven-dependency-plugin-2.1.jar
maven-dependency-versions-check-plugin-2.0.2-sources.jar
ECLIPSE MAVEN3插件文件(eclipse-maven3-plugin工具)
eclipse-maven3-plugin插件 包含apache-maven-3.3.9和eclipse-maven3-plugin
maven-dependency-tree-1.2.jar
maven-dependency-tree-parser-1.0.6.jar,用于mvn depenency:tree的记录解析
maven-eclipse-plugin-2.5.1为eclipse中的maven插件,别下错了哦...
打开并输入:path= D:/Development/eclipse-JavaEE/eclipse/plugins/maven(请参照上面对应你的 maven 插件) 4. 重启 eclipse,OK,完成了,启动后你打开Window ---> Preferences 会发现一个多了一个选项Maven...
Maven使用tomcat8-maven-plugin插件
maven-tomcat-plugin让maven与tomcat配合得很好。它可以把应用部署到Tomcat服务器,也可以把tomcat作为内嵌服务器启动,就像jetty一样。 使用JPDA启动tomcat的远程调试功能。这样就能与eclipse配合起来,轻松地实现...
maven-jar-plugin-3.1.1.jar
maven-deploy-plugin-2.8.2.jar
dockerfile-maven-plugin 支持 maven 直接发布项目至 docker 镜像库
maven-resources-plugin-2.4.1.jar
maven-dependency-versions-check-plugin-1.0.0.jar
maven-antrun-plugin-3.0.0.jar
maven-dependency-plugin-2.0.jar
解决tomcat8-maven-plugin-3.0-r1655215.jar阿里云同有的问题。放到路径org\apache\tomcat\maven\tomcat8-maven-plugin\3.0-r1655215\就可以了