Skip to content

Commit dc4c899

Browse files
committed
Ensure no snapshots get referenced in release builds
[resolves #299]
1 parent 0e7e33d commit dc4c899

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,27 @@
292292
<artifactId>maven-deploy-plugin</artifactId>
293293
<version>2.8.2</version>
294294
</plugin>
295+
<plugin>
296+
<groupId>org.apache.maven.plugins</groupId>
297+
<artifactId>maven-enforcer-plugin</artifactId>
298+
<version>3.0.0-M3</version>
299+
<executions>
300+
<execution>
301+
<id>enforce-no-snapshots</id>
302+
<goals>
303+
<goal>enforce</goal>
304+
</goals>
305+
<configuration>
306+
<rules>
307+
<requireReleaseDeps>
308+
<onlyWhenRelease>true</onlyWhenRelease>
309+
<message>No Snapshots in releases allowed!</message>
310+
</requireReleaseDeps>
311+
</rules>
312+
</configuration>
313+
</execution>
314+
</executions>
315+
</plugin>
295316
<plugin>
296317
<groupId>org.apache.maven.plugins</groupId>
297318
<artifactId>maven-javadoc-plugin</artifactId>

0 commit comments

Comments
 (0)