eclipse plugin(3)maven-dependency-plugin
Recently, I import one maven project from my collegues. I got this error message when I import this in my eclipse:
error message:
maven-dependency-plugin(goals "copy-dependencies", "unpack") is not supported by m2e.
solution:
...snip...
<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>
<goal>unpack</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>
<version>2.4</version>
<executions>
<execution>
<id>unpack</id>
<phase>compile</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.digby.graphite</groupId>
<artifactId>store-shared</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/${project.artifactId}</outputDirectory>
<destFileName>optional-new-name.jar</destFileName>
<includes>**/*.js,**/*.xml</includes>
<excludes>**/*test.class</excludes>
</artifactItem>
</artifactItems>
<includes>**/*.java</includes>
<excludes>**/*.properties</excludes>
<outputDirectory>${project.build.directory}/wars</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<stripVersion>true</stripVersion>
<excludeTransitive>false</excludeTransitive>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
...snip...
It works fine now.
references:
http://jeekchen.iteye.com/blog/1153103
http://blog.csdn.net/smst1987/article/details/6871495
分享到:
相关推荐
maven-dependency-plugin-2.8.jar
maven-dependency-versions-check-plugin-2.0.2-sources.jar
本文将聚焦于"Maven依赖插件"(maven-dependency-plugin)的版本2.8及其在开源项目中的应用,特别是结合Cobertura插件进行代码覆盖率检查。 Maven依赖插件(maven-dependency-plugin)是Maven生态系统中的一个重要...
maven-dependency-plugin-2.1.jar
本项目是基于Java的smart-doc-maven-plugin官方maven插件设计源码,包含43个文件,其中包括27个Java源文件、7个Markdown文档、2个JSON文件、1个gitignore文件、1个LICENSE文件、1个NOTICE文件、1个PNG图片...-maven...
maven-eclipse-plugin-2.9.jar maven-embedder-3.2.1-sources.jar maven-filtering-1.1.jar maven-install-plugin-2.3.1.jar maven-install-plugin-2.4.jar maven-install-plugin-2.5.1.jar maven-jar-plugin-2.4....
maven-dependencygraph-plugin-0.0.4-sources.jar
maven-dependencygraph-plugin-0.0.3-sources.jar
maven-dependencygraph-plugin-0.0.2-sources.jar
maven-dependencygraph-plugin-0.0.1-sources.jar
maven-dependency-versions-check-plugin-2.0.1-sources.jar
maven-dependency-versions-check-plugin-2.0.0-sources.jar
maven-dependency-versions-check-plugin-1.0.0.jar
maven-dependency-plugin-2.0.jar
maven-dependencygraph-plugin-0.0.4.jar
maven-dependencygraph-plugin-0.0.3.jar
maven-dependencygraph-plugin-0.0.2.jar
maven-dependencygraph-plugin-0.0.1.jar
Maven依赖插件(maven-dependency-plugin)是Maven生态系统中的一个重要组成部分,它提供了多种目标(goals),如"copy-dependencies"和"unpack",帮助开发者在处理项目依赖时进行更精细的操作。 标题提到的问题...
3. 依赖排除:Maven-Helper 插件提供了依赖排除功能,允许开发者快速排除不需要的依赖关系。这样可以减少项目的大小和复杂度,提高项目的性能和可维护性。 4. 安装和配置:Maven-Helper 插件的安装和配置非常简单。...