Skip to content

Commit ecb1560

Browse files
committed
troubleshoot validation - reintroduce flatten-maven-plugin
1 parent a3e9985 commit ecb1560

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,31 @@
11071107
<autoPublish>false</autoPublish>
11081108
</configuration>
11091109
</plugin>
1110+
<!-- flatten POM files to resolve dependency version information stored in BOMs -->
1111+
<plugin>
1112+
<groupId>org.codehaus.mojo</groupId>
1113+
<artifactId>flatten-maven-plugin</artifactId>
1114+
<version>1.7.1</version>
1115+
<executions>
1116+
<execution>
1117+
<id>flatten</id>
1118+
<phase>process-resources</phase>
1119+
<goals>
1120+
<goal>flatten</goal>
1121+
</goals>
1122+
</execution>
1123+
<execution>
1124+
<id>flatten.clean</id>
1125+
<goals>
1126+
<goal>clean</goal>
1127+
</goals>
1128+
</execution>
1129+
</executions>
1130+
<configuration>
1131+
<!-- pre-defined config for open source projects -->
1132+
<flattenMode>oss</flattenMode>
1133+
</configuration>
1134+
</plugin>
11101135
</plugins>
11111136
</pluginManagement>
11121137
<plugins>
@@ -1148,6 +1173,10 @@
11481173
<groupId>org.apache.maven.plugins</groupId>
11491174
<artifactId>maven-gpg-plugin</artifactId>
11501175
</plugin>
1176+
<plugin>
1177+
<groupId>org.codehaus.mojo</groupId>
1178+
<artifactId>flatten-maven-plugin</artifactId>
1179+
</plugin>
11511180
<!-- The plugins configuration below will not be inherited by children projects, they are specific to the parent pom -->
11521181
<plugin>
11531182
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)