The dependency plugin won't go and delete other files in there, including 
artifacts with another version. It is normally used to dump files into /target 
that would get cleaned up during a clean build.

-----Original Message-----
From: sam [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 17, 2007 12:36 AM
To: Maven Users List
Subject: Re: [m2] How to deploy all of the 3th party jars under the Jboss 
directory ?please.

Hi,
    Thanks for Boeckli's help,and now I can use maven-dependency-plugin to
do this job,but there is a new problem is that,when I change the one
artifact's version which is heigher than previous,and than I excute
dependency:copy,as a result ,there will be two artifact(jar) with different
version in the /lib directory,how can I delete the old version or overwrite
it?I have try to use

<overWriteReleases>true</overWriteReleases>
     <overWriteSnapshots>true</overWriteSnapshots>
     <overWriteIfNewer>true</overWriteIfNewer>

but nothing arises.please help.
thanks advance.


2007/3/7, Boeckli, Dominique <[EMAIL PROTECTED]>:
>
> Id did it this way: see the attachments
>
>
>
> -----Original Message-----
> From: John J. Franey [mailto:[EMAIL PROTECTED]
> Sent: Montag, 26. Februar 2007 17:24
> To: users@maven.apache.org
> Subject: Re: [m2] How to deploy all of the 3th party jars under the Jboss
> directory ?please.
>
>
> A piece of the puzzle may be the assembly plugin,
> http://maven.apache.org/plugins/maven-assembly-plugin, to assemble the
> dependencies of your project into a zip file that you can unzip into your
> $JBOSS_HOME/server location.
>
> Another piece of this puzzle may be the cargo plugin,
> http://cargo.codehaus.org/Maven2+plugin, which copies down a jboss
> distribution and configures it.  However, I'm not sure if it will allow
> deploy of a server's lib directory.
>
>
> Regards,
> John
>
>
> 秋秋 wrote:
> >
> > Hello,
> >     Everybody! ,I have create a webapp project,I want to deploy all of
> > the  3th party jars in the directory
> > $JBOSS_HOME/server/ProjectName/lib,How can I do?What plugins can I
> > use?please help.
> >
> > thanks in advance.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-deploy-all-of-the-3th-party-jars-under-the-Jboss-directory--please.-tf3291868s177.html#a9161867
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]
>
>

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

Reply via email to