Add snapshot exclusions for aaf 99/67399/1
authordglFromAtt <dgl@research.att.com>
Wed, 12 Sep 2018 01:29:50 +0000 (21:29 -0400)
committerdglFromAtt <dgl@research.att.com>
Wed, 12 Sep 2018 01:29:57 +0000 (21:29 -0400)
Change-Id: I561d3a5737e457998e056fb12efe0090bed4c7f7
Signed-off-by: dglFromAtt <dgl@research.att.com>
Issue-ID: AAF-504

pom.xml

diff --git a/pom.xml b/pom.xml
index 1349351..d9aeb55 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                  </dependencies>
                </plugin>
 
+               <!-- prevent SNAPSHOT dependencies -->
+               <plugin>
+                       <groupId>org.apache.maven.plugins</groupId>
+                       <artifactId>maven-enforcer-plugin</artifactId>
+                       <executions>
+                               <execution>
+                                       <id>enforce-no-snapshots</id>
+                                       <goals>
+                                               <goal>enforce</goal>
+                                       </goals>
+                                       <configuration>
+                                               <rules>
+                                                       <requireReleaseDeps>
+                                                               <message>No Snapshots Allowed!</message>
+                                                               <excludes>
+                                                                       <exclude>org.onap.aaf.authz:aaf-cadi-client</exclude>
+                                                                       <exclude>org.onap.aaf.authz:aaf-misc-env</exclude>
+                                                                       <exclude>org.onap.aaf.authz:aaf-cadi-aaf</exclude>
+                                                                       <exclude>org.onap.aaf.authz:aaf-auth-client</exclude>
+                                                                       <exclude>org.onap.aaf.authz:aaf-cadi-core</exclude>
+                                                                       <exclude>org.onap.aaf.authz:aaf-misc-rosetta</exclude>
+                                                               </excludes>
+                                                       </requireReleaseDeps>
+                                               </rules>
+                                               <fail>true</fail>
+                                       </configuration>
+                               </execution>
+                       </executions>
+               </plugin>
+
                </plugins>
                <pluginManagement>
                        <plugins>