Return-Path: Delivered-To: apmail-maven-continuum-users-archive@www.apache.org Received: (qmail 93803 invoked from network); 18 Jul 2007 15:11:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jul 2007 15:11:59 -0000 Received: (qmail 6599 invoked by uid 500); 18 Jul 2007 15:11:46 -0000 Delivered-To: apmail-maven-continuum-users-archive@maven.apache.org Received: (qmail 6570 invoked by uid 500); 18 Jul 2007 15:11:46 -0000 Mailing-List: contact continuum-users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-users@maven.apache.org Delivered-To: mailing list continuum-users@maven.apache.org Received: (qmail 6559 invoked by uid 99); 18 Jul 2007 15:11:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2007 08:11:46 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of james.abley@gmail.com designates 66.249.90.180 as permitted sender) Received: from [66.249.90.180] (HELO ik-out-1112.google.com) (66.249.90.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2007 08:11:43 -0700 Received: by ik-out-1112.google.com with SMTP id c30so215953ika for ; Wed, 18 Jul 2007 08:11:21 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=f7nhN6AydMAh2Ko17PpzXFrJ8L1h7c8VkVKSKlah4+xiRaSC/k9fQ2Q95AHZiNKTEqYxUIXgC3Z+BIWpynKahnF3MT8vB/+uVTfWokUnLcwiaH/0fpRb7c0vBGDSEJ0dNwlSzU5Njtnnvit6NQK0lRS7FL19OzQDcQ13geSynMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nFhunDLOAeTXVJz/y02Xbp7W/997Yh0Jz+jY22x2EsYgFuXFuv1Mb9HZl5eXmHjHIrL/B7OJTv0v0uOm5FjxzCQ4UapqAqIncgr8jRLuL5orrT8k5hPAH1liIUNjAPGx499u8c51vf7vgTGnSxJCPZQnugk60xRS6d4EL8SlJP8= Received: by 10.78.183.8 with SMTP id g8mr479832huf.1184771480785; Wed, 18 Jul 2007 08:11:20 -0700 (PDT) Received: by 10.78.143.5 with HTTP; Wed, 18 Jul 2007 08:11:20 -0700 (PDT) Message-ID: <23fce8e60707180811q4596dcd7q2a7adbb048094654@mail.gmail.com> Date: Wed, 18 Jul 2007 16:11:20 +0100 From: "James Abley" To: continuum-users@maven.apache.org Subject: Re: Maven2 release process in Continuum In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <23fce8e60707170359l3fd0b4b3x934ddb85d8bc0fd9@mail.gmail.com> <23fce8e60707180054o4c00f086w4bb4cbd57671db94@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 18/07/07, Jesse McConnell wrote: > if you have one company pom... > > and 17 projects to release....and those 17 projects each use a > snapshot version of the company pom.. > > you currently need to checkout all 17 poms, edit the parent pom to a > released version and check them in. you have to do that using hte > maven-release-plugin and you have to do that for continuum release as > well. That's the simplified version. Of course, there are dependencies between the 17 in various forms. What you have described is pretty much what I did for our last release, using the maven-release plugin. It took me about a day. It had one unexpected benefit, since it allowed me to get a clear sense of the DAG in terms of dependencies in all of our modules. But I still have the following concerns with a release taking that long: 1) There is potential for me to check in the release version, start preparing the release and then someone else checks out the release version and starts doing stuff to it, when they should really be waiting until the next SNAPSHOT version has been checked in. I guess I can use locking for that, but it's been a while since I used locking with a SCM (been on CVS, SVN and Bazaar for a while - not used SourceSafe in four years or so). 2) Kind of related to that - the need for some sort of development freeze during that day. We don't want that. Should it really be taking me a day to do a release of this scale or am I doing something fundamentally wrong? Cheers, James > > if you have one company pom, and a project with 17 submodules (and > this subprojects have no snapshot versions that are not in those 17/18 > modules being released) then you only need to update the one parent > project pom to resolve the company pom to a released version and the > release process will take care of resolving all internal snapshot > version to the (soon to be released) version. > > does that help? > > On 7/18/07, James Abley wrote: > > On 18/07/07, Jesse McConnell wrote: > > > at the moment I think you need to make sure the underlying project > > > that you are going to try and release is 'clean' for the release. > > > that means that all dependencies that you are going to release ave > > > been resolved into released and available artifacts. > > > > Continuum is pulling stuff from our SCM prior to building it; your > > suggestion implies to me that I need to check out POMs, alter them to > > build a release form and check them back in. Then Continuum can be > > used to prepare and perform a release, after which I need to checkout > > the POMs and change any reference versions that I altered to the new > > SNAPSHOT versions. > > > > Have I understood you correctly? It just feels more painful than it > > ought to, when trying to release 17 top-level POMs. Surely other > > people are doing this and can point out where I'm going wrong. > > > > > > > > the continuum release mechanism makes use of the same release > > > mechanism as the maven-release-plugin so if you interested in playing > > > around with it I am a fan of just using the maven-release-plugin > > > directly, personally. > > > > > > in your example to release your project and the core and webapp > > > subprojects at once, will basically need to release the company pom > > > initially and then edit the project pom by hand and set the company > > > parent pom to the released version. Then check through your pom.xml's > > > of the project and the two subprojects to locate and resolve any > > > SNAPSHOT dependencies that are not the three you are immediately > > > releasing. > > > > > > its really pretty straight forward once you get into the swing of it. > > > > Thanks for your response, > > > > James > > > > > > > > jesse > > > > > > On 7/17/07, James Abley wrote: > > > > Hi, > > > > > > > > We have a Continuum instance and would like to cut a release of a > > > > product which uses a Maven2 as the build system. Currently, it takes > > > > around a day to release a product, which feels like longer than it > > > > should. > > > > > > > > We were hoping that using Continuum would save a lot of time versus > > > > the current release process, which involves mvn release:prepare > > > > -D..... and mvn releaes:perform -D... for a lot of modules. > > > > > > > > I haven't found much documentation about the release feature, so would > > > > appreciate any pointers. > > > > > > > > First time through, I just followed it to try to see how intuitive it was. > > > > > > > > Release is only available at a Project Group level (unless the user > > > > account that I am using is missing some roles?). I created and > > > > selected a small project group, that only contains a parent module and > > > > two sub-modules. The parent pom inherits from our general company-wide > > > > POM (common profiles, repositories, scm, etc.) The two sub-module poms > > > > both inherit from the parent pom, for dependency management > > > > reasons.One sub-module depends on the other one. The dependency flow > > > > is illustrated below > > > > > > > > Common Company POM > > > > | > > > > V > > > > Project Group POM > > > > | | > > > > V V > > > > Core module POM Web app module (depends on Core) > > > > > > > > > > > > 1) I clicked on Release from the project group page. > > > > 2) Select the prepare release option. > > > > 3) Submit the form. > > > > > > > > org.apache.maven.shared.release.versions.VersionParseException: Unable > > > > to parse the version string: "${project.parent.version}" > > > > at org.apache.maven.shared.release.versions.DefaultVersionInfo.(DefaultVersionInfo.java:156) > > > > at org.apache.maven.continuum.web.action.ReleasePrepareAction.setProperties(ReleasePrepareAction.java:294) > > > > at org.apache.maven.continuum.web.action.ReleasePrepareAction.processProject(ReleasePrepareAction.java:273) > > > > at org.apache.maven.continuum.web.action.ReleasePrepareAction.processProject(ReleasePrepareAction.java:277) > > > > > > > > > > > > The Web App module POM contains a reference to the Core module POM like this. > > > > > > > > > > > > ${pom.groupId} > > > > sampleapp-core > > > > ${project.parent.version} > > > > > > > > > > > > So my questions are these: > > > > > > > > 1. Do I have something wrong with the POM setup / dependencies? It > > > > feels like I would hav to checkout the POM and make it reference an > > > > explicit version, which doesn't feel right. > > > > 2. Is anyone else using the release button that would care to share > > > > their experiences?