From: Jan B. <ja...@mo...> - 2006-11-23 14:35:38
|
Sebastien, have you tried declaring the dependency in both places, but in the non-plugin dependencies, using <scope>provided</scope>? regards Jan Sebastien Pennec wrote: > Hello, > > I have a dependency that is declared in the plugin element of my pom.xml. > This dependency is used by Jetty in the jetty.xml file, hence declaring it in the > plugin element and not in the usual dependencies element. > > Now I also need to access this dependency from the classes of my webapp. > > If I declare the dependency in the plugin element, the jetty:run command runs well > but the compilation of my webapp fails because the dependency is not declared in the > dependencies element. If I declare the dependency in both plugin and dependencies > element, then the jetty:run command fails. > > Is there something that I do wrong? Should I declare my dependency in some other place? > > Thanks for your help, > > Sébastien |