Skip to content

Instantly share code, notes, and snippets.

@JorgenRingen
Created December 7, 2018 11:51
Show Gist options
  • Save JorgenRingen/2795051e5e636ea94b2a6a48d456ade7 to your computer and use it in GitHub Desktop.
Save JorgenRingen/2795051e5e636ea94b2a6a48d456ade7 to your computer and use it in GitHub Desktop.
Example of flatten-maven-plugin
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<configuration>
<updatePomFile>true</updatePomFile>
<outputDirectory>${project.build.directory}</outputDirectory>
<pomElements>
<repositories>remove</repositories>
</pomElements>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment