You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Karl Heinz Marbaise <kh...@gmx.de> on 2009/03/30 18:49:39 UTC

Maven Release release:prepare / perform etc.

Hi there,

i have a project which is building etc. with mvn clean package etc.
Now i would like to do a mvn release:prepare
answering questins: like release Version 1.0.0 and the tag name etc.

but it's comming up that during the release:prepare cycle Maven want to 
download artifact like xyz-1.0.0.pom from a repository but that can't be 
cause that artifact is exactly what is currently build....in Version 1.0.0 ?

So can someone give me hint what I'm doing wrong ? Or do i understand 
something wrong ?

Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 Würselen                           http://www.soebes.de

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


Re: Maven Release release:prepare / perform etc.

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi David,

first thanks for your fast answer...

> Hey Karl,
> This issue has been coming up quite a bit, lately.  
Hm...my english seemed to be no good enough to understand this...



 > Some will disagree
> with me, but here is my solution to this problem.
> 
>    mvn release:prepare -DpreparationGoals="clean install"
> 
> The release:prepare normally only does a packaging, so the install step 
> never happens.  It really should find the artifact in the reactor, but 
> it doesn't.  So, you have to install it.
> Good luck,
> Dave
> 
> 
> Karl Heinz Marbaise wrote:
>> Hi there,
>>
>> i have a project which is building etc. with mvn clean package etc.
>> Now i would like to do a mvn release:prepare
>> answering questins: like release Version 1.0.0 and the tag name etc.
>>
>> but it's comming up that during the release:prepare cycle Maven want 
>> to download artifact like xyz-1.0.0.pom from a repository but that 
>> can't be cause that artifact is exactly what is currently build....in 
>> Version 1.0.0 ?
>>
>> So can someone give me hint what I'm doing wrong ? Or do i understand 
>> something wrong ?
>>
>> Kind regards
>> Karl Heinz Marbaise
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 Würselen                           http://www.soebes.de

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


Re: Maven Release release:prepare / perform etc.

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi,
> Hi David,
> 
> sorry.. a second one...
>>    mvn release:prepare -DpreparationGoals="clean install"
> In my opinion this couldn't work, cause the goal clean tries to download 
> things from local repository (like xy-1.0.0.pom) which will be created 
> by the process so the only goal in this case could be "install" ...
If i had written -DpreparationGoals correct than it had worked...

Thanks for your help....

Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 Würselen                           http://www.soebes.de

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


Re: Maven Release release:prepare / perform etc.

Posted by Stephen Connolly <st...@gmail.com>.
I am going to bet that you might be using the dependency:copy or the
dependency:unpack goals and not dependency:copy-dependencies

If you are picking something up from the reactor you need to use goals that
look in the reactor

2009/3/30 Karl Heinz Marbaise <kh...@gmx.de>

> Hi David,
>
> sorry.. a second one...
>
>>   mvn release:prepare -DpreparationGoals="clean install"
>>
> In my opinion this couldn't work, cause the goal clean tries to download
> things from local repository (like xy-1.0.0.pom) which will be created by
> the process so the only goal in this case could be "install" ...
>
> Kind regards
> Karl Heinz Marbaise
> --
> SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
> Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
> Hauptstrasse 177                         USt.IdNr: DE191347579
> 52146 Würselen                           http://www.soebes.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Maven Release release:prepare / perform etc.

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi David,

sorry.. a second one...
>    mvn release:prepare -DpreparationGoals="clean install"
In my opinion this couldn't work, cause the goal clean tries to download 
things from local repository (like xy-1.0.0.pom) which will be created 
by the process so the only goal in this case could be "install" ...

Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 Würselen                           http://www.soebes.de

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


Re: Maven Release release:prepare / perform etc.

Posted by "David C. Hicks" <dh...@i-hicks.org>.
Hey Karl,
This issue has been coming up quite a bit, lately.  Some will disagree 
with me, but here is my solution to this problem.

    mvn release:prepare -DpreparationGoals="clean install"

The release:prepare normally only does a packaging, so the install step 
never happens.  It really should find the artifact in the reactor, but 
it doesn't.  So, you have to install it.
Good luck,
Dave


Karl Heinz Marbaise wrote:
> Hi there,
>
> i have a project which is building etc. with mvn clean package etc.
> Now i would like to do a mvn release:prepare
> answering questins: like release Version 1.0.0 and the tag name etc.
>
> but it's comming up that during the release:prepare cycle Maven want 
> to download artifact like xyz-1.0.0.pom from a repository but that 
> can't be cause that artifact is exactly what is currently build....in 
> Version 1.0.0 ?
>
> So can someone give me hint what I'm doing wrong ? Or do i understand 
> something wrong ?
>
> Kind regards
> Karl Heinz Marbaise

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