http://blog.csdn.net/smst1987/article/details/6871495

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

解决方法:

 <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>

最新文章

  1. opensuse sublime 配置
  2. NYOJ题目75日期计算
  3. 看完 《重来(REWORK)》
  4. JS实现自动倒计时
  5. .NET简谈插件系统开发模式
  6. 基于jQuery的AJAX和JSON的实例
  7. maven学习(二)
  8. SharePoint 2013 入门教程--系列文章
  9. java基础(二十)IO流(三)
  10. CodeforcesGym101116 B Bulbs
  11. Python list 常用操作
  12. 拓展自定义编辑器窗口(EditorGUILayout类)
  13. Python实现Telnet自动连接检测密码
  14. RPC调用与GC垃圾回收
  15. Native、Web App、Hybrid、React Native(简称RN)、Weex 间的异同点。
  16. Linux 进程间通讯
  17. Codeforces Round #265 (Div. 2) D. Restore Cube 立方体判断
  18. springboot + mybatis + 多数据源
  19. ThreadLocal剧集(一)
  20. C++——命名空间

热门文章

  1. VC++ 设置控件显示文本的前景色、背景色以及字体
  2. spring---aop(6)---Spring AOP中ProxyFactoryBean介绍
  3. 图解vim常用命令
  4. JetBrains 系列软件汉化包
  5. The YubiKey NEO
  6. FastBoot BootLoader Recovery 模式解释
  7. IDC门外汉-单线、双线、智能多线、BGP的区别
  8. MATLAB SVM
  9. [Android Pro] Swift 3.0多线程
  10. The 12 Most Controversial Facts In Mathematics