I would like to apply the requireReleaseDeps rule for the Maven Enforcer Plugin in a Maven project without any POM configuration, just like a command line call.
According to the docs, I should be able to simply pass the rule parameter this way
mvn enforcer:enforce -Drules=requireReleaseDeps
or maybe this should work
mvn enforcer:enforce -Drules=org.apache.maven.plugins.enforcer.RequireReleaseDeps
However, both of these calls lead to
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (default-cli) on project hel lo-world: The parameters 'rules' for goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce are missing or in valid -> [Help 1]
Does anyone know if this use case really works, or do I need to dive into the debugging plugin at this point to figure this out?
source share