You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2020/04/26 16:37:00 UTC

[jira] [Closed] (MASSEMBLY-879) useDefaultExcludes has no effect in dependencySet/unpack

     [ https://issues.apache.org/jira/browse/MASSEMBLY-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MASSEMBLY-879.
------------------------------------
    Fix Version/s: 3.3.0
       Resolution: Fixed

Fixed in [8054f5097c890e8cc736f706ccc22db69684ddcd|https://gitbox.apache.org/repos/asf?p=maven-assembly-plugin.git;a=commit;h=8054f5097c890e8cc736f706ccc22db69684ddcd]

> useDefaultExcludes has no effect in dependencySet/unpack
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-879
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-879
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: dependencySet
>    Affects Versions: 3.1.0
>            Reporter: Edwin van der Ham
>            Assignee: Robert Scholte
>            Priority: Minor
>             Fix For: 3.3.0
>
>
> I have the following dependencySet: 
> {code:java}
> <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>
> {code}
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)