Skip to content

Commit ae0babf

Browse files
Add flatten-maven-plugin for Sonatype Central Portal (#159)
Same as openzipkin/zipkin-reporter-java#284 Signed-off-by: Adrian Cole <adrian@tetrate.io>
1 parent c2b107f commit ae0babf

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ target/
1717
.classpath
1818
.project
1919
.settings/
20+
21+
# flatten-maven-plugin
22+
.flattened-pom.xml

pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
<license.skip>${skipTests}</license.skip>
5252

5353
<animal-sniffer-maven-plugin.version>1.24</animal-sniffer-maven-plugin.version>
54+
<flatten-maven-plugin.version>1.7.3</flatten-maven-plugin.version>
5455
<go-offline-maven-plugin.version>1.2.8</go-offline-maven-plugin.version>
5556
<!-- TODO: cleanup any redundant ignores now also in the 4.0 release (once final) -->
5657
<license-maven-plugin.version>4.5</license-maven-plugin.version>
@@ -311,6 +312,11 @@
311312
<artifactId>central-publishing-maven-plugin</artifactId>
312313
<version>${central-publishing-maven-plugin.version}</version>
313314
</plugin>
315+
<plugin>
316+
<groupId>org.codehaus.mojo</groupId>
317+
<artifactId>flatten-maven-plugin</artifactId>
318+
<version>${flatten-maven-plugin.version}</version>
319+
</plugin>
314320
<plugin>
315321
<artifactId>maven-shade-plugin</artifactId>
316322
<version>${maven-shade-plugin.version}</version>
@@ -569,6 +575,30 @@
569575
<id>release</id>
570576
<build>
571577
<plugins>
578+
<plugin>
579+
<groupId>org.codehaus.mojo</groupId>
580+
<artifactId>flatten-maven-plugin</artifactId>
581+
<configuration>
582+
<flattenMode>ossrh</flattenMode>
583+
</configuration>
584+
<executions>
585+
<execution>
586+
<id>flatten</id>
587+
<phase>process-resources</phase>
588+
<goals>
589+
<goal>flatten</goal>
590+
</goals>
591+
</execution>
592+
<execution>
593+
<id>flatten.clean</id>
594+
<phase>clean</phase>
595+
<goals>
596+
<goal>clean</goal>
597+
</goals>
598+
</execution>
599+
</executions>
600+
</plugin>
601+
572602
<plugin>
573603
<groupId>org.sonatype.central</groupId>
574604
<artifactId>central-publishing-maven-plugin</artifactId>

0 commit comments

Comments
 (0)