On Friday 07 January 2011 4:03:54 am Bruno Dusausoy wrote:
> Hi,
> 
> I have a small problem regarding JAXB 2.0 compatibility when using
> cxf-codegen-plugin (whatever version I use, I get the same problem).
> It seems that, even if I put the
> <extraarg>-xjc-Xsetters,-target,2.0</extraarg> option, it still
> generates @XmlSeeAlso annotation for *only* one class, the principal
> interface (NisseLoopbaan interface, coming from NisseLoopbaan_V1.wsdl
> in this case).
> 
> Here's the link to the snippet I use in my POM :
> http://debian.pastebin.com/9Xy7JgiD
> 
> Any thoughts ?

 The class where the @XmlSeeAlso on it is being generated by CXF, not JAXB/XJC 
and thus it would require changes to CXF to support that.  However, CXF hasn't 
supported JAXB 2.0 in a very long time. 

Is there a reason you cannot use a more up to date version of JAXB?   JAXB 2.0 
has a lot of bugs in it that haven't been fixed (and likely not fixes to 
come).


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to