On Fri, Feb 22, 2008 at 9:50 AM, Ben Tatham <[EMAIL PROTECTED]> wrote:
> Does anyone know what scope is used to bring jars in the WEB-INF/lib
>  directory of a war?  It appears to bring in all scope=compile
>  dependencies.  Shouldn't this be just runtime dependencies?
>
>  For example, I am precompiling all my JSPs, so I don't need
>  jasper-compiler library.  According to dependency:tree, its compile
>  scope.  But its still in my WEB-INF lib.  And because of it, so is
>  ant-1.6.5.jar

What does the pom look like?  It's unusual that something like
jasper-compiler (or servlet-api) would show up in the webapp.

If you are declaring those dependencies, use <scope>provided</scope>
so Maven knows they will be provided by the container and not to
include them.

Be sure to 'mvn clean' after you change the pom, or things under
target may be left over from previous builds and confuse the issue.

-- 
Wendy

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

Reply via email to