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

assembly descriptor doesn't seem to property substitute properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2-beta-2
    • 2.2-beta-3
    • None
    • None

    Description

      For the following assembly.xml:

      <assembly>
          <formats>
              <format>tar.gz</format>
          </formats>
          <includeBaseDirectory>false</includeBaseDirectory>
          <fileSets>
              <fileSet>
                  <directory>src/main/resources/appcontent</directory>
                  <outputDirectory>${build.environment}/${build.view}/appcontent</outputDirectory>
                  <includes>
                      <include>**</include>
                  </includes>
              </fileSet>
          </fileSets>
      </assembly>

      ${build.environment} and ${build.view} are declared as <properties> in parent POM. They retain their 'default' value and cannot be overridden from the command line using the -D (-Dbuild.environment=UAT) syntax.

      The intent of the properties is to build the tar.gz file with different paths based on the two variables.

      Attachments

        1. massembly-331-test.txt
          14 kB
          Petar Tahchiev
        2. massembly-331-source.txt
          9 kB
          Petar Tahchiev

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              jonnio Jon Osborn
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: