From: Jody G. <jga...@re...> - 2008-05-30 17:24:26
|
Martin Desruisseaux wrote: > Jody Garnett a écrit : >> I think I added the jaxb dependency as "provided" - can you confirm? >> That would mean they are not required for runtime correct... > > Yes, but the problem is elswhere. > > In "dummy-jaxb" every annotations were declared as @Retention(SOURCE). > Consequently they were wiped from the compiled class files. > In the real JAXB every annotations are declared as > @Retention(RUNTIME). Consequently they are present in the compiled > class files. > > This is independant from the maven scope. Now JAXB dependencies > appears in the compiled class files. Trying to run metadata without > JAXB is likely to thrown NoClassDefError (I have not tested however). Okay thanks for the clarification Martin; I was not aware of this side-effect of using the jaxb jars. How can we test about the NoClassDefError? Well I can run uDig trunk using Java 5 and see if it still works; I don't have jaxb on my classpath ... Jody |