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

Banned dependencies should support regular expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-1
    • 1.3
    • Standard Rules
    • None

    Description

      The includes and excludes of the bannedDependencies rule support wildcards, but only for an entire section.

      They should be enhanced to support regular expressions.

      For instance instead of having

      <includes>
        <include>my.company:abc-api</include>
        <include>my.company:def-api</include>
        <include>my.company:ghi-api</include>
        <include>my.company:jkl-api</include>
      </includes>
      

      one would specify

      <includes>
        <include>my.company:.*-api</include>
      </includes>
      

      To be compatible, the wildcard '*' would be treated as regular expression '.*'

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              ericlewis Eric Lewis
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: