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

Outputidrectory appended by dependencyset include name on filtered=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.2
    • None
    • filtering
    • None

    Description

      We are using this assembly descriptor:

      <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
        
        <id>Delivery</id>
        
        <formats>
          <format>zip</format>
        </formats>  
        
        <includeBaseDirectory>true</includeBaseDirectory>
        
        <dependencySets>  
          <dependencySet>
            <outputDirectory>.</outputDirectory>
            <unpack>true</unpack>
            <includes>
              <include>commons-collections:commons-collections:*</include>
            </includes>
            <useStrictFiltering>true</useStrictFiltering>
            <unpackOptions>        
              <includes>
                <include>META-INF/MANIFEST.MF</include>
              </includes>
              <filtered>true</filtered>
            </unpackOptions>
          </dependencySet>
        </dependencySets>
      </assembly>
      

      .

      When setting the property filtered to true in the second dependencySet an additional directory is created in assembly where the filtered build.properties file is included. If the property is set to false the additional directory is gone and the non-filtered file is set to the root of the assembly.

      Attached you'll find 2 zip files:

      • filtered_true.zip
      • filtered_false.zip

      Attachments

        1. delivery_zip.xml
          0.9 kB
          Christian Rapp
        2. filtered_false.zip
          0.7 kB
          Christian Rapp
        3. filtered_true.zip
          1.0 kB
          Christian Rapp
        4. pom.xml
          1 kB
          Christian Rapp

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              crapp Christian Rapp
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: