You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Graham Leggett <mi...@sharp.fm> on 2007/06/06 17:12:11 UTC

Re: Maven Release Plugin seems to run "clean verify" and miss out on install for aggregate projects

On Wed, June 6, 2007 4:50 pm, Mark Donszelmann wrote:

>> The workaround for us to release aggregated projects is like this:
>>
>> mvn install release:prepare
>>
> but this would do the install w/o the poms being changed from 3.3-
> SNAPSHOT to 3.3,
> so this would not help.

And yet it does help.

I suspect that in "aggregated mode" the versions are not changed, but the
install is not done, it only goes as far as "integration-test". If the
versions were changed to 3.3 before running the aggregated build, the
aggregated build would always fail due to missing artifacts, and this
doesn't happen in practise.

Regards,
Graham
--



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


Re: Maven Release Plugin seems to run "clean verify" and miss out on install for aggregate projects

Posted by Graham Leggett <mi...@sharp.fm>.
On Wed, June 6, 2007 5:25 pm, Mark Donszelmann wrote:

> well, as far as I can conclude, an aggregated build will calculate
> the order in which to generate (and install) the artifacts, so that
> any module dependent on them is run later than the one generating
> them.

That won't matter. If you don't run the install step, then artifact A,
required by artifact B, won't be available to artifact B even though you
built (but didn't install) A - and your build of artifact B will fail.

If the build does succeed, it will be by accident - you'll be relying on
some previous invocation of mvn install that build artifact A.

> I am still confused though about your command:
>
> mvn install release:prepare
>
> will just execute these in order, so the poms would not have
> been changed.
>
> Max suggests to use -DpreparationalGoals="clean install"
> which would change the goals as part of the release:prepare.

I will try that the next time we do a release, which should be in the next
day or two.

Regards,
Graham
--



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


Re: Maven Release Plugin seems to run "clean verify" and miss out on install for aggregate projects

Posted by Mark Donszelmann <Ma...@slac.stanford.edu>.
Hi

well, as far as I can conclude, an aggregated build will calculate
the order in which to generate (and install) the artifacts, so that
any module dependent on them is run later than the one generating
them.

I am still confused though about your command:

mvn install release:prepare

will just execute these in order, so the poms would not have
been changed.

Max suggests to use -DpreparationalGoals="clean install"
which would change the goals as part of the release:prepare.

Regards
Mark

On Jun 6, 2007, at 8:12 AM, Graham Leggett wrote:

> On Wed, June 6, 2007 4:50 pm, Mark Donszelmann wrote:
>
>>> The workaround for us to release aggregated projects is like this:
>>>
>>> mvn install release:prepare
>>>
>> but this would do the install w/o the poms being changed from 3.3-
>> SNAPSHOT to 3.3,
>> so this would not help.
>
> And yet it does help.
>
> I suspect that in "aggregated mode" the versions are not changed,  
> but the
> install is not done, it only goes as far as "integration-test". If the
> versions were changed to 3.3 before running the aggregated build, the
> aggregated build would always fail due to missing artifacts, and this
> doesn't happen in practise.
>
> Regards,
> Graham
> --
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>


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