码迷,mamicode.com
首页 > 其他好文 > 详细

maven-dependency-plugin (goals "copy-dependencies","unpack") is not supported by m2e

时间:2014-09-09 19:54:19      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   io   ar   art   div   cti   sp   

 解决办法:在plugins之前添加如下pluginManagement,二者前后顺序如下:
<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> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/lib</outputDirectory> <excludeTransitive>false</excludeTransitive> <stripVersion>true</stripVersion> </configuration> </execution> </executions> </plugin> </plugins> </build>

 

maven-dependency-plugin (goals "copy-dependencies","unpack") is not supported by m2e

标签:style   blog   color   io   ar   art   div   cti   sp   

原文地址:http://www.cnblogs.com/konghou/p/3963166.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!