Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 30549 invoked from network); 19 Jun 2010 11:41:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jun 2010 11:41:46 -0000 Received: (qmail 95658 invoked by uid 500); 19 Jun 2010 11:41:45 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 95378 invoked by uid 500); 19 Jun 2010 11:41:42 -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 95370 invoked by uid 99); 19 Jun 2010 11:41:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jun 2010 11:41:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Sat, 19 Jun 2010 11:41:35 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 7B89714A818D for ; Sat, 19 Jun 2010 06:41:13 -0500 (CDT) Date: Sat, 19 Jun 2010 06:41:13 -0500 (CDT) From: "Brian Fox (JIRA)" To: issues@maven.apache.org Message-ID: <29368693.51709.1276947673422.JavaMail.haus-jira@codehaus01.managed.contegix.com> In-Reply-To: <81490456.1157662082378.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Commented: (MNG-2553) Maven Local Settings Model should allow configuration of distributions (distributionManagement) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/MNG-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225871#action_225871 ] Brian Fox commented on MNG-2553: -------------------------------- This is simply not how it was designed to work, and there is a perfectly valid use case for this already, that's why it's marked won't fix. If you want to see an example, take a look at the Maven and Apache parent poms: http://svn.apache.org/repos/asf/maven/pom/trunk/ {code} apache.releases.https Apache Release Distribution Repository https://repository.apache.org/service/local/staging/deploy/maven2 apache.snapshots.https ${distMgmtSnapshotsName} ${distMgmtSnapshotsUrl} Apache Development Snapshot Repository https://repository.apache.org/content/repositories/snapshots {code} Here we use a property in the distributionManagement section, and define a default value for the property in the same pom so that it's always complete. However for CI systems, we define a new value for the property in the settings that that overrides the pom. We have done this intentionally only for snapshots in our case as we don't want people to accidentally release somewhere else. This is what you want to do and it can already be done in the current design. > Maven Local Settings Model should allow configuration of distributions (distributionManagement) > ----------------------------------------------------------------------------------------------- > > Key: MNG-2553 > URL: http://jira.codehaus.org/browse/MNG-2553 > Project: Maven 2 & 3 > Issue Type: Improvement > Components: Settings > Affects Versions: 2.0.4 > Reporter: Jimisola Laursen > > There is a good use case where this would be very useful. > E.g. I develop a plugin in mojo-sandbox and want to test it in an environment other than the one that I developed it on (e.g. a computer at work). I check out the plugin to this, build and then want to deploy to another repository (e..g a company's internal repository). I don't want to fiddle with the pom.xml of the plugin, just refer to a profile in settings.xml. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira