LifecycleMappings

Configuration of custom lifecycle mappings for the plugin, as generally stored in META-INF/maven/lifecycle.xml in a plugin's jar artifact.

  1. <lifecycles xmlns="http://maven.apache.org/LIFECYCLE/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/LIFECYCLE/1.0.0 http://maven.apache.org/xsd/lifecycle-1.0.0.xsd">
  3. <lifecycle>
  4. <id/>
  5. <phases>
  6. <phase>
  7. <id/>
  8. <executions>
  9. <execution>
  10. <configuration/>
  11. <goals/>
  12. </execution>
  13. </executions>
  14. <configuration/>
  15. </phase>
  16. </phases>
  17. </lifecycle>
  18. </lifecycles>

lifecycles

Root element of the lifecycle.xml file.

Element Type Description
lifecycle* List<Lifecycle> (Many) No description.

lifecycle

A custom lifecycle mapping definition.

Element Type Description
id String The ID of this lifecycle, for identification in the mojo descriptor.
phases/phase* List<Phase> (Many) The phase mappings for this lifecycle.

phase

A phase mapping definition.

Element Type Description
id String The ID of this phase, e.g., generate-sources.
executions/execution* List<Execution> (Many) The goals to execute within the phase.
configuration DOM Configuration to pass to all goals run in this phase.

execution

A set of goals to execute.

Element Type Description
configuration DOM Configuration to pass to the goals.
goals/goal* List<String> (Many) The goals to execute.