Skip to content

Commit 7be56ac

Browse files
committed
Ensure no snapshots get referenced in release builds
[resolves #165]
1 parent 9f6cc1a commit 7be56ac

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
@@ -253,6 +253,27 @@
253253
<artifactId>maven-deploy-plugin</artifactId>
254254
<version>2.8.2</version>
255255
</plugin>
256+
<plugin>
257+
<groupId>org.apache.maven.plugins</groupId>
258+
<artifactId>maven-enforcer-plugin</artifactId>
259+
<version>3.0.0-M3</version>
260+
<executions>
261+
<execution>
262+
<id>enforce-no-snapshots</id>
263+
<goals>
264+
<goal>enforce</goal>
265+
</goals>
266+
<configuration>
267+
<rules>
268+
<requireReleaseDeps>
269+
<onlyWhenRelease>true</onlyWhenRelease>
270+
<message>No Snapshots in releases allowed!</message>
271+
</requireReleaseDeps>
272+
</rules>
273+
</configuration>
274+
</execution>
275+
</executions>
276+
</plugin>
256277
<plugin>
257278
<groupId>org.apache.maven.plugins</groupId>
258279
<artifactId>maven-javadoc-plugin</artifactId>

0 commit comments

Comments
 (0)