Skip to content

Commit 76edbe8

Browse files
committed
GH-2180 - Add Maven Flatten Plugin to only publish reduced POM.
1 parent 49cdc84 commit 76edbe8

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ target/
66
*.iml
77
.idea
88
*.orig
9+
.flattened-pom.xml
910
.springBeans
1011
credentials.yml

pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,38 @@
853853
</configuration>
854854
</plugin>
855855

856+
<plugin>
857+
<groupId>org.codehaus.mojo</groupId>
858+
<artifactId>flatten-maven-plugin</artifactId>
859+
<version>1.6.0</version>
860+
<executions>
861+
<execution>
862+
<id>flatten</id>
863+
<phase>process-resources</phase>
864+
<goals>
865+
<goal>flatten</goal>
866+
</goals>
867+
<configuration>
868+
<updatePomFile>true</updatePomFile>
869+
<flattenMode>oss</flattenMode>
870+
<pomElements>
871+
<distributionManagement>remove</distributionManagement>
872+
<properties>remove</properties>
873+
<repositories>remove</repositories>
874+
<profiles>remove</profiles>
875+
</pomElements>
876+
</configuration>
877+
</execution>
878+
<execution>
879+
<id>flatten-clean</id>
880+
<phase>clean</phase>
881+
<goals>
882+
<goal>clean</goal>
883+
</goals>
884+
</execution>
885+
</executions>
886+
</plugin>
887+
856888
</plugins>
857889
</build>
858890

0 commit comments

Comments
 (0)