Skip to content

Commit 9a74b81

Browse files
committed
Add maven-enforcer-plugin
1 parent 5320952 commit 9a74b81

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@
221221
<artifactId>coveralls-maven-plugin</artifactId>
222222
<version>4.3.0</version>
223223
</plugin>
224+
<plugin>
225+
<groupId>org.apache.maven.plugins</groupId>
226+
<artifactId>maven-enforcer-plugin</artifactId>
227+
<version>3.5.0</version>
228+
</plugin>
224229
</plugins>
225230
</pluginManagement>
226231
<plugins>
@@ -235,6 +240,31 @@
235240
<autoReleaseAfterClose>true</autoReleaseAfterClose>
236241
</configuration>
237242
</plugin>
243+
<plugin>
244+
<groupId>org.apache.maven.plugins</groupId>
245+
<artifactId>maven-enforcer-plugin</artifactId>
246+
<executions>
247+
<execution>
248+
<id>enforce-versions</id>
249+
<phase>validate</phase>
250+
<goals>
251+
<goal>enforce</goal>
252+
</goals>
253+
<configuration>
254+
<fail>true</fail>
255+
<failFast>false</failFast>
256+
<rules>
257+
<banDuplicatePomDependencyVersions/>
258+
<banDynamicVersions/>
259+
<requireMavenVersion>
260+
<!-- Enforce the same version we define in the maven wrapper -->
261+
<version>[3.9.6,3.99.99]</version>
262+
</requireMavenVersion>
263+
</rules>
264+
</configuration>
265+
</execution>
266+
</executions>
267+
</plugin>
238268
<plugin>
239269
<groupId>com.github.github</groupId>
240270
<artifactId>site-maven-plugin</artifactId>

0 commit comments

Comments
 (0)