Re: need a dependency with multiple scopes

2011-10-18 Thread Ryan Connolly
Simply use only provided scope as it will be available to your tests as well. On Oct 18, 2011 6:28 AM, "mickael leduque" wrote: > Hello, > > I need to have the same dependency with two different scopes : test and > provided. > The scope mustn't be compile, of course. > > Now, if I try to repeat t

Re: need a dependency with multiple scopes

2011-10-18 Thread Stephen Connolly
On 18 October 2011 11:20, mickael leduque wrote: > Hello, > > I need to have the same dependency with two different scopes : test and > provided. http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope > provided > This is much like compile, but ind

need a dependency with multiple scopes

2011-10-18 Thread mickael leduque
Hello, I need to have the same dependency with two different scopes : test and provided. The scope mustn't be compile, of course. Now, if I try to repeat the dependency declaration twice with different scope, maven says : [WARNING] Some problems were encountered while building the effective mode