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 & 3
  • MNG-2589

Inherit transitive dependencies with runtime scope

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.0.4
  • Fix Version/s: Issues to be reviewed for 3.x
  • Component/s: Dependencies
  • Labels:
    None
  • Complexity:
    Intermediate

Description

Transitive dependencies of scope "compile" should be inherited with scope "runtime" only. This would avoid unwanted usage of 3rd party packages and make explicit dependencies visible. It should be possible at least to run Maven in such a mode.

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-2205 "provided" scope dependencies must be transitive

  • Critical - Crashes, loss of data, severe memory leak.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Joerg Schaible added a comment - 04/Oct/06 5:21 AM

Should have been assigned to the component "Dependencies" ...

Show
Joerg Schaible added a comment - 04/Oct/06 5:21 AM Should have been assigned to the component "Dependencies" ...
Hide
Permalink
Joerg Schaible added a comment - 17/Jan/07 4:05 PM

Should have been "Transitive dependencies of scope "compile" should be inherited with scope "runtime" only"

Show
Joerg Schaible added a comment - 17/Jan/07 4:05 PM Should have been "Transitive dependencies of scope "compile" should be inherited with scope "runtime" only"
Hide
Permalink
Jason van Zyl added a comment - 02/Sep/07 7:49 PM

Maybe this could be another enforcer rule? Brian?

Show
Jason van Zyl added a comment - 02/Sep/07 7:49 PM Maybe this could be another enforcer rule? Brian?
Hide
Permalink
Sei Syvalta added a comment - 17/Apr/08 2:10 AM

Please read my comment in MNG-2205 (don't wan't to copy-paste that here). Generally, I think this should be how maven would work, so transitive dependencies would not be included in compile time classpath.

I know some people will think otherwise, so perhaps providing an option would be good, but I would prefer the default being as Joerg suggests.

Could someone fix the subject?

Show
Sei Syvalta added a comment - 17/Apr/08 2:10 AM Please read my comment in MNG-2205 (don't wan't to copy-paste that here). Generally, I think this should be how maven would work, so transitive dependencies would not be included in compile time classpath. I know some people will think otherwise, so perhaps providing an option would be good, but I would prefer the default being as Joerg suggests. Could someone fix the subject?
Hide
Permalink
Benjamin Bentmann added a comment - 29/Apr/08 4:27 PM

Just as to clarify why the current behavior is as is: See the note on dependency scope on the Maven site. Seems to be a "better safe than sorry" approach.

Show
Benjamin Bentmann added a comment - 29/Apr/08 4:27 PM Just as to clarify why the current behavior is as is: See the note on dependency scope on the Maven site. Seems to be a "better safe than sorry" approach.

People

  • Assignee:
    Unassigned
    Reporter:
    Joerg Schaible
Vote (9)
Watch (8)

Dates

  • Created:
    04/Oct/06 5:19 AM
    Updated:
    13/Dec/08 6:35 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.