Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B351D200BCE for ; Fri, 2 Dec 2016 19:02:27 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B20D3160B24; Fri, 2 Dec 2016 18:02:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 07DAC160B08 for ; Fri, 2 Dec 2016 19:02:26 +0100 (CET) Received: (qmail 90078 invoked by uid 500); 2 Dec 2016 18:02:25 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 90066 invoked by uid 99); 2 Dec 2016 18:02:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2016 18:02:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 25120CEBDC for ; Fri, 2 Dec 2016 18:02:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.98 X-Spam-Level: X-Spam-Status: No, score=0.98 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 3YMgb6scTEDC for ; Fri, 2 Dec 2016 18:02:24 +0000 (UTC) Received: from mail-2y.bbox.fr (mail-2y.bbox.fr [194.158.98.15]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CEFFC5F369 for ; Fri, 2 Dec 2016 18:02:23 +0000 (UTC) Received: from herve-desktop.localnet (89-92-159-69.hfc.dyn.abo.bbox.fr [89.92.159.69]) by mail-2y.bbox.fr (Postfix) with ESMTP id 8EAA7C0 for ; Fri, 2 Dec 2016 19:02:23 +0100 (CET) From: =?ISO-8859-1?Q?Herv=E9?= BOUTEMY To: Maven Users List Subject: Re: ${project.parent.parent.version} does not work Date: Fri, 02 Dec 2016 19:02:23 +0100 Message-ID: <47767819.W6aCbNok7c@herve-desktop> User-Agent: KMail/5.2.3 (Linux/4.8.0-27-generic; KDE/5.26.0; x86_64; ; ) In-Reply-To: <1480678242.3117.6.camel@wsn062.assona.local> References: <1480678242.3117.6.camel@wsn062.assona.local> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" archived-at: Fri, 02 Dec 2016 18:02:27 -0000 I confirm that it is not expected to work currently: here is the reference= =20 documentation for pom interpolation: http://maven.apache.org/ref/3-LATEST/maven-model-builder/ index.html#Model_Interpolation there is not parent element in parent Was it expected to work with Maven 2, before the whole effective pom=20 calculation was rewritten? Did you try? Regards, Herv=E9 Le vendredi 2 d=E9cembre 2016, 11:31:31 CET Florian Sch=E4tz a =E9crit : > Hello, >=20 > for a project I would like to resolve the "grandparent" version: >=20 > ${project.parent.parent.version} >=20 > Unfortunately, with Maven 3.3.9 this simply doesn't work, the effective > pom shows it as unresolved: >=20 > ${project.parent.parent.version} >=20 > I can reproduce it with any new probject a simple way is, for example, > using a spring boot project (which should have a parent > (spring-boot-parent) and a grandparent (spring-boot-dependencies): >=20 > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > 4.0.0 >=20 > com.example > demo > 0.0.1-SNAPSHOT > jar >=20 > > org.springframework.boot > spring-boot-starter-parent > 1.4.2.RELEASE > > >=20 > > UTF-8 >=20 > UTF-8 > 1.8 >=20 > ${project.parent.parent.version} > > =09 > >=20 > Any ideas how to access the parent.parent.version otherwise? > Unfortunately, I only found closed issues where > ${project.parent.parent.version} was given as a workaround... >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org