I am using Apache Maven 3.8.4
and running enforcer rule
via command line something like below:
mvn enforcer:enforce -Denforcer.rules=requireReleaseDeps
It is a multi-module maven project and it fails with error Parent Cannot be a snapshot
because the failWhenParentIsSnapshot
is by default true
. So, with the above command how can I pass the rule parameters? For example I would like to set failWhenParentIsSnapshot=false
I have tried below commands, nothing works.
mvn enforcer:enforce -Denforcer.rules=requireReleaseDeps -DfailWhenParentIsSnapshot=false
mvn enforcer:enforce -Denforcer.rules=requireReleaseDeps -Denforcer.rules.requireReleaseDeps.failWhenParentIsSnapshot=false