jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Enforcer Plugin
  • MENFORCER-72

Add scope to bannedDependencies rule

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0-beta-1
  • Fix Version/s: 1.0
  • Component/s: Standard Rules
  • Labels:
    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.

Issue Links

is duplicated by

Improvement - An improvement or enhancement to an existing feature or task. MENFORCER-90 Allow "BannedDependencies" to restrict artifacts per-scope

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Paul Gier added a comment - 26/Aug/10 3:38 PM

Fixed in r989917.

Show
Paul Gier added a comment - 26/Aug/10 3:38 PM Fixed in r989917.

People

  • Assignee:
    Paul Gier
    Reporter:
    Baptiste MATHUS
Vote (5)
Watch (4)

Dates

  • Created:
    25/May/09 11:10 AM
    Updated:
    02/Nov/10 12:45 PM
    Resolved:
    26/Aug/10 3:38 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.