Skip to content

Commit fae3ec2

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

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ _site/
2626
# This project does not use Yarn but some developers may use it to e.g., start zipkin-lens dev server.
2727
# It doesn't hurt to just exclude it here.
2828
yarn.lock
29+
.flattened-pom.xml

pom.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
<license.skip>${skipTests}</license.skip>
9393

9494
<build-helper-maven-plugin.version>3.6.1</build-helper-maven-plugin.version>
95+
<flatten-maven-plugin.version>1.7.3</flatten-maven-plugin.version>
9596
<go-offline-maven-plugin.version>1.2.8</go-offline-maven-plugin.version>
9697
<!-- TODO: cleanup any redundant ignores now also in the 4.0 release (once final) -->
9798
<license-maven-plugin.version>5.0.0</license-maven-plugin.version>
@@ -327,6 +328,12 @@
327328
</configuration>
328329
</plugin>
329330

331+
<plugin>
332+
<groupId>org.codehaus.mojo</groupId>
333+
<artifactId>flatten-maven-plugin</artifactId>
334+
<version>${flatten-maven-plugin.version}</version>
335+
</plugin>
336+
330337
<plugin>
331338
<groupId>org.sonatype.central</groupId>
332339
<artifactId>central-publishing-maven-plugin</artifactId>
@@ -666,6 +673,30 @@
666673
<id>release</id>
667674
<build>
668675
<plugins>
676+
<plugin>
677+
<groupId>org.codehaus.mojo</groupId>
678+
<artifactId>flatten-maven-plugin</artifactId>
679+
<configuration>
680+
<flattenMode>ossrh</flattenMode>
681+
</configuration>
682+
<executions>
683+
<execution>
684+
<id>flatten</id>
685+
<phase>process-resources</phase>
686+
<goals>
687+
<goal>flatten</goal>
688+
</goals>
689+
</execution>
690+
<execution>
691+
<id>flatten.clean</id>
692+
<phase>clean</phase>
693+
<goals>
694+
<goal>clean</goal>
695+
</goals>
696+
</execution>
697+
</executions>
698+
</plugin>
699+
669700
<plugin>
670701
<groupId>org.sonatype.central</groupId>
671702
<artifactId>central-publishing-maven-plugin</artifactId>

0 commit comments

Comments
 (0)