Created
December 7, 2018 11:51
-
-
Save JorgenRingen/2795051e5e636ea94b2a6a48d456ade7 to your computer and use it in GitHub Desktop.
Example of flatten-maven-plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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