Yes, but if I use ${project.parent.version} in my parent pom then it would
only work when building the child, not when building the parent (or a
grandchild).

What I would like is a way to refer to the version of "this" pom (ie the
same as the reference) not relative to the pom from which the build is
invoked.

   Peter


Jo Vandermeeren wrote:
> 
> Hi Peter,
> 
> You can access all POM information by specifying the elements in a dot
> notation.
> 
> E.g. the parent version is defined in your pom.xml as follows:
> <project>
>   <parent>
>     <version>
> </...>
> 
> The property notation to access this value would be: ${
> project.parent.version}.
> 
> Cheers
> Jo
> 
> 
> 
> On 8/31/07, PeterNilsson <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>>
>> Project "C" has project "P" as parent. Is it possible in the pom of "P"
>> to
>> refer to its own version?
>>
>> If I use ${pom.version} or ${project.version} in the pom of "P" it will
>> evaluate to the version of "C" when building C. I need a way to refer to
>> the
>> version of P.
>>
>>     Peter
>> --
>> View this message in context:
>> http://www.nabble.com/Retrieving-version-of-the-pom-itself---not-the-child-projects-pom-tf4359342s177.html#a12423917
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Retrieving-version-of-the-pom-itself---not-the-child-projects-pom-tf4359342s177.html#a12424483
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to