Skip to content

Commit

Permalink
devonfw#389: fixed by flattening POMs in archetype
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed May 6, 2021
1 parent 92a6ec1 commit 5c6407c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions templates/server/src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<jackson.version>$[jackson.version]</jackson.version> <!-- Overriding Jackson for fixing vulnerabilities -->
<guava.version>$[guava.version]</guava.version>
<devonfw.test.excluded.groups>system</devonfw.test.excluded.groups>
<flatten.mode>oss</flatten.mode>
</properties>

<modules>
Expand Down Expand Up @@ -122,6 +123,31 @@
</execution>
</executions>
</plugin>

<!-- generate and use flattened pom instead of pom.xml -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<configuration>
<flattenMode>${flatten.mode}</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-test-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down

0 comments on commit 5c6407c

Please sign in to comment.