Hi all,
is it possible to access the version of a dependency via a property?
Detailed problem description:
I have the following pom.xml:
<dependencies>
<dependency>
<groupId>myGroupId</groupId>
<artifactId>myArtifactId</artifactId>
<version>41</version>
</dependency>
</dependencies>
</project>
Because I need to state the version of the dependency myGroupId.myArtrifactId
in my code I want to use the version of the dependency and inject it via
resource filtering.
In my text resource Text.properties I tried these (neither of them works):
${pom.dependencies.dependency[0].version}
${pom.dependencies.dependency[0].groupId}
${pom.dependencies.dependency{0}.groupId}
${project.dependencies.dependency{0}.groupId}
${pom.dependencies.dependency[artifactId=myArtifactId]}
Can anybody help me out?
Thanks,
Jan
___________________________________________
Cellent Finance Solutions AG
Firmensitz: Calwer Straße 33, 70173 Stuttgart
Registergericht: Amtsgericht Stuttgart, HRB 720743
Vorstand: Thomas Wild
Vorsitzender des Aufsichtsrats: Rudolf Zipf