Maven 2 & 3

[regression] Plugins that don't declare dependency on plexus-utils no longer get plexus-utils:1.1

Details

  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

To compensate for MNG-2892, Maven 2.0.6+ automatically injects plexus-utils:1.1 into the plugin class realm if the plugin POM does not declare a (direct) dependency on plexus-utils:1.1+. This backward-compat mode is currently not existent in Maven 3.x.

Even if this break is intentional for 3.x, this issue allows to track it.

Issue Links

Activity

Hide
Benjamin Bentmann added a comment -

It's time to cleanup the codebase so this hack won't be supported any more. For plugins that can't be fixed/upgraded, users can still manually add plexus-utils as a plugin dependency.

Show
Benjamin Bentmann added a comment - It's time to cleanup the codebase so this hack won't be supported any more. For plugins that can't be fixed/upgraded, users can still manually add plexus-utils as a plugin dependency.
Hide
Benjamin Bentmann added a comment -

For the sake of backward-compat, restored hack in r828222.

Show
Benjamin Bentmann added a comment - For the sake of backward-compat, restored hack in r828222.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: