aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnaël Closson <ac2550@intl.att.com>2017-08-28 15:43:22 +0200
committerAnaël Closson <ac2550@intl.att.com>2017-08-28 14:36:41 +0000
commitd25cc1086a11533df237af7a2abd85ad034e26b7 (patch)
treed556dacac455e6ddb0958da57bc57de9efa83ad1
parent9ab3bc578adf6f095b3da4f8e5b388d8268babbc (diff)
Force oparent users to use release dependencies
This patch adds an enforcer to force users of oparent as parent to use release versions of artifacts. Current rules are quite loose to avoid breaking too much project. Following options might be removed when needed : <failWhenParentIsSnapshot> : when at least oparent changes its version <onlyWhenRelease> : when most project have removed their snapshot dependencies Change-Id: I1f9824557c5bbaae9f4a1378c3bc223edd4b5da4 Issue-id: INT-122 Signed-off-by: Anaël Closson <ac2550@intl.att.com>
-rw-r--r--pom.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index ab67a2f..cc9da52 100644
--- a/pom.xml
+++ b/pom.xml
@@ -83,6 +83,27 @@
</dependencies>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>3.0.0-M1</version>
+ <executions>
+ <execution>
+ <id>enforce-no-snapshots</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireReleaseDeps>
+ <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
+ <onlyWhenRelease>true</onlyWhenRelease>
+ </requireReleaseDeps>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.4</version>
@@ -115,6 +136,10 @@
<artifactId>maven-site-plugin</artifactId>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
</plugin>