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

Misbehavior on multi-module projects, outputDirectory not being interpolated properly

    XMLWordPrintableJSON

Details

    Description

      With <useAllReactorProjects/> set to true; <outputDirectory/> tag value is not being interpolated on a module-by-module basis as said in documentation - instead of substituting ${artifactId} with value of each processed modules it is always being substituted with the value of module which calls to the assembly plugin.

      In other words, instead of the following desired directory structure:

      distribution/target/distribution-1.0-bin/modules/child1/child1-1.0.jar
      distribution/target/distribution-1.0-bin/modules/child2/child2-1.0.jar
      distribution/target/distribution-1.0-bin/modules/child3/child3-1.0.jar

      i am getting flatenned

      distribution/target/distribution-1.0-bin/modules/distribution/child1-1.0.jar
      distribution/target/distribution-1.0-bin/modules/distribution/child2-1.0.jar
      distribution/target/distribution-1.0-bin/modules/distribution/child3-1.0.jar

      Attachments

        1. parent.zip
          8 kB
          Alexander Tumin

        Activity

          People

            krosenvold Kristian Rosenvold
            itakingiteasy Alexander Tumin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: