Skip to content

Commit 1d15461

Browse files
authored
Tar i bruk maven enforcer (#454)
1 parent c400171 commit 1d15461

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

pom.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33

44
<modelVersion>4.0.0</modelVersion>
55
<groupId>no.nav.k9</groupId>
@@ -220,6 +220,11 @@
220220
<artifactId>maven-resources-plugin</artifactId>
221221
<version>3.3.1</version>
222222
</plugin>
223+
<plugin>
224+
<groupId>org.apache.maven.plugins</groupId>
225+
<artifactId>maven-enforcer-plugin</artifactId>
226+
<version>3.5.0</version>
227+
</plugin>
223228
</plugins>
224229
</pluginManagement>
225230

@@ -283,6 +288,25 @@
283288
</execution>
284289
</executions>
285290
</plugin>
291+
<plugin>
292+
<groupId>org.apache.maven.plugins</groupId>
293+
<artifactId>maven-enforcer-plugin</artifactId>
294+
<executions>
295+
<execution>
296+
<id>default-cli</id>
297+
<goals>
298+
<goal>enforce</goal>
299+
</goals>
300+
<configuration>
301+
<rules>
302+
<dependencyConvergence/>
303+
<reactorModuleConvergence/>
304+
</rules>
305+
<fail>true</fail>
306+
</configuration>
307+
</execution>
308+
</executions>
309+
</plugin>
286310
</plugins>
287311
</build>
288312

0 commit comments

Comments
 (0)