Transferred from: http://blog.csdn.net/cskgnt/article/details/8602802
Workaround: Add the following pluginmanagement before plugins, both before and after the following sequence:
<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>
Maven-dependency-plugin (Goals "Copy-dependencies", "unpack") is isn't supported by m2e