2007/11/16, Henning P. Schmiedehausen <[EMAIL PROTECTED]>:
> "Nathan Bubna" <[EMAIL PROTECTED]> writes:
>
> Nothing should *ever* provide the servlet API or jar. Some releases of
> tomcat explicitly stopped deploying the jar in versions. It is a
> compile dependency. That is all. The runtime (servlet container)
> should provide the API.

This is exactly what the <scope>provided</scope> means: it is a
compile dependency, but it is already provided by a container. See:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

With this scope, the dependency is not transitive.
In Struts 2 we use servlet-api 2.4, while in velocity-tools it is use 2.3.
With the "compile" scope, the dependency is transitive, and to use the
2.4 we need to exclude explicitly the 2.3 version, inherited by
velocity-tools.

Antonio

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

Reply via email to