Skip to content

Commit

Permalink
Add m2e lifecycle metadata for maven-dependency-plugin
Browse files Browse the repository at this point in the history
This closes #1077
  • Loading branch information
kwin authored and mickaelistria committed Nov 22, 2022
1 parent 9f3ad47 commit 791525d
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions org.eclipse.m2e.core/lifecycle-mapping-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,75 @@

<pluginExecutions>
<!-- M2E's default lifecycle mappings for standard maven plugins -->
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<goals>
<goal>copy</goal>
<goal>copy-dependencies</goal>
<goal>properties</goal>
<goal>unpack</goal>
<goal>unpack-dependencies</goal>
</goals>
<versionRange>[3.4,)</versionRange>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>true</runOnIncremental>
</execute>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<goals>
<goal>analyze</goal>
<goal>analyze-dep-mgmt</goal>
<goal>analyze-only</goal>
<goal>analyze-report</goal>
<goal>analyze-duplicate</goal>
<goal>build-classpath</goal>
<goal>display-ancestors</goal>
<goal>get</goal>
<goal>go-offline</goal>
<goal>list</goal>
<goal>list-classes</goal>
<goal>list-repositories</goal>
<goal>purge-local-repository</goal>
<goal>resolve</goal>
<goal>resolve-plugins</goal>
<goal>sources</goal>
<goal>tree</goal>
</goals>
<versionRange>[3.4,)</versionRange>
</pluginExecutionFilter>
<action>
<ignore>
<message>maven-dependency-plugin (some goals) are ignored by m2e.</message>
</ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependencies-plugin</artifactId>
<goals>
<goal>copy</goal>
<goal>copy-dependencies</goal>
<goal>properties</goal>
<goal>unpack</goal>
<goal>unpack-dependencies</goal>
</goals>
<versionRange>[0.0.1,3.4)</versionRange>
</pluginExecutionFilter>
<action>
<error>
<message>maven-dependencies-plugin prior to 3.4 is not supported by m2e. Use maven-dependencies-plugin version 3.4 or later.</message>
</error>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 791525d

Please sign in to comment.