Skip to content

Commit f41e629

Browse files
committed
Provide M2E lifecycle mapping metadata for Maven plugin’s build-info goal
Previously, configuring the build-info goal in a pom would result in Eclipse reporting an error for the pom as it didn’t know if/when to execute the build-info goal. This commit adds lifecycle mapping metadata so that the goal is executed on incremental builds. This ensures that the contents of the generated file are kept up-to-date, reflecting the latest build time, etc. Closes gh-6723
1 parent 6c1b46e commit f41e629

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<lifecycleMappingMetadata>
2+
<pluginExecutions>
3+
<pluginExecution>
4+
<pluginExecutionFilter>
5+
<goals>
6+
<goal>build-info</goal>
7+
</goals>
8+
</pluginExecutionFilter>
9+
<action>
10+
<execute>
11+
<runOnIncremental>true</runOnIncremental>
12+
<runOnConfiguration>false</runOnConfiguration>
13+
</execute>
14+
</action>
15+
</pluginExecution>
16+
</pluginExecutions>
17+
</lifecycleMappingMetadata>

0 commit comments

Comments
 (0)