I have specified "<scope>provided</scope>" in the POM and useScope="provided" 
in the Ant dependencies task but the dependency is not picked up.

Any ideas?

I totally agree that transitivity should only be a switch on the Ant task.

Regards
Dave

-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: 11 October 2005 14:57
To: Maven Users List
Subject: Re: [m2b3] Ant Dependencies Task and Scope

On 10/11/05, David Pick <[EMAIL PROTECTED]> wrote:
> I do not need the artifacts required for compilation as they are provided 
> automatically by the runtime container, so I thought I could define "runtime" 
> dependencies and just resolve these.

There is actually a "provided" scope for this purpose.

> It would also be useful if the Ant dependencies task could also be prevented 
> from recursively resolving artifacts and only consider the POM provided.

I think that httpunit has a set of simple ant tasks if all you want is a 
simplified set of conditional gets. Complete disablement of transitivity wasn't 
something we'd planned to add, though it might make more sense as a switch on 
the ant task than in Maven itself.

Cheers,
Brett

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


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

Reply via email to