Adding DependencyConvergence enforcer to the integration project
authorMadhu Venugopal <mavenugo@gmail.com>
Mon, 13 Jan 2014 22:57:00 +0000 (14:57 -0800)
committerMadhu Venugopal <mavenugo@gmail.com>
Mon, 13 Jan 2014 22:57:00 +0000 (14:57 -0800)
To keep the regular bulid from failing, the enforcer is wrapped under a specific profile: dependencyConvergence.
Use the -PdependencyConvergence to enable this profile. We will have to create a daily jenkins job to trigger
this profile and check for the convergence.

Change-Id: If474889ed83f43355d3ee5c5d44d165e0702eaf4
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
distributions/pom.xml

index 97320b9be751d2b490838bb49a463c2fb64af185..6b30479e94398d22ee517c032229192847ee5bbb 100644 (file)
     <module>virtualization/</module>
     <module>serviceprovider/</module>
   </modules>
+  <profiles>
+    <profile>
+      <id>dependencyConvergence</id>
+      <build>
+        <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-enforcer-plugin</artifactId>
+          <version>1.3.1</version>
+          <executions>
+            <execution>
+              <id>Dependency-Convergence</id>
+              <goals>
+                <goal>enforce</goal>
+              </goals>
+              <configuration>
+                <rules>
+                  <DependencyConvergence/>
+                </rules>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>