I know I can use properties like ${project.build.finalName} to get some
information from the POM. But the information I want to get is the final name
of the artifact built by a dependency. So, for example suppose I have a
dependency like this:
<dependencies>
<dependency>
<groupId>com.somecompany</groupId>
<artifactId>super-project</artifactId>
<version>1.2.2</version>
<type>jar</type>
</dependency>
</dependencies>
I have tried to get the final name of the artifact this dependency produces by
using a property like this:
${project.dependencies.0.artifactId}-${project.dependencies.0.version}.jar
But this is not working. So two questions:
(1)
Is is possible to use properties to get the final name of an artifact produced
by a dependency?
(2)
How do I do this?