You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by James Carman <ja...@carmanconsulting.com> on 2012/06/19 03:19:32 UTC

Release Management with Many, Independent Projects...

We are an OSGi shop.  Thus, we have a lot of "bundle" projects that
have their own independent release cycles.  We have a hierarchy of
parent POMs and many utility libraries.  When we change one of the
upper-level POMs (like the "base" for all of our OSGi bundles), it is
very time-consuming to point all of the downstream projects at the new
version.  How do folks typically handle this?  There has to be an
easier way.  I found the versions plugin [1], but that can only get
you so far.  You still have to cut each of the releases and re-point
everyone at them.  Yuck!

[1] http://mojo.codehaus.org/versions-maven-plugin/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Release Management with Many, Independent Projects...

Posted by James Carman <ja...@carmanconsulting.com>.
The "dance" was only required because we have a hierarchy of poms and
one of the top-level guys had to change.  This change was required to
make the OSGi stuff "happy", so it had to be propagated down.

I ended up writing a simple ruby script that searches through all of
the pom.xml files in a directory and cuts all of the "-SNAPSHOT"
suffixes from any parent or dependency references.  Then, I went into
Jenkins and did the releases from the "top" down.

On Mon, Jun 18, 2012 at 11:56 PM, Barrie Treloar <ba...@gmail.com> wrote:
> I think what Ron is saying, is that choosing what Project A depends on
> is selected at the time Project A is kicked off.
> Until Project A is released all its dependencies should be locked down
> and only use release versions (if possible).
> You would only upgrade a dependency when a critical bug blocks development.
> Rather than doing this "dance" every time every project releases.
>
> That way you only have one point in your development process (i.e.
> start of a new sprint) that you have to worry about doing all this
> work.
> And it should be relatively easy to do, maybe
> http://mojo.codehaus.org/versions-maven-plugin/use-latest-releases-mojo.html
>
> This does mean your CI environment may not be testing the latest
> versions of the dependency chain.
> If you want that you may create a "shell" project that just has
> .snapshot qualifiers.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Release Management with Many, Independent Projects...

Posted by Barrie Treloar <ba...@gmail.com>.
I think what Ron is saying, is that choosing what Project A depends on
is selected at the time Project A is kicked off.
Until Project A is released all its dependencies should be locked down
and only use release versions (if possible).
You would only upgrade a dependency when a critical bug blocks development.
Rather than doing this "dance" every time every project releases.

That way you only have one point in your development process (i.e.
start of a new sprint) that you have to worry about doing all this
work.
And it should be relatively easy to do, maybe
http://mojo.codehaus.org/versions-maven-plugin/use-latest-releases-mojo.html

This does mean your CI environment may not be testing the latest
versions of the dependency chain.
If you want that you may create a "shell" project that just has
.snapshot qualifiers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Release Management with Many, Independent Projects...

Posted by James Carman <ja...@carmanconsulting.com>.
Another issue with using scripts to do the "release" is that I'd have
to code the SCM "tagging" part, too, since we would want to be able to
have something we can use to re-create the release if necessary.  The
maven release plugin does all of this for me.

On Mon, Jun 18, 2012 at 11:03 PM, James Carman
<ja...@carmanconsulting.com> wrote:
> Well, we are using the release plugin to do our releases.  I would
> rather stick with that if we can, since we've got Jenkins all set up
> to do the releases with a push of a button and everything.  I could
> probably make all the pom.xml modifications with a find/replace (sed
> perhaps), check in the changes, and then just perform the releases in
> the correct order (from the top down).  I wonder if I can turn off
> Jenkins' polling while I'm doing the work so that all the builds don't
> start firing off while I'm in the middle of doing the releases.
>
> On Mon, Jun 18, 2012 at 10:28 PM, Ron Wheeler
> <rw...@artifact-software.com> wrote:
>> We stayed manual. I figured it was a small overhead at the start of a new
>> release cycle but we only had 70 modules to manage and we were pretty
>> modular.
>> I suppose Ant and XLST scripts would do the job pretty well.
>> Check out each project.
>> Use XSLT (or some other XML transformer) to fix the right dependency
>> Maven to build
>> Check-in the project.
>>
>>
>> Ron
>>
>>
>> On 18/06/2012 9:19 PM, James Carman wrote:
>>>
>>> We are an OSGi shop.  Thus, we have a lot of "bundle" projects that
>>> have their own independent release cycles.  We have a hierarchy of
>>> parent POMs and many utility libraries.  When we change one of the
>>> upper-level POMs (like the "base" for all of our OSGi bundles), it is
>>> very time-consuming to point all of the downstream projects at the new
>>> version.  How do folks typically handle this?  There has to be an
>>> easier way.  I found the versions plugin [1], but that can only get
>>> you so far.  You still have to cut each of the releases and re-point
>>> everyone at them.  Yuck!
>>>
>>> [1] http://mojo.codehaus.org/versions-maven-plugin/
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>
>> --
>> Ron Wheeler
>> President
>> Artifact Software Inc
>> email: rwheeler@artifact-software.com
>> skype: ronaldmwheeler
>> phone: 866-970-2435, ext 102
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Release Management with Many, Independent Projects...

Posted by James Carman <ja...@carmanconsulting.com>.
Well, we are using the release plugin to do our releases.  I would
rather stick with that if we can, since we've got Jenkins all set up
to do the releases with a push of a button and everything.  I could
probably make all the pom.xml modifications with a find/replace (sed
perhaps), check in the changes, and then just perform the releases in
the correct order (from the top down).  I wonder if I can turn off
Jenkins' polling while I'm doing the work so that all the builds don't
start firing off while I'm in the middle of doing the releases.

On Mon, Jun 18, 2012 at 10:28 PM, Ron Wheeler
<rw...@artifact-software.com> wrote:
> We stayed manual. I figured it was a small overhead at the start of a new
> release cycle but we only had 70 modules to manage and we were pretty
> modular.
> I suppose Ant and XLST scripts would do the job pretty well.
> Check out each project.
> Use XSLT (or some other XML transformer) to fix the right dependency
> Maven to build
> Check-in the project.
>
>
> Ron
>
>
> On 18/06/2012 9:19 PM, James Carman wrote:
>>
>> We are an OSGi shop.  Thus, we have a lot of "bundle" projects that
>> have their own independent release cycles.  We have a hierarchy of
>> parent POMs and many utility libraries.  When we change one of the
>> upper-level POMs (like the "base" for all of our OSGi bundles), it is
>> very time-consuming to point all of the downstream projects at the new
>> version.  How do folks typically handle this?  There has to be an
>> easier way.  I found the versions plugin [1], but that can only get
>> you so far.  You still have to cut each of the releases and re-point
>> everyone at them.  Yuck!
>>
>> [1] http://mojo.codehaus.org/versions-maven-plugin/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email: rwheeler@artifact-software.com
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Release Management with Many, Independent Projects...

Posted by Ron Wheeler <rw...@artifact-software.com>.
We stayed manual. I figured it was a small overhead at the start of a 
new release cycle but we only had 70 modules to manage and we were 
pretty modular.
I suppose Ant and XLST scripts would do the job pretty well.
Check out each project.
Use XSLT (or some other XML transformer) to fix the right dependency
Maven to build
Check-in the project.


Ron

On 18/06/2012 9:19 PM, James Carman wrote:
> We are an OSGi shop.  Thus, we have a lot of "bundle" projects that
> have their own independent release cycles.  We have a hierarchy of
> parent POMs and many utility libraries.  When we change one of the
> upper-level POMs (like the "base" for all of our OSGi bundles), it is
> very time-consuming to point all of the downstream projects at the new
> version.  How do folks typically handle this?  There has to be an
> easier way.  I found the versions plugin [1], but that can only get
> you so far.  You still have to cut each of the releases and re-point
> everyone at them.  Yuck!
>
> [1] http://mojo.codehaus.org/versions-maven-plugin/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Release Management with Many, Independent Projects...

Posted by Mark Derricutt <ma...@talios.com>.
Step 1) Separate your API interfaces into their own bundles, with their 
own release cadence.
Step 2) Code solely against APIs, and against version ranges ( we use 
[1.0.0,2.0.0) style.

Given things in OSGi land are service/interface orientated this works well.

We try to follow the semver style of version number, changing the major 
(1.0.0->2.0.0) for backwards incompatible changes, and a minor 
(1.0.0->1.1.0) for backward compatible, but forward-incompatible 
changes.  Any downstream bundle that requires the new API changes and 
simply change their lower-bound in the range: [1.1.0,2.0.0)




On 19/06/12 1:19 PM, James Carman wrote:
> We are an OSGi shop.  Thus, we have a lot of "bundle" projects that
> have their own independent release cycles.  We have a hierarchy of
> parent POMs and many utility libraries.  When we change one of the
> upper-level POMs (like the "base" for all of our OSGi bundles), it is
> very time-consuming to point all of the downstream projects at the new
> version.  How do folks typically handle this?  There has to be an
> easier way.  I found the versions plugin [1], but that can only get
> you so far.  You still have to cut each of the releases and re-point
> everyone at them.  Yuck!
>
> [1] http://mojo.codehaus.org/versions-maven-plugin/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org