Good day to you, Christian,

You cannot do that AFAIK. However, you can do something like this.

<project>
  ...
  <dependencies>
    <dependency>
      ...
      <version>${some.var}</version>
    </dependency>
  </dependencies>

  <properties>
    <some.var>put version here</some.var>
  </properties>
</project>

Then access that ${some.var} somewhere else in your pom.

Cheers,
Franz


Christian Clauss wrote:
> 
> Hi everybody.
> 
>  
> 
> I would like to acces a value defined in the pom.xml 
> 
>  
> 
> <project>
> 
>             <dependencies>
> 
>                         <dependency>
> 
>                                    <version>"Here's the one I
> want"</version>
> 
>                         </dependency>
> 
>             </dependencies>
> 
> </project>
> 
>  
> 
> How can I access this value in the same pom.xml? I tried
> ${project.dependencies.dependency.version} but it didn't work.
> 
>  
> 
> Thanks a lot for your help.
> 
>  
> 
> Christian
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Property-tf3530846s177.html#a9855564
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