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 CF416109AC for ; Mon, 22 Jul 2013 18:36:23 +0000 (UTC) Received: (qmail 60511 invoked by uid 500); 22 Jul 2013 18:36:21 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 60257 invoked by uid 500); 22 Jul 2013 18:36:21 -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 60247 invoked by uid 99); 22 Jul 2013 18:36:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jul 2013 18:36:20 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jieryn@gmail.com designates 209.85.219.48 as permitted sender) Received: from [209.85.219.48] (HELO mail-oa0-f48.google.com) (209.85.219.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jul 2013 18:36:15 +0000 Received: by mail-oa0-f48.google.com with SMTP id f4so9328324oah.7 for ; Mon, 22 Jul 2013 11:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VJeeXU6DnzXuwuu1Ympa2X9pZuYBWTsEP5UbSHe5tyQ=; b=sM58GcpZ0c/2qugslzy5UKiJnhgq+mu8D5o13CPtkVi2lq7vDQ/+IiUfmy1ieD4o70 9PdzWM+bKPU6Q/4L6Si39wRx1uzO5ocq0nUviaP84igIhgNPwujCg1Fkz/m0+6dxsfzB cGAsCDbT/6Jg5lM1O7u0Ipk5X7dr4coWUZEJ+p/FQ2vvNOxKdeDZXis6fyYJNc9zbkgJ 47Y43ICwdmeKS62TgxqJ7s5KJIHNu3rCXVhpKDps27o2Qjor/VapyFfWO2E021do1dAv TxWeTaxWkOs9AbH4rzGFLFOswOogMaxtOylhIzoz3sj578GlDk62Xak9k7hrZPOi4ytd Q87w== MIME-Version: 1.0 X-Received: by 10.60.144.69 with SMTP id sk5mr28031955oeb.0.1374518154305; Mon, 22 Jul 2013 11:35:54 -0700 (PDT) Received: by 10.182.241.164 with HTTP; Mon, 22 Jul 2013 11:35:54 -0700 (PDT) In-Reply-To: References: Date: Mon, 22 Jul 2013 14:35:54 -0400 Message-ID: Subject: Re: mvn release:prepare does not update parent version From: jieryn To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Greetings, On Mon, Jul 22, 2013 at 8:25 AM, Markus Karg wrote: > When I do mvn release:prepare, Maven asks whether I want to update all > SNAPSHOT version referenced in the POM. I don't think the language says that at all. I ran a quick build and I'm not seeing where it says it will update every single SNAPSHOT version referenced in the POM. Can you please paste it? > I say "yes" and confirm all suggested replacement versions unchanged. > When Maven is done, I check the POM.xml. > It is correctly rewritten for all references, but not for the parent > version. And it should not. It will rewrite the versions for the artifacts in its build plan, and the parent is not part of the build plan in this way. It would be horrifying, frankly, if running a release in a project would go update the parent project also. > The parent version still references the *old* SNAPSHOT, while obviously > it should now name the *next* SNAPSHOT. I don't think it should obviously do that. Perhaps you actually intended to run the release from the parent, if that is true, then you should do it from there. Not from within some submodule. > Can somebody tell me what I have to do so that mvn release:prepare will > also make the parent version point tot he *next* SNAPSHOT, as it does it > correctly with the dependencies and the project's own version? Run the release from the proper location. Or if the parent really does not have a submodule of the project you're errantly trying to run the release from right now, then you should release it (parent) first and then make the updates in the unlinked child projects to the latest release number. The m-versions-p is quite adept at automating this process. -Jesse --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org