I just found that someone posted the same issue. Sorry.
This was the reply:
...
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.
...
-----Ursprüngliche Nachricht-----
Von: Kanzlers, Andreas [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 12. April 2007 09:48
An: Maven Users List
Betreff: Referencing list POM properties
You can reference all properties defined in the POM xml like
project.version, project.build.finalName via ${project.version},
${project.build.finalName}.
But how can I access a list property, for example the version of a
specific dependency ?
<project ...>
<version>...</version>
...
<dependencies>
...
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
...
Regards,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]