You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Baptiste MATHUS <ml...@batmat.net> on 2011/02/25 19:54:51 UTC
Re: Unwanted jars getting copied
Hi,
This is not the right mailing list for this kind of question. This list is
dedicated to Maven development.
Please write to users@maven.apache.org instead.
Cheers
Le 25 févr. 2011 12:34, "Fuke, Amol" <Am...@nielsen.com> a écrit :
> Hi All ,
>
> I am using below snippet to copy dependant jars from lib to war. But this
also copying some unwanted jars like rt.jar and tools.jar.
>
> Is there any way I exclude them from getting copied into my war.
>
>
> <plugin>
> <artifactId>maven-dependency-plugin</artifactId>
> <executions>
> <execution>
> <phase>install</phase>
> <goals>
> <goal>copy-dependencies</goal>
> </goals>
> <configuration>
> <outputDirectory>${project.build.directory}/lib</outputDirectory>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> Thanks,
> Amol