aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--jgvariant-bom/pom.xml16
-rw-r--r--jgvariant-parent/pom.xml35
3 files changed, 52 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 452b5a4..1995b90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
*~
+.flattened-pom.xml
/.idea
/target
/jgvariant-*/target
diff --git a/jgvariant-bom/pom.xml b/jgvariant-bom/pom.xml
index b7bd93f..df83f0d 100644
--- a/jgvariant-bom/pom.xml
+++ b/jgvariant-bom/pom.xml
@@ -42,4 +42,20 @@ SPDX-License-Identifier: LGPL-3.0-or-later
</dependencies>
</dependencyManagement>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>flatten-maven-plugin</artifactId>
+ <configuration>
+ <flattenMode>bom</flattenMode>
+ <pomElements>
+ <properties>flatten</properties>
+ <distributionManagement>flatten</distributionManagement>
+ </pomElements>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
diff --git a/jgvariant-parent/pom.xml b/jgvariant-parent/pom.xml
index a0c4805..a4aed0e 100644
--- a/jgvariant-parent/pom.xml
+++ b/jgvariant-parent/pom.xml
@@ -57,6 +57,7 @@ SPDX-License-Identifier: LGPL-3.0-or-later
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<failsafe-plugin.version>${surefire-plugin.version}</failsafe-plugin.version>
+ <flatten-plugin.version>1.2.7</flatten-plugin.version>
<jar-plugin.version>3.2.0</jar-plugin.version>
<maven-scm-plugin.version>1.12.0</maven-scm-plugin.version>
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
@@ -231,6 +232,28 @@ SPDX-License-Identifier: LGPL-3.0-or-later
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>flatten-maven-plugin</artifactId>
+ <version>${flatten-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>flatten</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>flatten</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>flatten.clean</id>
+ <phase>clean</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
</plugins>
</pluginManagement>
@@ -267,6 +290,18 @@ SPDX-License-Identifier: LGPL-3.0-or-later
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>flatten-maven-plugin</artifactId>
+ <configuration>
+ <flattenMode>oss</flattenMode>
+ <flattenDependencyMode>all</flattenDependencyMode>
+ <pomElements>
+ <distributionManagement>flatten</distributionManagement>
+ </pomElements>
+ </configuration>
+ </plugin>
+
</plugins>
</build>