Added enforcer maven property 48/108148/1
authorjz385p <jegadeesh.babu@att.com>
Fri, 22 May 2020 17:09:38 +0000 (22:39 +0530)
committerjz385p <jegadeesh.babu@att.com>
Fri, 22 May 2020 17:10:55 +0000 (22:40 +0530)
Added enforcer maven property

Issue-ID: PORTAL-908
Change-Id: Ia36b91d61c564243fd558202141d35725e797c83
Signed-off-by: jz385p <jegadeesh.babu@att.com>
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>