2008/12/10 De Smet Ringo <[EMAIL PROTECTED]>

> Stephen,
>
> > -----Original Message-----
> > From: Stephen Connolly [mailto:[EMAIL PROTECTED]
> > Sent: woensdag 10 december 2008 13:12
> > To: Maven Developers List
> > Subject: Re: Version property in root POM & multi-level
> > dependency resolution
> >
> > Have a look at versions:update-properties... (you'd need
> > version 1.0-alpha-2 or newer)
> >
> > I'd structure things a little differently... but it might
> > help you achieve your end-goal.
>
> Sorry, but this modifies the POMs and this is not what I want. The
> transitive dependency resolution only takes into account overridden
> properties for my current POM, but not when recursing down. This is a
> run-time error in my opinion.


I'm not sure where you see the run-time error?  In Maven in general or in
the versions-maven-plugin?

One solution is to have an intermediate parent pom that is a snapshot and
has a dependencyManagement section locking all the versions to the latest
releases.

You can then update all it's properties automatically with versions-m-p and
as it's a -SNAPSHOT redeploying will pick it up for the child modules...
when you come to release, you release the parent as a non-SNAPSHOT and you
should be OK


>
> On the other hand, the versions plugin will help me with the update-parent
> goal on another issue I still had. So thanks! :-)


Glad you found something that works for you!


>
>
> I am browsing the code, but I do not find a clear spot in the code where
> versions defined as a property are resolved to the actual version. I think
> there is a piece of code that resolves the properties including property
> definitions from active profiles defined in the settings.xml when building
> the Java model from my current POM, but that these properties are not taken
> along when recursing down to resolve dependencies. Can someone point me to
> the correct place in the Maven codebase where this property resolution takes
> place?


Which code are you browsing?  Maven or versions-maven-plugin?

With versions-maven-plugin, I just ask Maven to parse the model for me and
query the model for the effective values... Then I go back and correlate the
effective values to the values in the raw XML file...

But I suspect you are talking about Maven in general

>
>
> Ringo
> *************************************************************
>
> Dit e-mail bericht inclusief eventuele ingesloten bestanden kan informatie
> bevatten die vertrouwelijk is en/of beschermd door intellectuele
> eigendomsrechten. Dit bericht is uitsluitend bestemd voor de
> geadresseerde(n). Elk gebruik van de informatie vervat in dit bericht
> (waaronder de volledige of gedeeltelijke reproductie of verspreiding onder
> elke vorm) door andere personen dan de geadresseerde(n) is verboden. Indien
> u dit bericht per vergissing heeft ontvangen, gelieve de afzender hiervan te
> verwittigen en dit bericht te verwijderen.
>
> This e-mail and any attachment thereto may contain information which is
> confidential and/or protected by intellectual property rights and are
> intended for the sole use of the addressees. Any use of the information
> contained herein (including but not limited to total or partial reproduction
> or distribution in any form) by other persons than the addressees is
> prohibited. If you have received this e-mail in error, please notify the
> sender and delete its contents.
>
> Ce courriel et les annexes éventuelles peuvent contenir des informations
> confidentielles et/ou protégées par des droits de propriété intellectuelle.
> Ce message est adressé exclusivement à son (ses) destinataire(s). Toute
> utilisation du contenu de ce message (y compris la reproduction ou diffusion
> partielle ou complète sous toute forme) par une autre personne que le(s)
> destinataire(s) est formellement interdite. Si vous avez reçu ce message par
> erreur, veuillez prévenir l'expéditeur du message et en détruire le contenu.
>
> *************************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to