Once something is deployed to a repo, the finalName has no effect because the name of the file in the repo is part of the layout standard. FinalName only affects the jar/war etc that gets created in the /target folder.
Soooo, that means you can always know what the name of the dependency file is, it's [artifactid-version[-classifier].ext] On Thu, Oct 7, 2010 at 10:03 AM, Michael Remijan <[email protected]> wrote: > 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? --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
