I'm having some trouble with the scope Optional and the plugin maven dependency 
plugin.

I'm having a dependency to an artefact which scope is <scope>optional</scope>. 
I had to choose this scope because I can't see any other scope that was doing 
what I wanted : a dependency that I absolutely need during generation sources, 
compilation and test phases, but that I don't need (and don't want) at runtime, 
and I don't think I want them through transitive dependency.

I thought that with maven dependency plugin (goal : copy-dependency) I could 
include only runtime dependencies but this one is coming too, so I tried with 
exclude optional, and it was throwing an error that says that he doesn't 
understand what scope is optional.

What should I do? Perhaps I m using a wrong scope?


Tomas Darbois
Edifixio Grenoble - Projet ScorWare
04 76 29 89 27
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>

Reply via email to