streams-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfrank...@apache.org
Subject [5/6] git commit: STREAMS-174 | Use the maven-enforcer-plugin to fail builds if snapshot dependencies are used
Date Wed, 24 Sep 2014 18:22:00 GMT
STREAMS-174 | Use the maven-enforcer-plugin to fail builds if snapshot dependencies are used


Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/09a2995e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/09a2995e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/09a2995e

Branch: refs/heads/master
Commit: 09a2995e20629c9298702977361b5b8e7e6acca3
Parents: 5c76c17
Author: Stanton Sievers <ssievers@w2odigital.com>
Authored: Tue Sep 16 14:55:42 2014 -0400
Committer: Stanton Sievers <ssievers@w2odigital.com>
Committed: Tue Sep 16 14:55:42 2014 -0400

----------------------------------------------------------------------
 pom.xml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/09a2995e/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index c362b23..85c3472 100644
--- a/pom.xml
+++ b/pom.xml
@@ -88,6 +88,7 @@
         <json-path.version>0.9.1</json-path.version>
         <build-helper.version>1.8</build-helper.version>
         <facebook4j.version>2.1.0</facebook4j.version>
+        <maven.enforcer.plugin.version>1.3.1</maven.enforcer.plugin.version>
     </properties>
 
     <modules>
@@ -129,6 +130,34 @@
                 <executions>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-enforcer-plugin</artifactId>
+                <version>${maven.enforcer.plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>enforce-no-snapshots</id>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <requireReleaseDeps>
+                                    <message>No Snapshots Allowed!</message>
+                                    <!-- Don't fail for modules within this project's
groupId or sub-groupIds -->
+                                    <excludes>
+                                        <exclude>org.apache.streams:*</exclude>
+                                        <exclude>org.apache.streams.*:*</exclude>
+                                    </excludes>
+                                    <!-- Don't fail for parents being snapshots as the
only parent modules are within this project -->
+                                    <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
+                                </requireReleaseDeps>
+                            </rules>
+                            <fail>true</fail>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
         <pluginManagement>
             <plugins>


Mime
View raw message