Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "M2E plugin execution not covered"

(Replaced content with "[https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html This page is now here]")
 
(38 intermediate revisions by 9 users not shown)
Line 1: Line 1:
To solve some long-standing issues, m2e 0.13 requires explicit instructions what to do with all Maven plugins bound to "interesting" phases (see [[M2E interesting lifecycle phases]]) of project build lifecycle. We call these instructions "project build lifecycle mapping" or simply "lifecycle mapping" because they define how m2e maps information from project pom.xml file to Eclipse workspace project configuration and behaviour during Eclipse workspace build.
+
[https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html This page is now here]
 
+
Project build lifecycle mapping configuration can be specified in project pom.xml, contributed by Eclipse plugins and there is also default configuration for some commonly used Maven plugins shipped with m2e. We call these "lifecycle mapping metadata sources". m2e will create error marker like below for all plugin executions that do not have lifecycle mapping in any of the mapping metadata sources.
+
 
+
<pre>
+
Plugin execution not covered by lifecycle configuration:
+
org.apache.maven.plugins:maven-antrun-plugin:1.3:run
+
    (execution: generate-sources-input, phase: generate-sources)
+
</pre>
+
 
+
 
+
m2e matches plugin executions to actions using combination of plugin groupId, artifactId, version range and goal. There are three basic actions that m2e can be instructed to do with a plugin execution -- '''ignore''', '''execute''' and delegate to a project '''configurator'''.
+
 
+
ingore, as the name suggests, tells m2e to silently ignore the plugin execution.
+
 
+
execute tells m2e to execute the action as part of Eclipse workspace full or incremental build. Beware that m2e does not provide any safeguards against rouge maven plugins that leak classloaders, modify random files inside workspace or throw nasty exceptions to fail the build. Use this as the last resort and make sure you know what you are doing.
+
 
+
configurator tells m2e to delegate workspace project configuration mapping for matching plugin execution to an implementation of AbstractProjectConfigurator registred with m2e using projectConfigurators extension point.
+

Latest revision as of 08:13, 14 November 2014

This page is now here

Back to the top