Recently
While importing one Maven project into Eclipse(Juno, m2e plug-ins is
already installed in Eclipse). I was getting one error in project :
maven-dependency-plugin
(goals “copy-dependencies”, “unpack”) is not supported by m2e
Reason: Eclipse m2e does not support execution, by copying the below code in the build tag resolve the issue.
Example:
<build>
Code
:
Save
the project and it will resolve the issue, if not then Right click on
your project and update Maven(Maven → Update Project... ).
Reason: Eclipse m2e does not support execution, by copying the below code in the build tag resolve the issue.
Example:
<build>
<COPY_CODE_HERE>
</build>
<pluginManagement>
<plugins>
<!--This
plugin's configuration is used to store Eclipse m2e settings
only.
It has no influence on the Maven build itself. -->
<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-antrun-plugin
</artifactId>
<versionRange>
1.7
</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>