Well, it may give the same result sometimes, but it's not the same semantics
at all.
"provided" is meant to not be included in a final packaging, since it's
"provided" (mainly useful in a container, like an appserver).
"optional" is to say that a jar is optional. Some people even say it's a
sign that a project is not designed modularly enough, and so it'd be a bad
practice.

Cheers

2010/9/23 Max Bowsher <[email protected]>

> It seems to me that in a Maven dependency, <scope>provided</scope> and
> <optional>true</optional> have incredibly similar semantics (though
> there is an implied difference in meaning to humans).
>
>
> Is there actually any circumstances where one vs. the other produces
> differing behaviour?
>
> Max.
>
>


-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Reply via email to