You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2025/01/15 23:06:00 UTC

[jira] [Closed] (MENFORCER-516) Honor rule configuration when invoked from the command line

     [ https://issues.apache.org/jira/browse/MENFORCER-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Slawomir Jaranowski closed MENFORCER-516.
-----------------------------------------
    Fix Version/s: next-release
         Assignee: Slawomir Jaranowski
       Resolution: Fixed

> 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
>            Assignee: Slawomir Jaranowski
>            Priority: Major
>             Fix For: next-release
>
>
> 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)