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

useDefaultExcludes has no effect in dependencySet/unpack

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.3.0
    • Component/s: dependencySet
    • Labels:
      None

      Description

      I have the following dependencySet: 

      <dependencySet>
        <useProjectArtifact>false</useProjectArtifact>
        <includes>
          <include>some-artifact:of-type-zip</include>
        </includes>
        <outputDirectory>MyOutputDir</outputDirectory>
        <unpack>true</unpack>
        <unpackOptions>
          <useDefaultExcludes>false</useDefaultExcludes>
        </unpackOptions>
        <scope>runtime</scope>
      </dependencySet>
      

      The zip artifact included here contains some files and also a .gitignore file. No matter how hard I try, but I cannot get the unpacker to also unpack the .gitignore file on my Jenkins build server. It is running CentOS and maven 3.3.3. On my windows machine, running maven 3.5.2 it will always include the .gitignore, even if I set the value of useDefaultExcludes to true.

      So it seems that the useDefaultExcludes is simply ignored when used inside the unpackOptions

        Attachments

          Activity

            People

            • Assignee:
              rfscholte Robert Scholte
              Reporter:
              vandrham Edwin van der Ham
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: