Add flatten-maven-plugin configuration

This commit is contained in:
Mahmoud Ben Hassine
2020-12-10 23:42:22 +01:00
parent d163e13e82
commit 58b80395be
2 changed files with 34 additions and 0 deletions

1
.gitignore vendored
View File

@@ -26,3 +26,4 @@ out
/.gradletasknamecache
/spring-batch-jsr352-tck/jsr352-tck-1.0/results/
**/*.flattened-pom.xml

33
pom.xml
View File

@@ -121,6 +121,7 @@
<maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
<flatten-maven-plugin.version>1.2.5</flatten-maven-plugin.version>
</properties>
<build>
@@ -215,6 +216,38 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>ossrh</flattenMode>
<pomElements>
<distributionManagement>remove</distributionManagement>
<repositories>remove</repositories>
<scm>keep</scm>
<url>keep</url>
<organization>resolve</organization>
</pomElements>
</configuration>
</execution>
<execution>
<id>clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>