Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-117

Unable to assemble multi-module projects with more than 1 level depth folder structure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1
    • 2.2-beta-1
    • None
    • None

    Description

      I'm using maven-assembly-plugin with multi-modules projects, and it works fine for "flat" hierachy.
      I mean for multi-modules projects as :

      Parent
      +- Submodule1
      +- Submodule2

      But for this kind of layout :

      Parent:pom
      +- Submodule1:jar
      +- SubParent:pom
      +- Subsubmodule1:jar
      +- Subsubmodule2:jar

      I am not able to build an assembly with all referenced modules in reactor (Submodule1, Subsubmodule1 and Subsubmodule2).

      AbstractAssemblyMojo#getModulesFromReactor(...) is responsible for filtering project in the reactor, but :

      • it doesn't not recurse into reactor's projects (explicite call to getModulesFromReactor( parent, false ) : false = doesn't recurse)
      • AbstractAssemblyMojo#isProjectModule(....) has a bug : it doesn't not return anything when recurse is true !! (line 716 is rev. 407515)

      Attachments

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              dlecan dlecan
              Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: