optional dependencies are set with <optional>
They are not transitive, so if you decide to use that from other
project you need to explicitly add jdom, and that will bring all jdom
transitive dependencies
On 4/25/06, Clifton Craig <[EMAIL PROTECTED]> wrote:
> On Monday 24 April 2006 3:51 pm, Mike Perham wrote:
> > <scope>test</scope> is the closest thing I can think of. Test dependencies
> > are not transitive so you need to declare them in each module.
>
> Right, I saw that but didn't know if the scoped would allow transitive
> behaviour. I also don't know much of other available scopes. So let's say I
> have a project, MyUtils, with a dependency on XMLUnit scoped to test and
> another optional dependency on JDOM. JDOM is only necessary if you want to
> use XPath features wrapped by MyUtils and provided by JDOM. Now I want to
> include Myutils in another project but I only want to use some collections
> classes also found in MyUtils and have no need for the wrapping of JDOM. How
> do I set the POM for MyUtils such that JDOM is not transitively included?
> More importantly how do I set it such that JDOM is automatically included
> with another project that does want to use the wrapped JDOM functionality
> from MyUtils without changing the POM for either project? Is profiles the
> answer?
>
> ---------------------------------------------------
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems - A Division of GBG
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]