Skip to content

Commit 6e6ac3a

Browse files
committed
HBX-2936 Add maven flatten plugin
so that we do not need to publish parent POMs
1 parent b7e408d commit 6e6ac3a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
<!-- Plugins not managed by the JBoss parent POM: -->
107107
<maven-wrapper-plugin.version>3.3.2</maven-wrapper-plugin.version>
108108
<nexus-staging.plugin.version>1.7.0</nexus-staging.plugin.version>
109+
<flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>
109110

110111
<!--
111112
We don't want to publish or sign any modules by default.
@@ -327,6 +328,26 @@
327328
<stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes>
328329
</configuration>
329330
</plugin>
331+
<plugin>
332+
<groupId>org.codehaus.mojo</groupId>
333+
<artifactId>flatten-maven-plugin</artifactId>
334+
<version>${flatten-maven-plugin.version}</version>
335+
<configuration>
336+
<outputDirectory>${project.build.directory}</outputDirectory>
337+
<!-- Keep things like url, inceptionYear, authors...
338+
everything that's required by the OSSRH Maven repository -->
339+
<flattenMode>ossrh</flattenMode>
340+
</configuration>
341+
<executions>
342+
<execution>
343+
<id>flatten-pom</id>
344+
<phase>process-resources</phase>
345+
<goals>
346+
<goal>flatten</goal>
347+
</goals>
348+
</execution>
349+
</executions>
350+
</plugin>
330351
</plugins>
331352
</pluginManagement>
332353
<plugins>
@@ -364,6 +385,10 @@
364385
</execution>
365386
</executions>
366387
</plugin>
388+
<plugin>
389+
<groupId>org.codehaus.mojo</groupId>
390+
<artifactId>flatten-maven-plugin</artifactId>
391+
</plugin>
367392
</plugins>
368393
</build>
369394

0 commit comments

Comments
 (0)