Maven 2 & 3
  1. Maven 2 & 3
  2. MNG-1323

Plugin extensions (dependencies) not resolved in reactor build

    Details

    • Complexity:
      Expert
    • Number of attachments :
      7

      Description

      I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.

      When run from the project dir itself it runs fine.
      When running from the root of the project tree (reactor build, project one level below root),
      antrun bails out because the taskdef can't be found (not on classpath).

      It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

        Issue Links

          Activity

          Hide
          Benjamin Bentmann added a comment -

          IT shows this working on 3.x trunk, leaving issue open in case we want to backport to 2.1.

          Show
          Benjamin Bentmann added a comment - IT shows this working on 3.x trunk, leaving issue open in case we want to backport to 2.1.
          Hide
          Jason van Zyl added a comment -

          I think we'll honestly be out with 3.0-alpha-1 before 2.1-alpha-1 so I'm going to close this.

          Show
          Jason van Zyl added a comment - I think we'll honestly be out with 3.0-alpha-1 before 2.1-alpha-1 so I'm going to close this.
          Hide
          Jason van Zyl added a comment -

          Working on trunk.

          Show
          Jason van Zyl added a comment - Working on trunk.
          Hide
          marcin dzierzak added a comment -

          Hi, any chance to have it fixed in 2.2.x stream ?

          Show
          marcin dzierzak added a comment - Hi, any chance to have it fixed in 2.2.x stream ?
          Hide
          Hannes Schmidt added a comment -

          Can this please be backported to 2.2.x. I've been using Maven since 2005 and this thing has been bugging me once every so often with enough time in between for my brain to garbage collect my awareness of this bug. So I basically spend a few hours every year hunting plugin dependency problems with reactor builds and ultimately land on this page.

          BTW, my workaround is to collect all plugin dependencies in the pluginManagement section of a parent pom that's common to all modules.

          Show
          Hannes Schmidt added a comment - Can this please be backported to 2.2.x. I've been using Maven since 2005 and this thing has been bugging me once every so often with enough time in between for my brain to garbage collect my awareness of this bug. So I basically spend a few hours every year hunting plugin dependency problems with reactor builds and ultimately land on this page. BTW, my workaround is to collect all plugin dependencies in the pluginManagement section of a parent pom that's common to all modules.

            People

            • Assignee:
              Unassigned
              Reporter:
              Kenney Westerhof
            • Votes:
              60 Vote for this issue
              Watchers:
              53 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: