You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@apache.org> on 2008/04/10 09:31:14 UTC
Reduce the references to SNAPSHOTs
Hi,
as we plan to have independent releases of all the blocks, the core
modules etc. we should reduce the number of dependencies refering to
snapshots to a minimum.
Especially for the parent poms and references to apis - there is no need
to always release all parent poms, the api etc. just to fix a bug in the
impl. And if we refer to released versions from within the poms,
building Cocoon or parts of Cocoon gets much much easier.
(And I think we already discussed this nearly a year ago and agreed to
that :) )
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
Re: Reduce the references to SNAPSHOTs
Posted by Carsten Ziegeler <cz...@apache.org>.
Grzegorz Kossakowski wrote:
> Carsten Ziegeler pisze:
>>> Agreed. I would add one (quite obvious) rule: if some module gets
>>> relesed and artifact is available at central other modules should
>>> always update its dependencies ASAP. This applies to patch releases.
>>>
>> No, I don't think so :)
>>
>> Example (it's fictional): we have the ajax block released as 1.0 and
>> the forms block 1.1 depends on the ajax api 1.0.
>> Now, for some reason we update the ajax api to 1.1 and add some features.
>>
>> There is no need to change the dependency from the forms block to the
>> new ajax api. As the ajax api 1.1 is assumed to be compatible to 1.0
>> (and it really should be), you can run the forms block with both
>> api's. And it is better to indicate the lowest version you require.
>
> On APIs I agree but I if API changes then it's not a patch release, right?
Ah, ok, sorry I overread this. You're right with patch releases of course.
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
Re: Reduce the references to SNAPSHOTs
Posted by Carsten Ziegeler <cz...@apache.org>.
Simone Gianni wrote:
> Grzegorz Kossakowski wrote:
>> For all artifacts we have version consisting of three numbers that I
>> interpret as:
>>
>> major.minor.patch
>>
>> Where patch releases should contain only bug-fixes and small changes
>> (*no* new futures) so it's both back- and forth-compatible and you are
>> free to switch to any of x.y.z version where x and y are constants.
>>
>> For such releases I would like other artifacts to update their
>> dependencies ASAP.
>>
>> Your example about API change is about increasing minor part and your
>> arguments are fine, IMHO.
>>
> Isn't Maven supposed to support this automatically? If I write a
> dependency with a version [1.2.0,1.3.0) shouldn't maven search for the
> best version of the 1.2.0 (for example 1.2.5) series but not the 1.3.0
> series? Am I missing something? (which is absolutely possible)
>
Yes, you're right - if we would use ranges (like [1.2.0,1.3.0) ) - but
for now we're using fixed versions (like 1.2.0 or 1.2.1). To be honest,
I don't want to start to use ranges in our poms :)
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
Re: Reduce the references to SNAPSHOTs
Posted by Simone Gianni <si...@apache.org>.
Grzegorz Kossakowski wrote:
>
> For all artifacts we have version consisting of three numbers that I
> interpret as:
>
> major.minor.patch
>
> Where patch releases should contain only bug-fixes and small changes
> (*no* new futures) so it's both back- and forth-compatible and you are
> free to switch to any of x.y.z version where x and y are constants.
>
> For such releases I would like other artifacts to update their
> dependencies ASAP.
>
> Your example about API change is about increasing minor part and your
> arguments are fine, IMHO.
>
Isn't Maven supposed to support this automatically? If I write a
dependency with a version [1.2.0,1.3.0) shouldn't maven search for the
best version of the 1.2.0 (for example 1.2.5) series but not the 1.3.0
series? Am I missing something? (which is absolutely possible)
Simone
Re: Reduce the references to SNAPSHOTs
Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Carsten Ziegeler pisze:
>> Agreed. I would add one (quite obvious) rule: if some module gets
>> relesed and artifact is available at central other modules should
>> always update its dependencies ASAP. This applies to patch releases.
>>
> No, I don't think so :)
>
> Example (it's fictional): we have the ajax block released as 1.0 and the
> forms block 1.1 depends on the ajax api 1.0.
> Now, for some reason we update the ajax api to 1.1 and add some features.
>
> There is no need to change the dependency from the forms block to the
> new ajax api. As the ajax api 1.1 is assumed to be compatible to 1.0
> (and it really should be), you can run the forms block with both api's.
> And it is better to indicate the lowest version you require.
On APIs I agree but I if API changes then it's not a patch release, right?
For all artifacts we have version consisting of three numbers that I interpret as:
major.minor.patch
Where patch releases should contain only bug-fixes and small changes (*no* new futures) so it's both
back- and forth-compatible and you are free to switch to any of x.y.z version where x and y are
constants.
For such releases I would like other artifacts to update their dependencies ASAP.
Your example about API change is about increasing minor part and your arguments are fine, IMHO.
--
Grzegorz Kossakowski
Re: Reduce the references to SNAPSHOTs
Posted by Carsten Ziegeler <cz...@apache.org>.
Grzegorz Kossakowski wrote:
> Carsten Ziegeler pisze:
>> The rule is easy: don't update if there is no reason to update. The
>> only module that might update to snapshost is the webapp that
>> aggregates all the various blocks as an example.
>>
>> But for instance, if the api doesn't change, there is no need for
>> anyone using the api (including the impl) to update to the snapshot.
>> If the api changes, well then at least the impl should change. But
>> other blocks using this api do not need to change. If they need new
>> features from then new api, they can update.
>
> Agreed. I would add one (quite obvious) rule: if some module gets
> relesed and artifact is available at central other modules should always
> update its dependencies ASAP. This applies to patch releases.
>
No, I don't think so :)
Example (it's fictional): we have the ajax block released as 1.0 and the
forms block 1.1 depends on the ajax api 1.0.
Now, for some reason we update the ajax api to 1.1 and add some features.
There is no need to change the dependency from the forms block to the
new ajax api. As the ajax api 1.1 is assumed to be compatible to 1.0
(and it really should be), you can run the forms block with both api's.
And it is better to indicate the lowest version you require.
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
Re: Reduce the references to SNAPSHOTs
Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Carsten Ziegeler pisze:
> The rule is easy: don't update if there is no reason to update. The only
> module that might update to snapshost is the webapp that aggregates all
> the various blocks as an example.
>
> But for instance, if the api doesn't change, there is no need for anyone
> using the api (including the impl) to update to the snapshot. If the api
> changes, well then at least the impl should change. But other blocks
> using this api do not need to change. If they need new features from
> then new api, they can update.
Agreed. I would add one (quite obvious) rule: if some module gets relesed and artifact is available
at central other modules should always update its dependencies ASAP. This applies to patch releases.
> So it's a very conservative way of handling the dependencies. As we are
> now built by gump again we'll detect problems due to the gump builts and
> can fix them. There is no need to depend on the latest snapshots for all
> references.
Huh, I'll need to figure out this Gump thing. I've never bothered to understand what is its purpose
and why I should care about it. Looks like I need to change my attitude here. :-)
--
Grzegorz Kossakowski
Re: Reduce the references to SNAPSHOTs
Posted by Carsten Ziegeler <cz...@apache.org>.
Grzegorz Kossakowski wrote:
> Carsten Ziegeler pisze:
>> Hi,
>>
>> as we plan to have independent releases of all the blocks, the core
>> modules etc. we should reduce the number of dependencies refering to
>> snapshots to a minimum.
>> Especially for the parent poms and references to apis - there is no
>> need to always release all parent poms, the api etc. just to fix a bug
>> in the impl. And if we refer to released versions from within the
>> poms, building Cocoon or parts of Cocoon gets much much easier.
>
> +1!
>
> Carsten, are you willing to do this work?
>
Yes, I hope to do this in the next week.
>> (And I think we already discussed this nearly a year ago and agreed to
>> that :) )
>
> Have we discussed when we should switch to snapshot again? I think it's
> quite important to have some clear rules.
>
Hmm, yes, I think so :)
The rule is easy: don't update if there is no reason to update. The only
module that might update to snapshost is the webapp that aggregates all
the various blocks as an example.
But for instance, if the api doesn't change, there is no need for anyone
using the api (including the impl) to update to the snapshot. If the api
changes, well then at least the impl should change. But other blocks
using this api do not need to change. If they need new features from
then new api, they can update.
So it's a very conservative way of handling the dependencies. As we are
now built by gump again we'll detect problems due to the gump builts and
can fix them. There is no need to depend on the latest snapshots for all
references.
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
Re: Reduce the references to SNAPSHOTs
Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Carsten Ziegeler pisze:
> Hi,
>
> as we plan to have independent releases of all the blocks, the core
> modules etc. we should reduce the number of dependencies refering to
> snapshots to a minimum.
> Especially for the parent poms and references to apis - there is no need
> to always release all parent poms, the api etc. just to fix a bug in the
> impl. And if we refer to released versions from within the poms,
> building Cocoon or parts of Cocoon gets much much easier.
+1!
Carsten, are you willing to do this work?
> (And I think we already discussed this nearly a year ago and agreed to
> that :) )
Have we discussed when we should switch to snapshot again? I think it's quite important to have some
clear rules.
--
Grzegorz Kossakowski
Re: Reduce the references to SNAPSHOTs
Posted by Carsten Ziegeler <cz...@apache.org>.
Reinhard Poetz wrote:
> Vadim Gritsenko wrote:
>> On Apr 10, 2008, at 4:01 PM, Carsten Ziegeler wrote:
>>> Vadim Gritsenko wrote:
>>>> On Apr 10, 2008, at 3:31 AM, Carsten Ziegeler wrote:
>>>>> Hi,
>>>>>
>>>>> as we plan to have independent releases of all the blocks, the core
>>>>> modules etc. we should reduce the number of dependencies refering
>>>>> to snapshots to a minimum.
>>>>> Especially for the parent poms and references to apis - there is no
>>>>> need to always release all parent poms, the api etc. just to fix a
>>>>> bug in the impl. And if we refer to released versions from within
>>>>> the poms, building Cocoon or parts of Cocoon gets much much easier.
>>>>>
>>>>> (And I think we already discussed this nearly a year ago and agreed
>>>>> to that :) )
>>>> Will there still be a way to somehow build "all trunk" versions in
>>>> one command? Like today's 'clean install'?
>>> In fact it will get easier! As you can check out a single module and
>>> build it as all dependencies are deployed artifacts.
>>
>> For a single module, I understand. But I meant trunk version of all
>> blocks. If you are working on a cross-cut feature (and I tend to do
>> this sometimes), you need to build all blocks from trunk, and if the
>> only choice is do it by hand (50+ maven commands?) that would be too
>> much work...
>
> You can still build all modules. The only difference is that if you have
> API changes, you have to manually _change_ the version number to the
> SNAPSHOT version.
>
Exactly - the build will still work - the final result of the build
might be the webapp and this webapp should have the references to the
latest and greatest snapshots.
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
Re: Reduce the references to SNAPSHOTs
Posted by Reinhard Poetz <re...@apache.org>.
Vadim Gritsenko wrote:
> On Apr 10, 2008, at 4:01 PM, Carsten Ziegeler wrote:
>> Vadim Gritsenko wrote:
>>> On Apr 10, 2008, at 3:31 AM, Carsten Ziegeler wrote:
>>>> Hi,
>>>>
>>>> as we plan to have independent releases of all the blocks, the core
>>>> modules etc. we should reduce the number of dependencies refering to
>>>> snapshots to a minimum.
>>>> Especially for the parent poms and references to apis - there is no
>>>> need to always release all parent poms, the api etc. just to fix a
>>>> bug in the impl. And if we refer to released versions from within
>>>> the poms, building Cocoon or parts of Cocoon gets much much easier.
>>>>
>>>> (And I think we already discussed this nearly a year ago and agreed
>>>> to that :) )
>>> Will there still be a way to somehow build "all trunk" versions in
>>> one command? Like today's 'clean install'?
>> In fact it will get easier! As you can check out a single module and
>> build it as all dependencies are deployed artifacts.
>
> For a single module, I understand. But I meant trunk version of all
> blocks. If you are working on a cross-cut feature (and I tend to do this
> sometimes), you need to build all blocks from trunk, and if the only
> choice is do it by hand (50+ maven commands?) that would be too much
> work...
You can still build all modules. The only difference is that if you have API
changes, you have to manually _change_ the version number to the SNAPSHOT version.
--
Reinhard Pötz Managing Director, {Indoqa} GmbH
http://www.indoqa.com/en/people/reinhard.poetz/
Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member, PMC Chair reinhard@apache.org
_________________________________________________________________________
Re: Reduce the references to SNAPSHOTs
Posted by Vadim Gritsenko <va...@reverycodes.com>.
On Apr 10, 2008, at 4:01 PM, Carsten Ziegeler wrote:
> Vadim Gritsenko wrote:
>> On Apr 10, 2008, at 3:31 AM, Carsten Ziegeler wrote:
>>> Hi,
>>>
>>> as we plan to have independent releases of all the blocks, the
>>> core modules etc. we should reduce the number of dependencies
>>> refering to snapshots to a minimum.
>>> Especially for the parent poms and references to apis - there is
>>> no need to always release all parent poms, the api etc. just to
>>> fix a bug in the impl. And if we refer to released versions from
>>> within the poms, building Cocoon or parts of Cocoon gets much much
>>> easier.
>>>
>>> (And I think we already discussed this nearly a year ago and
>>> agreed to that :) )
>> Will there still be a way to somehow build "all trunk" versions in
>> one command? Like today's 'clean install'?
> In fact it will get easier! As you can check out a single module and
> build it as all dependencies are deployed artifacts.
For a single module, I understand. But I meant trunk version of all
blocks. If you are working on a cross-cut feature (and I tend to do
this sometimes), you need to build all blocks from trunk, and if the
only choice is do it by hand (50+ maven commands?) that would be too
much work...
Vadim
Re: Reduce the references to SNAPSHOTs
Posted by Carsten Ziegeler <cz...@apache.org>.
Vadim Gritsenko wrote:
> On Apr 10, 2008, at 3:31 AM, Carsten Ziegeler wrote:
>> Hi,
>>
>> as we plan to have independent releases of all the blocks, the core
>> modules etc. we should reduce the number of dependencies refering to
>> snapshots to a minimum.
>> Especially for the parent poms and references to apis - there is no
>> need to always release all parent poms, the api etc. just to fix a bug
>> in the impl. And if we refer to released versions from within the
>> poms, building Cocoon or parts of Cocoon gets much much easier.
>>
>> (And I think we already discussed this nearly a year ago and agreed to
>> that :) )
>
> Will there still be a way to somehow build "all trunk" versions in one
> command? Like today's 'clean install'?
>
In fact it will get easier! As you can check out a single module and
build it as all dependencies are deployed artifacts.
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
Re: Reduce the references to SNAPSHOTs
Posted by Vadim Gritsenko <va...@reverycodes.com>.
On Apr 10, 2008, at 3:31 AM, Carsten Ziegeler wrote:
> Hi,
>
> as we plan to have independent releases of all the blocks, the core
> modules etc. we should reduce the number of dependencies refering to
> snapshots to a minimum.
> Especially for the parent poms and references to apis - there is no
> need to always release all parent poms, the api etc. just to fix a
> bug in the impl. And if we refer to released versions from within
> the poms, building Cocoon or parts of Cocoon gets much much easier.
>
> (And I think we already discussed this nearly a year ago and agreed
> to that :) )
Will there still be a way to somehow build "all trunk" versions in one
command? Like today's 'clean install'?
Vadim