You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by alexsil <al...@zucchetti.it> on 2008/02/05 18:08:50 UTC
Release plugin (prepare) doesn't update more than one dependencies
in multi modules project
Hi all,
I have a project so structured:
au -------- au-business
|
|--- au-sistema
Dependencies in au are:
...
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.zucchetti.qweb.au</groupId>
<artifactId>au-business</artifactId>
<version>${project.version}</version>
</dependency>
<!-- external dependencies-->
<dependency>
<groupId>com.zucchetti.qweb.framework</groupId>
<artifactId>sistema</artifactId>
<version>03.00.02-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.zucchetti.qweb.framework</groupId>
<artifactId>business</artifactId>
<version>03.00.02-SNAPSHOT</version>
</dependency>
</dependencies>
</dependencyManagement>
...
Dependencies in au-business are:
...
<dependencies>
<dependency>
<groupId>com.zucchetti.qweb.framework</groupId>
<artifactId>business</artifactId>
</dependency>
</dependencies>
...
Dependencies in au-sistema are:
...
<dependencies>
<dependency>
<groupId>com.zucchetti.qweb.au</groupId>
<artifactId>au-business</artifactId>
</dependency>
<dependency>
<groupId>com.zucchetti.qweb.framework</groupId>
<artifactId>sistema</artifactId>
</dependency>
</dependencies>
...
When I make a mvn release:clean release:prepare the plugin, correctly, ask
me to resolve SNAPSHOTs dependencies. (framework-business &&
framework-sistema)
Unfortunatly at the end of the process only framework-sistema has been
modified, while framework-business no.
I've debuged the problem and I found that if I force the two dependencies
(framework-sistema, framework-business) in the parent pom (pom of "au") all
run fine (also if the process to resolve SNAPSHOT dependencies get prompted
tree times ... too much I say ...).
Is this the correct behavior ?
I hope no, becouse I should modify al my poms.
Morever , the flag "updateDependencies=false" doesn't run. I think it has
not managed.
Best regards
Alex
--
View this message in context: http://www.nabble.com/Release-plugin-%28prepare%29-doesn%27t--update-more-than-one-dependencies-in-multi-modules-project-tp15293510s177p15293510.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Release plugin (prepare) doesn't update more than one
dependencies in multi modules project
Posted by Zucchi Alessandro <al...@zucchetti.it>.
Hi all,
I found the time to upload a simple example that reproduce the problem.
http://www.nabble.com/file/p15710300/test.zip test.zip
Step to follow:
1- install project in your repository (updating your SSC url (svn/ cvs ..)
2- run: mvn -DpreparationGoals=clean,install -DautoVersionSubmodules=true
release:clean release:prepare on framework project
3- run: mvn -DpreparationGoals=clean,install -DautoVersionSubmodules=true
release:clean release:prepare on au project end resolve all the
SNAPSHOT dependencies prompted (framework business && framework sistema)
4- Look at the au root pom.xml. You will see something of similar
<dependency>
<groupId>test.zucchetti.qweb.framework</groupId>
<artifactId>sistema</artifactId>
<version>03.00.05-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>test.zucchetti.qweb.framework</groupId>
<artifactId>business</artifactId>
<version>03.00.04-SNAPSHOT</version>
</dependency>
Only one SNAPSHOT dependency has been correctly updated.
For me this is a bug the I tryed to resolve with this patch:
http://jira.codehaus.org/secure/attachment/32414/patch.txt
http://jira.codehaus.org/secure/attachment/32414/patch.txt
Any help is appreciated
Alex
Zucchi Alessandro wrote:
>
> Hi Paul,
> thank you for your answer.
>
> I created a new issue in JIRA with a patch that resolve the problem (or
> what I think to be a problem)
> http://jira.codehaus.org/browse/MRELEASE-323
>
> Now I can't attach a small test to the issue for time purpose, the
> release is close :-(
> When I have a few free time I'll attach a simple test to the issue.
> Until than, if you want you can try to apply my patch and see if resolve
> your problems. I created a patch against 2.0-beta-8 but runs also with the
> tagged 2.0-beta-7 version.
>
> Bye
> Alex
>
>
>
> Paul Gier wrote:
>>
>> Sorry this is not much help, but I haven't had good luck with getting the
>> release plugin to update my snapshot dependencies either. So I always
>> update
>> them manually before doing a release. If you can create a jira issue for
>> this
>> (in the release plugin project) and attach a small test project to
>> reproduce the
>> problem, I'm sure someone will get around to take a look at this.
>>
>> alexsil wrote:
>>> Hi all,
>>> I have a project so structured:
>>>
>>> au -------- au-business
>>> |
>>> |--- au-sistema
>>>
>>> Dependencies in au are:
>>>
>>> ...
>>> <dependencyManagement>
>>> <dependencies>
>>> <dependency>
>>> <groupId>com.zucchetti.qweb.au</groupId>
>>> <artifactId>au-business</artifactId>
>>> <version>${project.version}</version>
>>> </dependency>
>>>
>>> <!-- external dependencies-->
>>> <dependency>
>>> <groupId>com.zucchetti.qweb.framework</groupId>
>>> <artifactId>sistema</artifactId>
>>> <version>03.00.02-SNAPSHOT</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>com.zucchetti.qweb.framework</groupId>
>>> <artifactId>business</artifactId>
>>> <version>03.00.02-SNAPSHOT</version>
>>> </dependency>
>>> </dependencies>
>>> </dependencyManagement>
>>> ...
>>>
>>> Dependencies in au-business are:
>>> ...
>>> <dependencies>
>>> <dependency>
>>> <groupId>com.zucchetti.qweb.framework</groupId>
>>> <artifactId>business</artifactId>
>>> </dependency>
>>> </dependencies>
>>> ...
>>>
>>> Dependencies in au-sistema are:
>>> ...
>>> <dependencies>
>>> <dependency>
>>> <groupId>com.zucchetti.qweb.au</groupId>
>>> <artifactId>au-business</artifactId>
>>> </dependency>
>>> <dependency>
>>> <groupId>com.zucchetti.qweb.framework</groupId>
>>> <artifactId>sistema</artifactId>
>>> </dependency>
>>> </dependencies>
>>> ...
>>>
>>> When I make a mvn release:clean release:prepare the plugin, correctly,
>>> ask
>>> me to resolve SNAPSHOTs dependencies. (framework-business &&
>>> framework-sistema)
>>> Unfortunatly at the end of the process only framework-sistema has been
>>> modified, while framework-business no.
>>> I've debuged the problem and I found that if I force the two
>>> dependencies
>>> (framework-sistema, framework-business) in the parent pom (pom of "au")
>>> all
>>> run fine (also if the process to resolve SNAPSHOT dependencies get
>>> prompted
>>> tree times ... too much I say ...).
>>> Is this the correct behavior ?
>>> I hope no, becouse I should modify al my poms.
>>>
>>> Morever , the flag "updateDependencies=false" doesn't run. I think it
>>> has
>>> not managed.
>>>
>>> Best regards
>>> Alex
>>>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Release-plugin-%28prepare%29-doesn%27t--update-more-than-one-dependencies-in-multi-modules-project-tp15293510s177p15710300.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Release plugin (prepare) doesn't update more than one
dependencies in multi modules project
Posted by Zucchi Alessandro <al...@zucchetti.it>.
Hi Paul,
thank you for your answer.
I created a new issue in JIRA with a patch that resolve the problem (or what
I think to be a problem)
http://jira.codehaus.org/browse/MRELEASE-323
Now I can't attach a small test to the issue for time purpose, the release
is close :-(
When I have a few free time I'll attach a simple test to the issue.
Until than, if you want you can try to apply my patch and see if resolve
your problems. I created a patch against 2.0-beta-8 but runs also with the
tagged 2.0-beta-7 version.
Bye
Alex
Paul Gier wrote:
>
> Sorry this is not much help, but I haven't had good luck with getting the
> release plugin to update my snapshot dependencies either. So I always
> update
> them manually before doing a release. If you can create a jira issue for
> this
> (in the release plugin project) and attach a small test project to
> reproduce the
> problem, I'm sure someone will get around to take a look at this.
>
> alexsil wrote:
>> Hi all,
>> I have a project so structured:
>>
>> au -------- au-business
>> |
>> |--- au-sistema
>>
>> Dependencies in au are:
>>
>> ...
>> <dependencyManagement>
>> <dependencies>
>> <dependency>
>> <groupId>com.zucchetti.qweb.au</groupId>
>> <artifactId>au-business</artifactId>
>> <version>${project.version}</version>
>> </dependency>
>>
>> <!-- external dependencies-->
>> <dependency>
>> <groupId>com.zucchetti.qweb.framework</groupId>
>> <artifactId>sistema</artifactId>
>> <version>03.00.02-SNAPSHOT</version>
>> </dependency>
>> <dependency>
>> <groupId>com.zucchetti.qweb.framework</groupId>
>> <artifactId>business</artifactId>
>> <version>03.00.02-SNAPSHOT</version>
>> </dependency>
>> </dependencies>
>> </dependencyManagement>
>> ...
>>
>> Dependencies in au-business are:
>> ...
>> <dependencies>
>> <dependency>
>> <groupId>com.zucchetti.qweb.framework</groupId>
>> <artifactId>business</artifactId>
>> </dependency>
>> </dependencies>
>> ...
>>
>> Dependencies in au-sistema are:
>> ...
>> <dependencies>
>> <dependency>
>> <groupId>com.zucchetti.qweb.au</groupId>
>> <artifactId>au-business</artifactId>
>> </dependency>
>> <dependency>
>> <groupId>com.zucchetti.qweb.framework</groupId>
>> <artifactId>sistema</artifactId>
>> </dependency>
>> </dependencies>
>> ...
>>
>> When I make a mvn release:clean release:prepare the plugin, correctly,
>> ask
>> me to resolve SNAPSHOTs dependencies. (framework-business &&
>> framework-sistema)
>> Unfortunatly at the end of the process only framework-sistema has been
>> modified, while framework-business no.
>> I've debuged the problem and I found that if I force the two dependencies
>> (framework-sistema, framework-business) in the parent pom (pom of "au")
>> all
>> run fine (also if the process to resolve SNAPSHOT dependencies get
>> prompted
>> tree times ... too much I say ...).
>> Is this the correct behavior ?
>> I hope no, becouse I should modify al my poms.
>>
>> Morever , the flag "updateDependencies=false" doesn't run. I think it has
>> not managed.
>>
>> Best regards
>> Alex
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Release-plugin-%28prepare%29-doesn%27t--update-more-than-one-dependencies-in-multi-modules-project-tp15293510s177p15363730.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Release plugin (prepare) doesn't update more than one dependencies
in multi modules project
Posted by Paul Gier <pg...@redhat.com>.
Sorry this is not much help, but I haven't had good luck with getting the
release plugin to update my snapshot dependencies either. So I always update
them manually before doing a release. If you can create a jira issue for this
(in the release plugin project) and attach a small test project to reproduce the
problem, I'm sure someone will get around to take a look at this.
alexsil wrote:
> Hi all,
> I have a project so structured:
>
> au -------- au-business
> |
> |--- au-sistema
>
> Dependencies in au are:
>
> ...
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>com.zucchetti.qweb.au</groupId>
> <artifactId>au-business</artifactId>
> <version>${project.version}</version>
> </dependency>
>
> <!-- external dependencies-->
> <dependency>
> <groupId>com.zucchetti.qweb.framework</groupId>
> <artifactId>sistema</artifactId>
> <version>03.00.02-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>com.zucchetti.qweb.framework</groupId>
> <artifactId>business</artifactId>
> <version>03.00.02-SNAPSHOT</version>
> </dependency>
> </dependencies>
> </dependencyManagement>
> ...
>
> Dependencies in au-business are:
> ...
> <dependencies>
> <dependency>
> <groupId>com.zucchetti.qweb.framework</groupId>
> <artifactId>business</artifactId>
> </dependency>
> </dependencies>
> ...
>
> Dependencies in au-sistema are:
> ...
> <dependencies>
> <dependency>
> <groupId>com.zucchetti.qweb.au</groupId>
> <artifactId>au-business</artifactId>
> </dependency>
> <dependency>
> <groupId>com.zucchetti.qweb.framework</groupId>
> <artifactId>sistema</artifactId>
> </dependency>
> </dependencies>
> ...
>
> When I make a mvn release:clean release:prepare the plugin, correctly, ask
> me to resolve SNAPSHOTs dependencies. (framework-business &&
> framework-sistema)
> Unfortunatly at the end of the process only framework-sistema has been
> modified, while framework-business no.
> I've debuged the problem and I found that if I force the two dependencies
> (framework-sistema, framework-business) in the parent pom (pom of "au") all
> run fine (also if the process to resolve SNAPSHOT dependencies get prompted
> tree times ... too much I say ...).
> Is this the correct behavior ?
> I hope no, becouse I should modify al my poms.
>
> Morever , the flag "updateDependencies=false" doesn't run. I think it has
> not managed.
>
> Best regards
> Alex
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org