How to generate JAXB classes in Eclipse using additional JAXB plugins

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 06:36:15

问题


I am using Eclipse LUNA to generate JAXB Classes.

I am attempting to employ the jaxb2-annotate-plugin to add arbitrary annotations to my schema-derived classes.

My restrictions are that I cannot change the related xsd's and I don't want to amend the generated classes.

how do I activate jaxb2 when generating JAXB classes from within Eclipse?

All I need to do is perform the equivalent of using the @XmlType.namespace annotation.

I am right clicking on my xsd file, selecting Generate > JAXB Classes...

I cannot get past this error [ERROR] Unsupported binding namespace "annox.dev.java.net";.

来源:https://stackoverflow.com/questions/27817501/how-to-generate-jaxb-classes-in-eclipse-using-additional-jaxb-plugins

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!