users@jersey.java.net

Re: [Jersey] Build failing for maven-wadl-plugin

From: Martin Grotzke <martin.grotzke_at_freiheit.com>
Date: Thu, 24 Jul 2008 09:47:17 +0200

On Wed, 2008-07-23 at 12:20 +0200, Paul Sandoz wrote:
>
> Martin Grotzke wrote:
> > On Tue, 2008-07-22 at 18:05 +0200, Paul Sandoz wrote:
> >> Martin Grotzke wrote:
> >>> Hi Paul,
> >>>
> >>>> [INFO] Compilation failure
> >>>> http://kohsuke.sfbay/hudson/job/Jersey/ws/jersey/contribs/maven-wadl-plugin/src/main/java/com/sun/jersey/wadl/GenerateWadlMojo.java :[54,22] package javax.xml.bind does not exist
> >>> it seems that the build is done with a jdk5, whereas I'm on jdk6.
> >> Yes, i just tried it. I presume it is because there is no explicit JAXB
> >> dependency specified when using SE 5?
> > I fixed this by adding a profile for jdk 1.5, so finally it should
> > build :)
> >
>
> Thanks. I needed to change the dependency from runtime to compile and
> after that it worked OK.
What is your setup (os, jvm, maven version etc.?). What was the error
you saw?

For me it worked, so I wonder why it did not work for you...

I changed the dependency to runtime because of mvn projects using the
plugin (though I'm not sure if this is the best/right way).

Cheers,
Martin


>
> Paul.