Skip to content

Commit 5e53c0c

Browse files
authored
#389: fixed by flattening POMs in archetype (#390)
1 parent 3132d51 commit 5e53c0c

File tree

1 file changed

+26
-0
lines changed
  • templates/server/src/main/resources/archetype-resources

1 file changed

+26
-0
lines changed

templates/server/src/main/resources/archetype-resources/pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<jackson.version>$[jackson.version]</jackson.version> <!-- Overriding Jackson for fixing vulnerabilities -->
2020
<guava.version>$[guava.version]</guava.version>
2121
<devonfw.test.excluded.groups>system</devonfw.test.excluded.groups>
22+
<flatten.mode>oss</flatten.mode>
2223
</properties>
2324

2425
<modules>
@@ -122,6 +123,31 @@
122123
</execution>
123124
</executions>
124125
</plugin>
126+
127+
<!-- generate and use flattened pom instead of pom.xml -->
128+
<plugin>
129+
<groupId>org.codehaus.mojo</groupId>
130+
<artifactId>flatten-maven-plugin</artifactId>
131+
<configuration>
132+
<flattenMode>${flatten.mode}</flattenMode>
133+
</configuration>
134+
<executions>
135+
<execution>
136+
<id>flatten</id>
137+
<phase>process-test-resources</phase>
138+
<goals>
139+
<goal>flatten</goal>
140+
</goals>
141+
</execution>
142+
<execution>
143+
<id>flatten.clean</id>
144+
<phase>clean</phase>
145+
<goals>
146+
<goal>clean</goal>
147+
</goals>
148+
</execution>
149+
</executions>
150+
</plugin>
125151
</plugins>
126152
<pluginManagement>
127153
<plugins>

0 commit comments

Comments
 (0)