From users-return-141152-apmail-maven-users-archive=maven.apache.org@maven.apache.org Mon Aug 15 10:21:11 2016 Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6AB2519DB6 for ; Mon, 15 Aug 2016 10:21:11 +0000 (UTC) Received: (qmail 42784 invoked by uid 500); 15 Aug 2016 10:21:10 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 42705 invoked by uid 500); 15 Aug 2016 10:21:10 -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 89733 invoked by uid 99); 11 Aug 2016 04:58:54 -0000 X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:message-id:date:to:mime-version; bh=ULkeUrewv2u7P5GjMPb33Hv+jiN4g+80s6NlP6/PkKI=; b=DRJTWJqYmpyF7hKzN7ZmZ8wsnfN/+hEYvOfQWAXkO8RsfS3OFyQUY4y/rD9/J+TN+W OpalTRwXam9MUyngRU5GtTbmgHH8lGek540IRct8N6iIZIDJMuM+stl/RC35N/GtrH3G WoqDjYkuAWuxwZ2/lW0my6RIep023ddUGKvsdPD6PtmyazfS7MpVgAguq74XVKalVXTp qAGWOFUlt1EodrtEHWv6XQxo4sdyIxPHYymjQV8vCrYj5DWhiQX1Pr8PnQ6Swf7jJB/n 1ZQiTQHhDOVD84iQLaWHLnFWNYPNswS62+KZjowKFmdA+KzWUoFQeUM2zjFjZJ6vSszB nkuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:message-id:date:to:mime-version; bh=ULkeUrewv2u7P5GjMPb33Hv+jiN4g+80s6NlP6/PkKI=; b=Od9tgJ/mAhF+qgPZS/LXklMHZEDBq07qjLf7b+VcQN+pdZba5/WAXAGKKHAaViIpTj Pm89tx9huTFITQMhV4oF+JH+3nvMCKsPrrrwifrS3PrPyMMWrckQg/7SHgii6BgFJ+zL 7ZEGaS+4pm+P8f2NTzutm49eu483WTj5kaw79YwwPyzdRKcD2EFvuCMlrPd3dc1U4b3G SB5xNxy43Xj7mIyswMJ1X3PhsZzZ+eM6nYfLgHSdny9+jzytLovUCH5DL5VZgw7znLmy PB42ulPu9Es+EXhfoPmhc8ybtA4KVU5Xcl2bNEczc5aD8/ryp07jHAxfKxeYzwUbAveE 8HOw== X-Gm-Message-State: AEkoous23QNNZvTkSOgjWCyI462FyXDHt7UxlFxuRa+tDC8pFE18HME+L9jGAV5OXpVPtg== X-Received: by 10.98.21.131 with SMTP id 125mr13701976pfv.92.1470891530819; Wed, 10 Aug 2016 21:58:50 -0700 (PDT) From: Michael Content-Type: multipart/alternative; boundary="Apple-Mail=_C6D635AC-8B21-44C0-A865-3D5359DC92B0" Subject: Property interpolation in child pom Message-Id: Date: Wed, 10 Aug 2016 21:58:48 -0700 To: Maven Users List Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) --Apple-Mail=_C6D635AC-8B21-44C0-A865-3D5359DC92B0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I wish to define the distributionManagement values for all my projects = in a common parent pom. parent pom.xml ${site.url} file:///Users/macuser/Sites ${site.base.url}/${project.artifactId} =20 local ${site.url} The effective pom for this is as expected: file:///Users/macuser/Sites/parent-pom local file:///Users/macuser/Sites/parent-pom file:///Users/macuser/Sites file:///Users/macuser/Sites/parent-pom In child pom, I specify the parent pom only, no other elements. I = expect the distributionManagement to inherit from the parent. 4.0.0 mlgiroux parent-pom 0.0.1-SNAPSHOT parent-pom-test pom The effective pom is strange: file:///Users/macuser/Sites/parent-pom-test/parent-pom-test local = file:///Users/macuser/Sites/parent-pom-test/parent-pom-test file:///Users/macuser/Sites file:///Users/macuser/Sites/parent-pom-test The site.url property has been resolved as I expected, but the = elements for project.url and distributionManagement.site.url that were = defined in the parent as ${site.url} have the artifactId twice. As if I = had specified = ${site.base.url}/${project.artifactId}/${project.artifactId} Now, if I add the url and distributionManagement to the child pom as: ${site.url} local ${site.url} The effective pom is exactly as I expect with the artifactId specified = exactly once in the effective values. file:///Users/macuser/Sites/parent-pom-test local file:///Users/macuser/Sites/parent-pom-test I think it is important to point out that the child is NOT a sub module = of the parent. It specifies a parent, but it is itself a root module. This feels like a defect to me. Michael Giroux --Apple-Mail=_C6D635AC-8B21-44C0-A865-3D5359DC92B0--