Hi
I am not sure, if this post will help you.Anyway, the following
maven.xml snippet copies all the dependency jars files from maven
repository to a folder specified. you can zip them using ANT zip task
for suit your packaging needs.
<goal name="copydependencies">
<echo>Copying Dependent Jars</echo>
<mkdir dir="${maven.build.dir}/lib/" />
<deploy:copy-deps todir="${maven.build.dir}/lib/" />
<!-- Create a zip file -->
<zip zipfile="${maven.dist.dir}/${maven.final.name}-dependencies.zip">
<zipfileset dir="${maven.build.dir}/lib/" />
</zip>
</goal>
bye
Satish
On Tue, 2 Nov 2004 13:28:41 +0200, Jeffrey Mutonho <[EMAIL PROTECTED]> wrote:
> Hi guys
>
> We use Maven to build a distribution for one of our webapps.
> Currently we successfully build a zip file containing the webapp .war
> file and many web pages making up the standard maven documentation and
> some reports etc. What we would like to do is to also include in the
> zip file the jar files that the app is dependent on, i.e. those listed
> in the <dependencies/> tag in project.xml. Please advise of an
> elegant way we can accomplish this. One way of doing this is to
> define a post goal where we manipulate the contents of the zip file,
> but we are trying to avoid having to define the set of jars twice in
> xml, i.e. we want to re-use the <dependencies/> set.
>
> jeff mutonho
>
> ---------------------------------------------------------------------
> 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]