[ https://issues.apache.org/jira/browse/MJAR-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16850917#comment-16850917 ]
Jeff Smits commented on MJAR-265: --------------------------------- The jar archive is created with a FileSet [here|https://github.com/apache/maven-jar-plugin/blob/80f58a84aacff6e671f5a601d62a3a3800b507dc/src/main/java/org/apache/maven/plugins/jar/AbstractJarMojo.java#L211-L217], which inherits from SetBase. [SetBase has default excludes|https://maven.apache.org/shared/file-management/apidocs/org/apache/maven/shared/model/fileset/SetBase.html#setUseDefaultExcludes(boolean)]. The maven-resource-plugin allows users to [turn off those default excludes in the configuration|https://maven.apache.org/plugins/maven-resources-plugin/copy-resources-mojo.html#addDefaultExcludes] of the execution. It would be nice if the maven-jar-plugin did so too. > Resources not copied > -------------------- > > Key: MJAR-265 > URL: https://issues.apache.org/jira/browse/MJAR-265 > Project: Maven JAR Plugin > Issue Type: New Feature > Affects Versions: 3.1.2 > Environment: windows 7, Maven 3.3.9 Java version: 1.7.0_80 > Reporter: vincent c > Assignee: Karl Heinz Marbaise > Priority: Minor > Attachments: example.7z > > > I have a folder named *.metadata* that is in the target/classes folder. > But it is not copied to the jar archive. It looks like a default exclusion > filter is used. > It is working with version maven-jar-plugin:2.3 but version 2.4 and upper it > is not. > > The issue seams to be also discussed on > [stackoverflow|https://stackoverflow.com/questions/55514758/maven-jar-plugin-does-not-include-gitignore-file/55522970#55522970]. -- This message was sent by Atlassian JIRA (v7.6.3#76005)