Ben Foster created MENFORCER-516:
------------------------------------
Summary: Honor rule configuration when invoked from the command
line
Key: MENFORCER-516
URL: https://issues.apache.org/jira/browse/MENFORCER-516
Project: Maven Enforcer Plugin
Issue Type: Improvement
Affects Versions: 3.5.0
Reporter: Ben Foster
I would like to configure a rule within the pom, and invoke just that rule from
the command line, with the rule honoring the configuration in the pom.
For example, if I configure the plugin in the pom like:
{code:java}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<rules>
<requireReleaseDeps>
<excludes>
<exclude>my-project-group:*</exclude>
</excludes>
</requireReleaseDeps>
</rules>
</configuration>
</plugin>{code}
And run maven like:
{code:java}
$ mvn enforcer:enforce -Denforcer.rules=requireReleaseDeps {code}
I would expect / like the exclude configuration to apply. Instead it does not.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)