Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-511

RequireUpperBoundDeps: ExcludedScopes does not work

    XMLWordPrintableJSON

Details

    Description

      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:

      org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot find 'excludedScopes' in class org.apache.maven.plugins.enforcer.RequireUpperBoundDeps
      

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              matthies Niklas Matthies
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: