On Sun, Feb 22, 2009 at 7:25 AM, Oleg Taranenko
<[email protected]> wrote:

> How I
>  can rename the artifact jar from format mytool-1.0.1-SNAPSHOT.jar to
>  mytool.jar, before packaging it into assembly?
>
>  I'm using now bootstrap batch file a la mvn.bat.
> java -classpath %MYTOOL_HOME%\lib\mytool-1.0.1-SNAPSHOT.jar 
> org.tigris.mytool.App
>  I'd like to replace it with
> java -classpath %MYTOOL_HOME%\lib\mytool.jar org.tigris.mytool.App
> and do not changing mytool.bat from version to version.

How about filtering the version number into mytool.bat automatically,
so that you don't have to change it?

If you do decide to change the filename, then the
'outputFileNameMapping' element in the assembly descriptor sounds like
it might do what you want.

http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet

outputFileNameMapping    Sets the mapping pattern for all dependencies
included in this assembly. Default is
${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}.
(Since 2.2-beta-2; 2.2-beta-1 uses
${artifactId}-${version}${dashClassifier?}.${extension}) The default
value is 
${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to