maven-dependency-plugin (goals "copy-dependencies","unpack") is not supported by m2e
2015-06-23 16:44
411 查看
转自:http://blog.csdn.net/cskgnt/article/details/8602802
解决办法:在plugins之前添加如下pluginManagement,二者前后顺序如下:
解决办法:在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>
相关文章推荐
- 运行问题 Unable to load native-hadoop library for your p
- wdcp的环境搭建shell脚本分析--lanmp.sh---lib/common.conf
- android架构和原理分析(G-sensor即Gravity-sensor--重力传感器)
- Linux内核裁减
- 安装Apache Thrift网关到CentOS 2
- nginx启动、重启、关闭
- 深入 NGINX: 为性能和扩展所做之设计
- 安装Apache Thrift网关到CentOS 1
- Nginx线程池性能提升9倍(Thread Pools in NGINX Boost Performance 9x!)
- HBASE 0.98版本安装,四步曲:安装HBAES 0.98
- Linux 内核 64bit 除法
- HBASE 0.98版本安装,三步曲:安装Zookeeper 3.4.5
- Linux Mint 17 下安装搜狗拼音输入法
- hadoop2.6运行时warn util.NativeCodeLoader
- Linux系统性能分析
- 浅谈获取shell中函数的返回值
- linux本地yum源创建
- (转载)应对网站大规模并发访问的优化建议
- HBASE 0.98版本安装,二步曲:安装HADOOP到集群
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation