gnodet-bot commented on code in PR #14137:
URL: https://github.com/apache/maven/pull/14137#discussion_r4716863174


##########
pom.xml:
##########
@@ -960,6 +966,9 @@ under the License.
                   <excludes>
                     
<exclude>org.sonatype.plexus:plexus-sec-dispatcher</exclude>
                     <exclude>org.sonatype.plexus:plexus-cipher</exclude>
+                    <!-- ban jcl-over-slf4j in compile/runtime scopes; test 
scope is allowed -->
+                    <exclude>org.slf4j:jcl-over-slf4j:*:jar:compile</exclude>
+                    <exclude>org.slf4j:jcl-over-slf4j:*:jar:runtime</exclude>
                   </excludes>
                   <message>ensure no more org.sonatype.plexus:plexus-cipher 
and org.sonatype.plexus:plexus-sec-dispatcher.</message>

Review Comment:
   The two new `jcl-over-slf4j` excludes are appended to the 
`ensure-no-sonatype-cipher-and-sec-dispatcher` execution, but its `<message>` 
only mentions the sonatype artifacts. If `jcl-over-slf4j` ever slips back in at 
compile/runtime scope, the enforcer failure message won't tell the developer 
what triggered it.
   
   ```suggestion
                     <message>ensure no more org.sonatype.plexus:plexus-cipher, 
org.sonatype.plexus:plexus-sec-dispatcher, or org.slf4j:jcl-over-slf4j 
(compile/runtime scopes).</message>
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to