Merge "Added enforcer maven property"
authorSunder Tattavarada <statta@research.att.com>
Tue, 26 May 2020 19:06:18 +0000 (19:06 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 26 May 2020 19:06:18 +0000 (19:06 +0000)
pom.xml

diff --git a/pom.xml b/pom.xml
index 7c48401..e988633 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -41,6 +41,7 @@
                <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
                <enforcer.skip>false</enforcer.skip>
                <sonar.scm.exclusions.disabled>true</sonar.scm.exclusions.disabled>
+               <enforcerToDisableSnapshot>false</enforcerToDisableSnapshot>
        </properties>
 
        <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml 
                      <message>No Snapshots Allowed!</message>
                     </requireReleaseVersion>
                     </rules>
-                    <fail>false</fail>
+                    <fail>${enforcerToDisableSnapshot}</fail>
                     </configuration>
                   </execution>
                  </executions>