Hi all!

I've got a question regarding dependencies. Let me first explain my
project structure.

- I've got project A which is a web application (WAR).
- A depends on project B which is of type JAR.
- B depends on hibernate which has an optional dependency on ehcache.

My idea is if A wants to use hibernate's second level cache ehcache A has
to define a dependency on ehcache. To use ehcache also for tests in B, B
defines ehcache as a dependency of scope "test".

Whenever I now run mvn test I get the following warings:

| Artifact net.sf.ehcache:ehcache:jar:1.2.3:test retains local scope 'test' 
overriding broader scope 'compile'
| given by a dependency. If this is not intended, modify or remove the local 
scope.

How can I get rid of this warning? Or am I doing something wrong?

tia,
- martin
-- 
Martin Höller                   | [EMAIL PROTECTED]
*x Software + Systeme           | http://www.xss.co.at/
Karmarschgasse 51/2/20          | Tel: +43-1-6060114-30
A-1100 Vienna, Austria          | Fax: +43-1-6060114-71

Attachment: pgpWfD6erIDV3.pgp
Description: PGP signature

Reply via email to