You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michal Szalinski <mi...@coconet.pl> on 2009/05/11 18:45:31 UTC

timestamped artifacts in multi module build - maven bug or mymisunderstanding

Hi,

I am doing deploy (mvn deploy) of timestamped multi-module build.
It puts nice timestamped versions of all those modules in my repo,
updating maven-metadata.xml accordingly.
Modules in that build depend on each other (say moduleA depends on
moduleB) - using <version>${pom.version}</version>.

I need to use that timestamped modules in my other build, but it seems
that when i declare dependency on moduleA (version timestamped), still
the transitive moduleB dependency version retrieved is not timestamped,
but latest available in the repo. This makes my build not unique, and
thus timestamp concept does not seem to work for this scenario at all.

Please tell me, whether I do something wrong, or just maven concept does
not fully fit to releasing timestamped artifacts at all?

Thanks
Michal Szalinski

------------------------------------------------------------------------------------ 
Diese Nachricht könnte vertrauliche und/oder rechtlich
geschützte Informationen enthalten. Wenn Sie nicht der
Adressat dieser Email sind oder nicht autorisiert sind, diese
für den Adressaten entgegenzunehmen, so ist es untersagt,
diese Nachricht oder in ihr enthaltene Informationen zu nutzen,
zu kopieren, offen zu legen oder anderweitig weiterzuverarbeiten.
Sollten Sie diese Nachricht fälschlicherweise erhalten haben,
verständigen Sie den Absender bitte unverzüglich per Antwort auf
diese Mail und löschen sie diese anschließend.
Vielen Dank für Ihre Kooperation.
------------------------------------------------------------------------------------ 
This message may contain confidential and/or privileged 
information. If you are not the addressee or authorized 
to receive this for the addressee, you must not use, copy, 
disclose or take any action based on this message or any 
information herein. If you have received this message in 
error, please advise the sender immediately by reply e-mail 
and delete this message. Thank you for your co-operation. 
------------------------------------------------------------------------------------ 
We make your business move. 



Re: timestamped artifacts in multi module build - maven bug or mymisunderstanding

Posted by Michal Szalinski <ms...@gmail.com>.
It seems that it is bug in MAVEN:
http://jira.codehaus.org/browse/MNG-2486

anyone knows any workaround for this?

my first guess is to filter generated pom.xml version from X.X-SNAPSHOT to
TIMESTAMP in deploy phase, before deploying it to the snapshot repo.
Probably i'll try to patch deploy plugin to do so.

Can anyone tell whether it seems like a good approach, or suggest another
one?

Regards
Michal

-- 
View this message in context: http://www.nabble.com/timestamped-artifacts-in-multi-module-build---maven-bug-or-mymisunderstanding-tp23496396p23501583.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