插件的自定义生命周期映射配置,通常存储在 插件的 jar 工件中的META-INF/maven/lifecycle.xml中。
<lifecycles xmlns="http://maven.apache.org/LIFECYCLE/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/LIFECYCLE/1.0.0 http://maven.apache.org/xsd/lifecycle-1.0.0.xsd"> <lifecycle> <id/> <phases> <phase> <id/> <executions> <execution> <configuration/> <goals/> </execution> </executions> <configuration/> </phase> </phases> </lifecycle> </lifecycles>
相位映射定义。
元素 | 类型 | 描述 |
---|---|---|
ID | 细绳 | 此阶段的 ID,例如 generate-sources。 |
执行/执行* | 列表<执行> | (许多)在阶段内执行的目标。 |
配置 | DOM | 传递给所有目标的配置在此阶段运行。 |