From issues-return-131582-archive-asf-public=cust-asf.ponee.io@maven.apache.org Mon Apr 16 08:17:05 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 C851F180608 for ; Mon, 16 Apr 2018 08:17:04 +0200 (CEST) Received: (qmail 88281 invoked by uid 500); 16 Apr 2018 06:17:03 -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 88270 invoked by uid 99); 16 Apr 2018 06:17:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2018 06:17:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C6D231A04A0 for ; Mon, 16 Apr 2018 06:17:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -102.311 X-Spam-Level: X-Spam-Status: No, score=-102.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 7WrJUvgzLN19 for ; Mon, 16 Apr 2018 06:17: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 68D1A5F124 for ; Mon, 16 Apr 2018 06:17: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 868B2E0361 for ; Mon, 16 Apr 2018 06:17: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 0D08A2120A for ; Mon, 16 Apr 2018 06:17:00 +0000 (UTC) Date: Mon, 16 Apr 2018 06:17:00 +0000 (UTC) From: "Dorian Vallant (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MNG-6394) ${revision} and parent.releativePath 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/MNG-6394?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D164390= 16#comment-16439016 ]=20 Dorian Vallant commented on MNG-6394: ------------------------------------- I think so. I have configured flatten-maven-plugin in my parent-project's p= om. Do I have to configure it in child's pom too? > ${revision} and parent.releativePath > ------------------------------------ > > Key: MNG-6394 > URL: https://issues.apache.org/jira/browse/MNG-6394 > Project: Maven > Issue Type: Bug > Affects Versions: 3.5.3 > Environment: Ubuntu 17.10; Maven 3.5.3; Java 1.8.0_161 > Reporter: Dorian Vallant > Priority: Major > > If the CI friendly ${revision} property is used it seems maven does not s= imple replace the property with the given value. > Consider the following example: > parent-project/ > =C2=A0=C2=A0=C2=A0 pom.xml > child-project/ > =C2=A0=C2=A0=C2=A0 pom.xml > parent-project/pom.xml: > ... > =C2=A0=C2=A0=C2=A0 my.group > =C2=A0=C2=A0=C2=A0 parentArtifact > =C2=A0=C2=A0=C2=A0 ${revision} > =C2=A0=C2=A0=C2=A0 pom > ... > child-project/pom.xml: > > my.group > parentArtifact > ${revision} > ../parent-project > > If you build the child-project with 'mvn -Drevision=3D1.0.0-SNAPSHOT -f c= hild-project/pom.xml clean install' all works fine as long as the parent pr= oject is present in the file system. But if you move the parent project to = another place, build & install it to your local repository and then try to = build the child project, maven tries to download the pom.xml of the parent = project but does not replace ${revision}. So maven complains about a missin= g dependency. -- This message was sent by Atlassian JIRA (v7.6.3#76005)