From issues-return-138607-archive-asf-public=cust-asf.ponee.io@maven.apache.org Thu Oct 4 21:28:17 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B46BA180658 for ; Thu, 4 Oct 2018 21:28:16 +0200 (CEST) Received: (qmail 69587 invoked by uid 500); 4 Oct 2018 19:28:15 -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 69562 invoked by uid 99); 4 Oct 2018 19:28:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2018 19:28:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 086B4C2889 for ; Thu, 4 Oct 2018 19:01:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id LFPIGgNgBUb0 for ; Thu, 4 Oct 2018 19:01:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 69CAF5F514 for ; Thu, 4 Oct 2018 19:01:01 +0000 (UTC) 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 A867EE25AA for ; Thu, 4 Oct 2018 19:01: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 438F72470B for ; Thu, 4 Oct 2018 19:01:00 +0000 (UTC) Date: Thu, 4 Oct 2018 19:01:00 +0000 (UTC) From: "Thorsten Glaser (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MRESOURCES-237) Resource plugin's handling of symbolic links changed in 3.0.x, broke existing behavior 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/MRESOURCES-237?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 16638699#comment-16638699 ]=20 Thorsten Glaser commented on MRESOURCES-237: -------------------------------------------- Then, a new version which has a boolean parameter keepSymlinks or something= like that would be welcome. As I said, I=E2=80=99d have preferred a defaul= t of false, but a default of true is ok as long as I can change this=E2=80= =A6 I see now that newer maven-ear-plugin versions use maven-resources-plug= in 3.x so this has become somewhat of a blocker of updating other plugins. > Resource plugin's handling of symbolic links changed in 3.0.x, broke exis= ting behavior > -------------------------------------------------------------------------= ------------- > > Key: MRESOURCES-237 > URL: https://issues.apache.org/jira/browse/MRESOURCES-237 > Project: Maven Resources Plugin > Issue Type: Bug > Affects Versions: 3.0.0, 3.0.1, 3.0.2 > Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c074= 78323dc5; 2015-11-10T11:41:47-05:00) > Java version: 1.8.0_121, vendor: Oracle Corporation > Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-1.b14.fc25.x86_64/jr= e > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "4.9.11-200.fc25.x86_64", arch: "amd64", famil= y: "unix" > Reporter: Brian D. Johnson > Priority: Minor > > It looks like the handling of symbolic links in the {{maven-resources-plu= gin}} has changed in version 3.0.x. I'm submitting a JIRA because it break= s the previous behavior and I have not been able to find this documented an= ywhere as an intended change. > *Use case:* Multi-module maven project. We have a custom log4j2 configur= ation file we use during testing. Instead of maintaining this file in mult= iple {{src/test/resources}} directories, we instead maintain a single copy = of the file at the project's root level and create symbolic links from each= module's {{src/test/resources}} directory to the file using relative paths= . > *2.7 Behavior:* the symlink was evaluated and the target file was copied = to {{target/test-classes/}}. > *3.0.x Behavior:* the symlink is copied to {{target/test-classes/}} verba= tim. The symlink's relative path results in the symlink pointing to the wr= ong file location. The log4j2 configuration is not found. > *Requested Change:* Either revert to the original 2.7 behavior, or docume= nt the change and provide a configuration parameter to allow the legacy beh= avior. -- This message was sent by Atlassian JIRA (v7.6.3#76005)