Add a dependency-convergence profile 43/76543/1
authorStephen Kitt <skitt@redhat.com>
Thu, 13 Sep 2018 08:52:34 +0000 (10:52 +0200)
committerLuis Gomez <ecelgp@gmail.com>
Mon, 1 Oct 2018 19:16:55 +0000 (19:16 +0000)
This profile enforces dependency convergence. This could soon be
useful since we are close to dependency convergence now; it would at
least be nice to have a specific job to track this.

Change-Id: Ia2d4951a534f8a85c4d505ef8fb7029786450401
Signed-off-by: Stephen Kitt <skitt@redhat.com>
(cherry picked from commit 36f004c3aaaa2b38306e5d0ac1f48cd54f7d5d83)

karaf/pom.xml

index 61029645586e01679360c0cfe483067835c60ef2..f130a74040b93119739da941a0ab9389a1e09cdf 100644 (file)
             </plugin>
         </plugins>
     </build>
+
+    <profiles>
+        <profile>
+            <id>dependency-convergence</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-enforcer-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>enforce-dependency-convergence</id>
+                                <goals>
+                                    <goal>enforce</goal>
+                                </goals>
+                                <configuration>
+                                    <rules>
+                                        <dependencyConvergence/>
+                                    </rules>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>