Skip to content

Commit dc6a6b1

Browse files
authored
fix(build): duplicate maven-enforcer-plugin declaration (#1155)
1 parent 146f69f commit dc6a6b1

File tree

1 file changed

+16
-23
lines changed

1 file changed

+16
-23
lines changed

pom.xml

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -263,28 +263,6 @@
263263

264264
<plugins> <!-- plugins inherited by all child POMs -->
265265

266-
<!-- Java version enforcer -->
267-
<plugin>
268-
<groupId>org.apache.maven.plugins</groupId>
269-
<artifactId>maven-enforcer-plugin</artifactId>
270-
<version>3.6.2</version>
271-
<executions>
272-
<execution>
273-
<id>enforce-java</id>
274-
<goals>
275-
<goal>enforce</goal>
276-
</goals>
277-
<configuration>
278-
<rules>
279-
<requireJavaVersion>
280-
<version>[21,)</version>
281-
</requireJavaVersion>
282-
</rules>
283-
</configuration>
284-
</execution>
285-
</executions>
286-
</plugin>
287-
288266
<!-- static analysis -->
289267
<plugin>
290268
<groupId>com.github.spotbugs</groupId>
@@ -388,12 +366,13 @@
388366
</executions>
389367
</plugin>
390368

391-
<!-- dependency convergence -->
369+
<!-- enforcers -->
392370
<plugin>
393371
<groupId>org.apache.maven.plugins</groupId>
394372
<artifactId>maven-enforcer-plugin</artifactId>
395373
<version>3.6.2</version>
396374
<executions>
375+
<!-- dependency convergence -->
397376
<execution>
398377
<id>enforce-dependency-convergence</id>
399378
<goals>
@@ -410,6 +389,20 @@
410389
</rules>
411390
</configuration>
412391
</execution>
392+
<!-- Java version enforcer -->
393+
<execution>
394+
<id>enforce-java</id>
395+
<goals>
396+
<goal>enforce</goal>
397+
</goals>
398+
<configuration>
399+
<rules>
400+
<requireJavaVersion>
401+
<version>[21,)</version>
402+
</requireJavaVersion>
403+
</rules>
404+
</configuration>
405+
</execution>
413406
</executions>
414407
</plugin>
415408

0 commit comments

Comments
 (0)