commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak" <wsm...@gmail.com>
Subject Re: Commons-logging 1.1 POM: why isn't servlet-api scope=provided ?
Date Wed, 24 Jan 2007 21:47:50 GMT
On 1/24/07, Simon Kitching <skitching@apache.org> wrote:

> Well, actually, the dependency on servlet-api should probably be marked
> both optional *and* provided, in that it is not needed in order to use
> many JCL features, but if you do want to use the JCL "cleanup on webapp
> unload" then the supporting jar is expected to be provided by the
> surrounding environment. However as it's not possible to use both,
> optional seems to more correctly describe the usage to me.

It should be possible to use both.  Optional is not a scope, it's a
separate element.  What happens with:

   <dependency>
      ...
      <scope>provided</scope>
      <optional>true</optional>
   </dependency>
?

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message