Optional execution off versions-maven-plugin 75/9175/1 v0.1.0
authorAnaël Closson <ac2550@intl.att.com>
Tue, 29 Aug 2017 15:18:08 +0000 (17:18 +0200)
committerAnaël Closson <ac2550@intl.att.com>
Tue, 29 Aug 2017 15:18:08 +0000 (17:18 +0200)
The maven plugin used for displaying the list of artifacts that can be
updated consumes a lot of time on each job execution on the LF infrastructure.

The execution should be optional and can be configured by assigning it
on a specific maven phase when needed using the following variable:
 versions.plugin.phase

By default, it's assigned to a non existing phase to disable it.

Change-Id: I30d38a8458e6e855ff27cf3c31678cbc373e59c9
Issue-Id: INT-121
Signed-off-by: Anaël Closson <ac2550@intl.att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index 64a62ed..7ac034e 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -34,6 +34,7 @@
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
+    <versions.plugin.phase>none</versions.plugin.phase>
     <!-- sitePath may be overridden in the inheriting POM if desired -->
     <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
   </properties>
           <executions>
             <execution>
               <id>check-dependencies-version</id>
-              <phase>validate</phase>
+              <phase>${versions.plugin.phase}</phase>
               <goals>
                 <goal>display-dependency-updates</goal>
               </goals>