dependencies”, “unpack”) is not supported by m2e

最近在开发Cloudstack部分功能时遇到了如下问题:maven-dependency-plugin (goals “copy-dependencies”, “unpack”) is not supported by m2e

解决的办法很简单,,让eclipse忽略(Ignore)这个error即可

另外网上也有直接修改pom文件的方式解决的,

修改前:

have a fairly simple Maven project:

<project><dependencies>…</dependencies><build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><version>2.4</version><executions><execution><id>copy-dependencies</id><phase>package</phase><goals><goal>copy-dependencies</goal></goals><configuration><outputDirectory>${project.build.directory}/dependencies</outputDirectory></configuration></execution></executions></plugin></plugins></build></project>

修改后:

It seems to be a known issue. You should instruct m2e to ignore this. Add the following inside your<build/> tag:

<pluginManagement><plugins><!– Ignore/Execute plugin execution –><plugin><groupId>org.eclipse.m2e</groupId><artifactId>lifecycle-mapping</artifactId><version>1.0.0</version><configuration><lifecycleMappingMetadata><pluginExecutions><!– copy-dependency plugin –><pluginExecution><pluginExecutionFilter><groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><versionRange>[1.0.0,)</versionRange><goals><goal>copy-dependencies</goal></goals></pluginExecutionFilter><action><ignore /></action></pluginExecution></pluginExecutions></lifecycleMappingMetadata></configuration></plugin></plugins></pluginManagement>

你说只有有缘人才可以取下,我看着你手中的戒指,

dependencies”, “unpack”) is not supported by m2e

相关文章:

你感兴趣的文章:

标签云: