On 28 February 2011 06:53, Fuke, Amol <[email protected]> wrote:
>  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>

Why don't you simply use the Maven WAR Plugin?

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

Reply via email to