From issues-return-149906-archive-asf-public=cust-asf.ponee.io@maven.apache.org Wed May 29 14:44:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id D006118067E for ; Wed, 29 May 2019 16:44:01 +0200 (CEST) Received: (qmail 20591 invoked by uid 500); 29 May 2019 14:44:01 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 20488 invoked by uid 99); 29 May 2019 14:44:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2019 14:44:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6C9C7E2CAD for ; Wed, 29 May 2019 14:44:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2325D2459D for ; Wed, 29 May 2019 14:44:00 +0000 (UTC) Date: Wed, 29 May 2019 14:44:00 +0000 (UTC) From: "Jeff Smits (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MJAR-265) Resources not copied MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MJAR-265?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D168509= 17#comment-16850917 ]=20 Jeff Smits commented on MJAR-265: --------------------------------- The jar archive is created with a FileSet [here|https://github.com/apache/m= aven-jar-plugin/blob/80f58a84aacff6e671f5a601d62a3a3800b507dc/src/main/java= /org/apache/maven/plugins/jar/AbstractJarMojo.java#L211-L217], which inheri= ts from SetBase. [SetBase has default excludes|https://maven.apache.org/sha= red/file-management/apidocs/org/apache/maven/shared/model/fileset/SetBase.h= tml#setUseDefaultExcludes(boolean)]. The maven-resource-plugin allows users= to [turn off those default excludes in the configuration|https://maven.apa= che.org/plugins/maven-resources-plugin/copy-resources-mojo.html#addDefaultE= xcludes] of the execution. It would be nice if the maven-jar-plugin did so = too.=20 > 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 exclusio= n filter is used. > It is working with version maven-jar-plugin:2.3 but version 2.4 and upper= it is not. > =C2=A0 > The issue seams to be also discussed on [stackoverflow|https://stackoverf= low.com/questions/55514758/maven-jar-plugin-does-not-include-gitignore-file= /55522970#55522970]. -- This message was sent by Atlassian JIRA (v7.6.3#76005)