SCB-2641 Use flatten-maven-plugin to update version placeholders ${revision} for the main pom
diff --git a/pom.xml b/pom.xml
index cac1a11..9508456 100644
--- a/pom.xml
+++ b/pom.xml
@@ -344,6 +344,41 @@
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.version}</version>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>flatten-maven-plugin</artifactId>
+ <version>${flatten-maven-plugin.version}</version>
+ <inherited>true</inherited>
+ <executions>
+ <execution>
+ <id>flatten</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>flatten</goal>
+ </goals>
+ <configuration>
+ <updatePomFile>true</updatePomFile>
+ <flattenMode>bom</flattenMode>
+ <pomElements>
+ <parent>expand</parent>
+ <dependencies>keep</dependencies>
+ <dependencyManagement>remove</dependencyManagement>
+ <pluginManagement>remove</pluginManagement>
+ <distributionManagement>remove</distributionManagement>
+ <repositories>remove</repositories>
+ <properties>remove</properties>
+ </pomElements>
+ </configuration>
+ </execution>
+ <execution>
+ <id>flatten-clean</id>
+ <phase>clean</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
<!-- enable the rat check by default -->
@@ -369,6 +404,10 @@
</excludes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>flatten-maven-plugin</artifactId>
+ </plugin>
</plugins>
</build>