This is most likely due to transitive dependencies, as you thought.
But it sounds a little bit odd as Ant artifacts are mostly used during
the build process and not as dependencies.

You can use "mvn -X package" and then search for ant-launcher to see
what dependency is bringing it into the build.

If you can't figure it out, post your pom.xml and the mvn -X output at
pastebin.org or similar and send links. Someone can take a look and
try to help you figure it out.

Wayne

On 1/24/08, Jeudy, Guillaume <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
>
> I get a list of jars that are added to my war without me specifying it
> anywhere in my pom.xml as a dependency. Is it because of the dependency
> transitivity feature ?
>
>
>
> My pom.xml uses: <packaging>war</packaging>
>
> some jars are added in WEB-INF/lib inside the war file even though they
> are not listed anywhere in dependencies:
>
>
>
> here are some of them:
>
>
> [DEBUG] adding entry ant-1.6.5.jar
>
> [DEBUG] adding entry ant-junit-1.6.5.jar
>
> [DEBUG] adding entry ant-launcher-1.6.5.jar
>
> [DEBUG] adding entry antlr-2.7.5.jar
>
> [DEBUG] adding entry asm-2.2.jar
>
> I could manually exclude them using
> <warSourceExcludes>filelist</warSourceExcludes> in the war plugin config
> but I'd rather understand what is causing this ? I'm using Maven 2.0.8.
>
>
>
> Thanks,
>
> -Guillaume Jeudy
>
>
>
> ____________________________________________________________________________________________________
> This electronic mail (including any attachments) may contain information that 
> is privileged, confidential, and/or otherwise protected from disclosure to 
> anyone other than its intended recipient(s). Any dissemination or use of this 
> electronic email or its contents (including any attachments) by persons other 
> than the intended recipient(s) is strictly prohibited. If you have received 
> this message in error, please notify us immediately by reply email so that we 
> may correct our internal records. Please then delete the original message 
> (including any attachments) in its entirety. Thank you.
>

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

Reply via email to