Skip to content

Commit

Permalink
HBX-2936 Add maven flatten plugin
Browse files Browse the repository at this point in the history
so that we do not need to publish parent POMs
  • Loading branch information
marko-bekhta committed Nov 29, 2024
1 parent b7e408d commit 6e6ac3a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
<!-- Plugins not managed by the JBoss parent POM: -->
<maven-wrapper-plugin.version>3.3.2</maven-wrapper-plugin.version>
<nexus-staging.plugin.version>1.7.0</nexus-staging.plugin.version>
<flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>

<!--
We don't want to publish or sign any modules by default.
Expand Down Expand Up @@ -327,6 +328,26 @@
<stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<!-- Keep things like url, inceptionYear, authors...
everything that's required by the OSSRH Maven repository -->
<flattenMode>ossrh</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten-pom</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down Expand Up @@ -364,6 +385,10 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 6e6ac3a

Please sign in to comment.