Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 97197 invoked from network); 26 Feb 2009 15:26:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 15:26:52 -0000 Received: (qmail 37568 invoked by uid 500); 26 Feb 2009 15:26:51 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 37530 invoked by uid 500); 26 Feb 2009 15:26:51 -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 37519 invoked by uid 99); 26 Feb 2009 15:26:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 07:26:51 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 15:26:40 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id C329214A8169 for ; Thu, 26 Feb 2009 09:26:19 -0600 (CST) Message-ID: <2649835.1235661979797.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Thu, 26 Feb 2009 09:26:19 -0600 (CST) From: =?ISO-8859-1?Q?Jens_M=FChlenhoff_=28JIRA=29?= To: issues@maven.apache.org Subject: [jira] Created: (MRELEASE-416) given dependencies from a release.property file not used during release:prepare MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org given dependencies from a release.property file not used during release:pre= pare ---------------------------------------------------------------------------= ---- Key: MRELEASE-416 URL: http://jira.codehaus.org/browse/MRELEASE-416 Project: Maven 2.x Release Plugin Issue Type: Bug Components: prepare Environment: Windows, maven 2.0.10 Reporter: Jens M=FChlenhoff Create a release.property file which holds all dependency you want to be re= solved. Drung the release:prepare this properties are currently not used to resolve= snapshot dependencies: #release configuration dependency.test.parent\:root.release=3D0.0.2 dependency.test.parent\:root.development=3D0.0.6-SNAPSHOT The problem seams to be in the method:=20 ReleaseUtils.loadResolvedDependencies( ... ) startIndex =3D propertyName.lastIndexOf( "dependency." ); The methode lastIndexOf returns in this case always 0 because the last time= the string "dependency." was found at the starting position 0. Until this isn't fixed it is hard to release several projects with one scri= pt. Furthermore it would be good to niticed, that using the release.properties = will only work if the resume=3Dflas is toggeled to true. endIndex =3D propertyName.indexOf( ".development" ); artifactVersionlessKey =3D propertyName.substring( startInd= ex, endIndex ); Currently artifactVersionlessKey will contain "dependency.test.parent:root"= which seams to be wrong. This line must be changed to artifactVersionlessKey =3D propertyName.substring( startInd= ex+11, endIndex ); --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira