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-4274

Plugins with an undeclared but transitive dependency on plexus-utils via a core artifact get wrong version of p-u

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.6
  • Fix Version/s: 3.0-alpha-3
  • Component/s: Class Loading, Plugins and Lifecycle
  • Labels:
    None
  • Complexity:
    Intermediate

Description

An excerpt from a plugin's dependency tree

[INFO] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2
[INFO] +- org.apache.maven:maven-plugin-api:jar:2.0:compile
[INFO] +- org.apache.maven:maven-project:jar:2.0:compile
[INFO] |  +- org.codehaus.plexus:plexus-utils:jar:1.0.4:compile

Note that the plugin has an indirect dependency on plexus-utils:1.0.4 via maven-project.

Maven curently filters out core artifacts and their transitive dependencies from the plugin realm. Given the above example, this also removes plexus-utils from the plugin artifacts. Maven 2.x injects plexus-utils:1.1 instead, Maven 3.x injects the plexus-utils from its distro. In both cases, the plugin ends up with a different version of plexus-utils than it was compiled/tested with, giving rise to linkage errors or wrong plugin behavior.

The issue is theoretically not limited to plexus-utils but it's the most prominent example.

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MNG-4276 Plugins with indirect dependency on plexus-utils are stuck with plexus-utils:1.1

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

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Benjamin Bentmann added a comment - 02/Aug/09 8:09 AM

Regarding the effect on the plugin realm, this issue is a close relative of MNG-4276. The difference is that MNG-4276 is limited to plexus-utils and independent from the plugin artifact that transitively provides plexus-utils. In contrast, this issue is about all transitive dependencies of core artifacts.

Show
Benjamin Bentmann added a comment - 02/Aug/09 8:09 AM Regarding the effect on the plugin realm, this issue is a close relative of MNG-4276. The difference is that MNG-4276 is limited to plexus-utils and independent from the plugin artifact that transitively provides plexus-utils. In contrast, this issue is about all transitive dependencies of core artifacts.
Hide
Permalink
Benjamin Bentmann added a comment - 02/Aug/09 9:44 AM

Fixed in r800087.

Show
Benjamin Bentmann added a comment - 02/Aug/09 9:44 AM Fixed in r800087.

People

  • Assignee:
    Benjamin Bentmann
    Reporter:
    Benjamin Bentmann
Vote (0)
Watch (0)

Dates

  • Created:
    01/Aug/09 5:38 PM
    Updated:
    02/Aug/09 9:44 AM
    Resolved:
    02/Aug/09 9:44 AM
  • 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.