Skip to content

Commit 58b8039

Browse files
committed
Add flatten-maven-plugin configuration
1 parent d163e13 commit 58b8039

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ out
2626

2727
/.gradletasknamecache
2828
/spring-batch-jsr352-tck/jsr352-tck-1.0/results/
29+
**/*.flattened-pom.xml

pom.xml

+33
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
<maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
122122
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
123123
<jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
124+
<flatten-maven-plugin.version>1.2.5</flatten-maven-plugin.version>
124125
</properties>
125126

126127
<build>
@@ -215,6 +216,38 @@
215216
</execution>
216217
</executions>
217218
</plugin>
219+
<plugin>
220+
<groupId>org.codehaus.mojo</groupId>
221+
<artifactId>flatten-maven-plugin</artifactId>
222+
<version>${flatten-maven-plugin.version}</version>
223+
<executions>
224+
<execution>
225+
<id>flatten</id>
226+
<phase>process-resources</phase>
227+
<goals>
228+
<goal>flatten</goal>
229+
</goals>
230+
<configuration>
231+
<updatePomFile>true</updatePomFile>
232+
<flattenMode>ossrh</flattenMode>
233+
<pomElements>
234+
<distributionManagement>remove</distributionManagement>
235+
<repositories>remove</repositories>
236+
<scm>keep</scm>
237+
<url>keep</url>
238+
<organization>resolve</organization>
239+
</pomElements>
240+
</configuration>
241+
</execution>
242+
<execution>
243+
<id>clean</id>
244+
<phase>clean</phase>
245+
<goals>
246+
<goal>clean</goal>
247+
</goals>
248+
</execution>
249+
</executions>
250+
</plugin>
218251
</plugins>
219252
</build>
220253

0 commit comments

Comments
 (0)