Thanks John. That worked. Is there a way to override the location which
is currently {basedir}/target/finalName-<descriptorId>.dir/lib to any
other directory outside this project's directory.

Thanks and Regards,
Venkat 

-----Original Message-----
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 16, 2008 10:45 AM
To: Maven Users List
Subject: Re: Maven-assembly-plugin

To change the format for the dependency artifacts, add something like
the following to the dependencySet:

<outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</out
putFileNameMapping>

For other options to fine-tune your assembly configuration, see:

http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html

-john

On Wed, Apr 16, 2008 at 10:32 AM, Krishnamurthi, Venkat <
[EMAIL PROTECTED]> wrote:

>
>
>
> Hi,
>
> I used the following assembly descriptor to create an assembly 
> directory with my project's jar and all the jars that are it's
dependencies:
>
> <assembly>
>        <id>distribution</id>
>        <formats>
>                <format>dir</format>
>        </formats>
>        <includeBaseDirectory>false</includeBaseDirectory>
>        <fileSets>
>                <fileSet>
>                        <directory>target</directory>
>                        <outputDirectory></outputDirectory>
>                        <includes>
>                                <include>*.jar</include>
>                        </includes>
>                </fileSet>
>        </fileSets>
>        <dependencySets>
>                <dependencySet>
>                        <outputDirectory>/lib</outputDirectory>
>                        <unpack>false</unpack>
>                        <scope>runtime</scope>
>                </dependencySet>
>        </dependencySets>
> </assembly>
>
>
> However, all the jars that are copied inside lib/ had the version 
> numbers attached to them. Is there a way to filter out these version 
> numbers and just have the jars.
>
> Also, if I want to create this assembly directory at a location 
> outside this projects's target directory, where do I specify that
path.
>
>
> Thanks and Regards,
> Venkat
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
John Casey
---
Maven Developer (http://maven.apache.org)
---
Blog: http://www.ejlife.net/blogs/buildchimp

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

Reply via email to