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]
>
>

Reply via email to