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

Add scope to bannedDependencies rule

    XMLWordPrintableJSON

Details

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

    Description

      It would be fine if this enforcer rule could be tuned more finely to fail only if some dependency is put with some specified scope (the same could be done for the optional tag, btw).

      In fact, in my case, I'd like to be sure that no project of ours is using log4j as a compile dependency, but it is allowed as a runtime one.
      Another example: no project should ever have servlet-api as a dependency, with another scope than provided.

      Thanks in advance.
      Cheers.

      Attachments

        Issue Links

          Activity

            People

              pgier Paul Gier
              mathus.b@mipih.fr Baptiste MATHUS
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: