Require Snapshot Version
This rule checks that the current project is not a release.
The following parameters are supported by this rule:
- message - an optional message to the user if the rule fails.
- failWhenParentIsRelease - if the parent should be checked. Default: true
Sample Plugin Configuration:
<project> [...] <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.4.1</version> <executions> <execution> <id>enforce-no-releases</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireSnapshotVersion> <message>No Releases Allowed!</message> </requireSnapshotVersion> </rules> <fail>true</fail> </configuration> </execution> </executions> </plugin> </plugins> </build> [...] </project>