[
https://issues.apache.org/jira/browse/MENFORCER-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17912588#comment-17912588
]
ASF GitHub Bot commented on MENFORCER-516:
------------------------------------------
bpfoster commented on code in PR #344:
URL: https://github.com/apache/maven-enforcer/pull/344#discussion_r1913438979
##########
maven-enforcer-plugin/src/it/projects/cli-banned-plugins/pom.xml:
##########
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.enforcer</groupId>
+ <artifactId>test</artifactId>
+ <version>1.0</version>
+
+ <description>
+ </description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>3.6.0</version>
Review Comment:
Can do, will make that change.
> 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)