Skip to content

Commit e685de8

Browse files
committed
Add flatten-maven-plugin
1 parent 680bfbf commit e685de8

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313
*.ear
1414
/Vagrantfile
1515
/.vagrant/
16+
17+
.flattened-pom.xml
18+
.mvn/wrapper/maven-wrapper.jar

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,32 @@
145145
</archive>
146146
</configuration>
147147
</plugin>
148+
<plugin>
149+
<groupId>org.codehaus.mojo</groupId>
150+
<artifactId>flatten-maven-plugin</artifactId>
151+
<executions>
152+
<execution>
153+
<id>flatten</id>
154+
<phase>process-resources</phase>
155+
<goals>
156+
<goal>flatten</goal>
157+
</goals>
158+
<configuration>
159+
<flattenMode>ossrh</flattenMode>
160+
<pomElements>
161+
<build>remove</build>
162+
</pomElements>
163+
</configuration>
164+
</execution>
165+
<execution>
166+
<id>flatten-clean</id>
167+
<phase>clean</phase>
168+
<goals>
169+
<goal>clean</goal>
170+
</goals>
171+
</execution>
172+
</executions>
173+
</plugin>
148174
<plugin>
149175
<groupId>org.jacoco</groupId>
150176
<artifactId>jacoco-maven-plugin</artifactId>

0 commit comments

Comments
 (0)