博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
maven-dependency-plugin (goals "copy-dependencies","unpack") is not supported b
阅读量:5931 次
发布时间:2019-06-19

本文共 1275 字,大约阅读时间需要 4 分钟。

hot3.png

maven-dependency-plugin (goals "copy-dependencies","unpack") is not supported b 博客分类: maven

解决办法:在plugins之前添加如下pluginManagement,二者前后顺序如下:

[html]
  1. <build>  
  2.         <pluginManagement>  
  3.             <plugins>  
  4.                 <plugin>  
  5.                     <groupId>org.eclipse.m2e</groupId>  
  6.                     <artifactId>lifecycle-mapping</artifactId>  
  7.                     <version>1.0.0</version>  
  8.                     <configuration>  
  9.                         <lifecycleMappingMetadata>  
  10.                             <pluginExecutions>  
  11.                                 <pluginExecution>  
  12.                                     <pluginExecutionFilter>  
  13.                                         <groupId>org.apache.maven.plugins</groupId>  
  14.                                         <artifactId>maven-dependency-plugin</artifactId>  
  15.                                         <versionRange>[2.0,)</versionRange>  
  16.                                         <goals>  
  17.                                             <goal>copy-dependencies</goal>  
  18.                                         </goals>  
  19.                                     </pluginExecutionFilter>  
  20.                                     <action>  
  21.                                         <ignore />  
  22.                                     </action>  
  23.                                 </pluginExecution>  
  24.                             </pluginExecutions>  
  25.                         </lifecycleMappingMetadata>  
  26.                     </configuration>  
  27.                 </plugin>  
  28.             </plugins>  
  29.         </pluginManagement>  
  30.         <plugins>  
  31.             <plugin>  
  32.                 <groupId>org.apache.maven.plugins</groupId>  
  33.                 <artifactId>maven-dependency-plugin</artifactId>  
  34.                 <executions>  
  35.                     <execution>  
  36.                         <id>copy-dependencies</id>  
  37.                         <phase>package</phase>  
  38.                         <goals>  
  39.                             <goal>copy-dependencies</goal>  
  40.                         </goals>  
  41.                         <configuration>  
  42.                             <outputDirectory>${project.build.directory}/lib</outputDirectory>  
  43.                             <excludeTransitive>false</excludeTransitive>  
  44.                             <stripVersion>true</stripVersion>  
  45.                         </configuration>  
  46.                     </execution>  
  47.                 </executions>  
  48.             </plugin>  
  49.         </plugins>  
  50.     </build> 

转载于:https://my.oschina.net/xiaominmin/blog/1597735

你可能感兴趣的文章
PHP中const的使用
查看>>
HDOJ1035 ( Robot Motion ) 【递归】
查看>>
lucene.net 高级应用之排序、设置权重、优化、分布式搜索
查看>>
【原】浅思OC的语言特性
查看>>
如何处理BW抽数中invalid_characteristcs 错误
查看>>
ORA-01722:invalid number 解决方法
查看>>
Reading papers_11(读Integrating local action elements for action analysis相关文章)
查看>>
PHP访问计数器模块
查看>>
Jquery之ShowLoading遮罩组件
查看>>
使用Fiddler提高前端工作效率 (实例篇)
查看>>
信号量和PV操作写出Bakery算法的同步程序
查看>>
在Qt Creator 和在 vs2012 里添加信号和槽
查看>>
Android自定义单选,自定义选中状态
查看>>
Readprocessmemory使用方法
查看>>
如何让搜索引擎抓取AJAX内容?
查看>>
php memcached-gui工具
查看>>
硬件工程师经典笔试题
查看>>
springmvc请求接收参数的几种方法
查看>>
angularjs指令(二)
查看>>
Caused by: java.lang.ClassNotFoundException: com.mchange.v2.c3p0.ComboPooledDataSource
查看>>