Skip to content

Commit c71c27c

Browse files
authored
Merge pull request #21 from fireflyframework/fix/flatten-maven-plugin
Add flatten-maven-plugin for Maven Central POM validation
2 parents 7504265 + b4adfec commit c71c27c

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
<maven-enforcer-plugin.version>3.6.2</maven-enforcer-plugin.version>
111111
<maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version>
112112
<central-publishing-maven-plugin.version>0.10.0</central-publishing-maven-plugin.version>
113+
<flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
113114
</properties>
114115

115116
<dependencyManagement>
@@ -466,6 +467,30 @@
466467
<checksums>required</checksums>
467468
</configuration>
468469
</plugin>
470+
<plugin>
471+
<groupId>org.codehaus.mojo</groupId>
472+
<artifactId>flatten-maven-plugin</artifactId>
473+
<version>${flatten-maven-plugin.version}</version>
474+
<configuration>
475+
<flattenMode>ossrh</flattenMode>
476+
</configuration>
477+
<executions>
478+
<execution>
479+
<id>flatten</id>
480+
<phase>process-resources</phase>
481+
<goals>
482+
<goal>flatten</goal>
483+
</goals>
484+
</execution>
485+
<execution>
486+
<id>flatten.clean</id>
487+
<phase>clean</phase>
488+
<goals>
489+
<goal>clean</goal>
490+
</goals>
491+
</execution>
492+
</executions>
493+
</plugin>
469494
</plugins>
470495
</build>
471496
</profile>

0 commit comments

Comments
 (0)