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

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

slawekjaranowski commented on PR #344:
URL: https://github.com/apache/maven-enforcer/pull/344#issuecomment-2589143446

   @bpfoster - Last question we have a documentation page: 
https://maven.apache.org/enforcer/maven-enforcer-plugin/examples/check-specific-rule-via-cli.html
   
   Should we add something about such feature?
   in code we have file: 
`maven-enforcer-plugin/src/site/apt/examples/check-specific-rule-via-cli.apt.vm`




> 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