anthonyvdotbe opened a new issue, #972:
URL: https://github.com/apache/maven-enforcer/issues/972
### Affected version
3.6.2
### Bug description
With the configuration:
```xml
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.6.2</version>
<configuration>
<rules>
<requireReleaseDeps>
<onlyWhenRelease>true</onlyWhenRelease>
</requireReleaseDeps>
</rules>
</configuration>
</plugin>
```
`requireReleaseDeps` fails if the parent is a SNAPSHOT version:
```plaintext
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-enforcer-plugin:3.6.2:enforce (default) on
project project-parent:
[ERROR] Rule 6:
org.apache.maven.enforcer.rules.dependency.RequireReleaseDeps failed with
message:
[ERROR] Parent Cannot be a snapshot: groupId:artifactId:pom:2.0.5-SNAPSHOT
```
Expected behavior is that the rule passes, since my POM's version is a
SNAPSHOT version, and so the rule should be skipped entirely.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]