[
https://issues.apache.org/jira/browse/MENFORCER-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17881387#comment-17881387
]
Slawomir Jaranowski commented on MENFORCER-511:
-----------------------------------------------
Which version of plugin do you use?
setter method is not required.
We have an IT -
https://github.com/apache/maven-enforcer/tree/master/maven-enforcer-plugin/src/it/projects/require-upper-bound-dependencies-scope-change
> 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)