Return-Path: X-Original-To: apmail-uima-dev-archive@www.apache.org Delivered-To: apmail-uima-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 42583E38E for ; Fri, 8 Feb 2013 17:03:00 +0000 (UTC) Received: (qmail 68760 invoked by uid 500); 8 Feb 2013 17:02:58 -0000 Delivered-To: apmail-uima-dev-archive@uima.apache.org Received: (qmail 68708 invoked by uid 500); 8 Feb 2013 17:02:58 -0000 Mailing-List: contact dev-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@uima.apache.org Delivered-To: mailing list dev@uima.apache.org Received: (qmail 68541 invoked by uid 99); 8 Feb 2013 17:02:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 17:02:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of msa@schor.com designates 69.56.195.29 as permitted sender) Received: from [69.56.195.29] (HELO gateway05.websitewelcome.com) (69.56.195.29) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 17:02:47 +0000 Received: by gateway05.websitewelcome.com (Postfix, from userid 5007) id DF8995990ECF8; Fri, 8 Feb 2013 11:02:26 -0600 (CST) Received: from gator74.hostgator.com (gator74.hostgator.com [184.173.199.208]) by gateway05.websitewelcome.com (Postfix) with ESMTP id D36875990ECB2 for ; Fri, 8 Feb 2013 11:02:26 -0600 (CST) Received: from [24.45.227.47] (port=50063 helo=[192.168.1.101]) by gator74.hostgator.com with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1U3rLG-0004qY-Ix; Fri, 08 Feb 2013 11:02:26 -0600 Message-ID: <51152F9F.4020800@schor.com> Date: Fri, 08 Feb 2013 12:02:23 -0500 From: Marshall Schor User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Maven Users List CC: uima-dev Subject: Problem with property substitution into finalName X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator74.hostgator.com X-AntiAbuse: Original Domain - uima.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.101]) [24.45.227.47]:50063 X-Source-Auth: msa+schor.com X-Email-Count: 1 X-Source-Cap: bWlzY2hvcjttaXNjaG9yO2dhdG9yNzQuaG9zdGdhdG9yLmNvbQ== X-Virus-Checked: Checked by ClamAV on apache.org We have a POM, where the specifies a final name like this: org.apache.uima.textmarker.engine_${parsedVersion.osgiVersion} We use the maven-build-helper plugin to set the variable to be the same as the version, except with a period before the SNAPSHOT qualifier, for example. This works fine for plugins like the maven-jar-plugin - it nicely creates jars using the substituted value, e.g. org.apache.uima.textmarker.engine_2.0.0.jar However, the maven-gpg-plugin, when copying the project's "pom.xml" file to the target/ to sign it, copies it to a file named like this: File pomToSign = new File( project.getBuild().getDirectory(), project.getBuild().getFinalName() + ".pom" ); FileUtils.copyFile( project.getFile(), pomToSign ) The code fragment: project.getBuild().getFinalName() must be getting the un-substituted/original version of the the finalName property, because we see the pom is copied into the target/ as org.apache.uima.textmarker.engine_${parsedVersion.osgiVersion}.pom We know the property is being properly defined, etc., because earlier steps (like the maven-jar-plugin) use this and have the correct string (with the substituted value). How can we fix this? -Marshall Schor