There isn't one exposed inside maven itself, however there is one in the 
dependency plugin to do it though (you can just copy the code): 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/utils/DependencyUtil.java?view=markup
 

-----Original Message-----
From: Roland Asmann [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 19, 2007 9:59 AM
To: Maven Users List
Subject: Re: File name according to groupId, artifactId and a version.

I believe that ${finalName} will give you the exact name of the output-file...
Although you can normally combine the artifactId with version and packaging to 
get the name of the output.


On Monday 19 March 2007 14:56, Rahamim, Zvi (Zvi) wrote:
> Hi,
> Given a groupId, artifactId and a version, how can I know the final name
> of the file?
> For example,
>   <groupId>org.apache.maven</groupId>
>   <artifactId>maven-core</artifactId>
>   <version>2.0.4</version>
> The file will be maven-core-2.0.4.jar
> But the packaging can be not only jar, but war, ear...
> Is there an API from within Maven to get this file name?
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to