You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Niklas Matthies (Jira)" <ji...@apache.org> on 2024/09/12 18:48:00 UTC
[jira] [Comment Edited] (MENFORCER-511) RequireUpperBoundDeps: ExcludedScopes does not work
[ https://issues.apache.org/jira/browse/MENFORCER-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17881395#comment-17881395 ]
Niklas Matthies edited comment on MENFORCER-511 at 9/12/24 6:47 PM:
--------------------------------------------------------------------
[~sjaranowski]: Okay, now that I tried again it suddenly works. Really not sure what was wrong before, sorry for the false alarm.
Incidentally, there is a typo in the example on https://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html, the closing tag doesn't match: "<excludedScope>provided</excludedScopes>".
was (Author: matthies):
[~sjaranowski]: Okay, now that I tried again it suddenly works. Really not sure what was wrong before, sorry for the false alarm.
Incidentally, there is a typo in the example on https://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html, the closing tag doesn't match" "<excludedScope>provided</excludedScopes>".
> RequireUpperBoundDeps: ExcludedScopes does not work
> ---------------------------------------------------
>
> Key: MENFORCER-511
> URL: https://issues.apache.org/jira/browse/MENFORCER-511
> Project: Maven Enforcer Plugin
> Issue Type: Bug
> Components: requireUpperBoundDeps
> Reporter: Niklas Matthies
> Priority: Major
>
> The ExcludedScopes parameter does not work as described in https://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html. The following exception occurs when trying to use it in a POM:
> {code}
> org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot find 'excludedScopes' in class org.apache.maven.plugins.enforcer.RequireUpperBoundDeps
> {code}
> I suspect this is because the RequireUpperBoundDeps class has no setExcludedScopes() method. Cf. the commit where the feature was supposedly added: https://github.com/apache/maven-enforcer/commit/78488535e0cfc37e26707c12d944ff8437b94fc4
--
This message was sent by Atlassian Jira
(v8.20.10#820010)