[ 
https://issues.apache.org/jira/browse/MENFORCER-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17913488#comment-17913488
 ] 

ASF GitHub Bot commented on MENFORCER-516:
------------------------------------------

slawekjaranowski merged PR #344:
URL: https://github.com/apache/maven-enforcer/pull/344




> 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
>            Priority: Major
>
> 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)

Reply via email to