eclipse3.7集成了m2e插件,但是如果在pom中使用了dependency插件,有可能会报错误:
maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported by m2e
经过查找资料,可以通过忽略的方式来实现
在pom中加入以下配置就可以解决了
<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.1,)</versionRange> <goals> <goal>copy-dependencies</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin>