maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <wsm...@gmail.com>
Subject Re: General exclusion of a dependency
Date Mon, 17 Jan 2011 13:46:29 GMT
On Mon, Jan 17, 2011 at 7:59 AM, Jesse Farinacci <jieryn@gmail.com> wrote:

> The scope=provided instructs Maven to not actually bring that
> dependency into the classpath, thus, it behaves as a global exclude.

My understanding of 'provided' is that it *does* go on the classpath
for compilation, but it is not transitive (and does not get packaged).

The typical use is for the Servlet API in your .war file -- you need
it to compile, but you don't want it in WEB-INF/lib because the
container will provide it.

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message