Skip to content

Commit 2519a6b

Browse files
committed
add flatten-maven-plugin
1 parent 3632ea0 commit 2519a6b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,32 @@
12801280
<autoPublish>false</autoPublish>
12811281
</configuration>
12821282
</plugin>
1283+
<!-- flatten the pom files to resolve version information stored in BOMs-->
1284+
<plugin>
1285+
<groupId>org.codehaus.mojo</groupId>
1286+
<artifactId>flatten-maven-plugin</artifactId>
1287+
<version>1.7.1</version>
1288+
<executions>
1289+
<!-- enable flattening -->
1290+
<execution>
1291+
<id>flatten</id>
1292+
<phase>process-resources</phase>
1293+
<goals>
1294+
<goal>flatten</goal>
1295+
</goals>
1296+
</execution>
1297+
<!-- ensure proper cleanup -->
1298+
<execution>
1299+
<id>flatten.clean</id>
1300+
<goals>
1301+
<goal>clean</goal>
1302+
</goals>
1303+
</execution>
1304+
</executions>
1305+
<configuration>
1306+
<flattenMode>resolveCiFriendliesOnly</flattenMode>
1307+
</configuration>
1308+
</plugin>
12831309
</plugins>
12841310
</pluginManagement>
12851311
<plugins>
@@ -1321,6 +1347,10 @@
13211347
<groupId>org.apache.maven.plugins</groupId>
13221348
<artifactId>maven-gpg-plugin</artifactId>
13231349
</plugin>
1350+
<plugin>
1351+
<groupId>org.codehaus.mojo</groupId>
1352+
<artifactId>flatten-maven-plugin</artifactId>
1353+
</plugin>
13241354
<!-- The plugins configuration below will not be inherited by children projects, they are specific to the parent pom -->
13251355
<plugin>
13261356
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)