Dawn,
Thanks for your help. But, what about transitive dependencies?
Kind Regards
On 2/8/07, dawn.angelito <[EMAIL PROTECTED]> wrote:
Hi Marcos,
Instead of doing that, try this:
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${property.name}</version>
</dependency>
</dependencies>
<property.name>3.8.1</property.name>
Declare the version as a property then use that in your dependency.
Hope this helps.
Dawn
Marcos Silva Pereira wrote:
>
> How can I access dependency information inside the pom.xml? I would like
> to
> do something like the following:
>
> <property.name>${project.dependencies
[junit:junit].version}</property.name>
>
> In other words, how can I get the version from a dependency?
>
> Thanks...
>
> --
> Marcos Silva Pereira
> recife - pe
> [EMAIL PROTECTED]
> skype: marcos.silva.pereira
> http://blastemica.blogspot.com
>
>
--
View this message in context:
http://www.nabble.com/Access-dependency-properties-inside-pom.-tf3189482s177.html#a8860434
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Marcos Silva Pereira
recife - pe
[EMAIL PROTECTED]
skype: marcos.silva.pereira
http://blastemica.blogspot.com