I am not entirely sure what Jason means when he says "pluck the snapshot out and promote it to a release repository". I think he still means rebuild it from source but I agree that that statement is a bit unclear.
The release plugin, by default, builds twice. First it checks out the code as a snapshot. Then it creates the tag, checks out the tag and then rebuilds and deploys that. This is the final released artifact. As Jason mentioned, a lot of people don't want the release process to build twice. So they skip the initial build of the snapshot and skip directly to the building of the tag and the release. If you could somehow identify the revison of what snapshot you wanted, you could check out and rebuild that as a release. I "think" this is what Jason means by "plucking" but he would have confirm that. This isn't a "promotion" of the snapshot per ce. It still completely rebuilds the artifact from source. It just doesn't rebuild it twice. But this is also I think different from what Stephen is proposing. I think what you are looking for is to skip, or at least ignore, the building of snapshots entirely. So with Stephen's idea, by adding a "ship" phase to the lifecycle, you would always be doing some kind of command like: mvn ship You would bind a modified release plugin to this phase to always build a release. You may want to even consider overriding the deploy phase to do nothing, or even overriding the deploy phase to ship and not even worry about adding a ship phase to the lifecycle. What is missing, that you were asking for, is being able to use snapshot dependencies that are not in the reactor. Stephen was thinking that this wasn't very important, but I was under the impression that you felt it was. I also read through the blog. I tend to agree that the release process of Maven is a bit more complicated than it needs to be. There is a strict seperation between snapshots and releases which I think is the primary cause. There are likely reasons for it and I would love for a guy like Jason van Zyl (the Maven founder) to provide some insight or history here. Or even another comment on the blog you linked. For example elaborate on the comment: "I believe the separation of snapshot and release repositories are required" >From my understanding, to really embrace CD, there would have to be no >difference between a snapshot and a release. > -----Original Message----- > From: jhumble [mailto:[email protected]] > Sent: Wednesday, November 10, 2010 12:47 PM > To: [email protected] > Subject: Re: RE: Continuous Delivery and Maven > > > Hey Todd. > > My interpretation of what Jason is saying in his comment here - > http://www.lucasward.net/2010/11/maven-and-continuous-delivery.html - > "you > should be able to tag the code, and pluck the snapshot out and promote it > to > a release repository... Someone just needs to do the two weeks of work to > add the tooling." is that this is exactly what he's saying. I'm going to > have a nose around the code and see if I think I can take a shot at it. > > Thanks, > > Jez. > > On 10 November 2010 05:51, Thiessen, Todd (Todd) [via Maven] < > [email protected]<ml-node%2B3258691- > [email protected]> > > wrote: > > > Agreed Stephen. I think your proposal is the best so far. I just want > to > > make sure we don't go back into a discussion about promoting snapshots > to > > releases, as I believe that is where this discussion started. To do > that I > > think would require a significant re-architecture of maven which I > don't > > think would be happening in the near future. > > > > > -----Original Message----- > > > From: Stephen Connolly [mailto:[hidden > email]<http://user/SendEmail.jtp?type=node&node=3258691&i=0>] > > > > > Sent: Wednesday, November 10, 2010 8:29 AM > > > To: Maven Users List > > > Subject: Re: RE: Continuous Delivery and Maven > > > > > > Imho taking a snapshot artefact and renaming as a release artefact > and > > > pushing to the remote repo will never be supported by maven, but my > > > ship-maven-plugin (not ready for publishing yet) and some extra mojos > > > added > > > to versions-maven-plugin should enable CD in a way that is in keeping > > > with > > > the "maven way", as long as ranges are used in place of snapshots. > (will > > > also need minor tweaks to the maven-release-plugin, but these would > be > > > backwards compatible tweaks that do not change its current behaviour, > > > only > > > provide a hook for extending it) > > > > > > - Stephen > > > > > > On 10 Nov 2010 13:03, "Thiessen, Todd (Todd)" <[hidden > email]<http://user/SendEmail.jtp?type=node&node=3258691&i=1>> > > > > > wrote: > > > > > > I don't think thats the same thing. The proposal is to take a > snapshot > > > artifact which was built using mvn deploy and promote it to the > release > > > repo. I think what you are referring to here Jason is how the release > > > plugin > > > first builds the snapshot, tags it, and then rebuilds the tag. > > > > > > > > > > -----Original Message----- > > > > From: Jason van Zyl [mailto:[hidden > email]<http://user/SendEmail.jtp?type=node&node=3258691&i=2>] > > > > > > Sent: Wednesday, Nove... > > > > > > > Subject: Re: Continuous Delivery and Maven > > > > > > > > > > > > On Nov 9, 2010, at 2:25 PM, Thiessen, Todd (Tod... > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=3258691&i=3> > > For additional commands, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=3258691&i=4> > > > > > > > > ------------------------------ > > View message @ > > http://maven.40175.n5.nabble.com/Continuous-Delivery-and-Maven- > tp3245370p3258691.html > > To unsubscribe from Continuous Delivery and Maven, click > here<http://maven.40175.n5.nabble.com/template/TplServlet.jtp?tpl=unsubsc > ribe_by_code&node=3245370&code=amV6QGplemh1bWJsZS5uZXR8MzI0NTM3MHwtMTg4Mj > M1NzMyNA==>. > > > > > > > > > -- > Jez Humble > Co-author, *Continuous Delivery <http://continuousdelivery.com/>* > http://continuousdelivery.com/ > http://jezhumble.net/ > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Continuous-Delivery-and-Maven- > tp3245370p3259078.html > Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
