This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The JAXB wizard does not support to add plugins to JAXB. It would be great to be able to add plugins easily to the JAXB wizard in the next NetBeans release.
vieiro, Could you please elaborate the enhancement request?
Hi, Sorry not to be clear enough in the first go. Let me know if I'm not clear now (I'm not very good with english :-/). It would be great to enhance the existing JAXB wizard [1] to allow the user to include additional JAXB Plugins[2], such those in JAXB Commons [3]. Say, for instance, that the user wants to use the "Fluent API" JAXB plugin [4]. The user could download the jar file for this plugin from [4] and then include it somehow in the JAXBWizard (using a text field and a "browse" button similar to those existing for the catalog file, for instance). The user should also specify an additional "-Xfluent-api" command line argument. That way the JAXB Wizard could use those settings to run the ant task, and generate source code using that plugin. [1] http://wiki.netbeans.org/JAXBWizard [2] https://jaxb.dev.java.net/plugin.html [3] https://jaxb2-commons.dev.java.net/ [4] https://jaxb2-commons.dev.java.net/fluent-api/
Thanks vieiro for clarifying. I feel enhancement requested definitely adds value to the Netbeans user. We will plan and work on this.
Glad to hear this is accepted. The fact is that there're very interesting plugins out there. I've learned today about this one: https://jaxbvalidation.dev.java.net/using.html That allows one to validate jaxb *objects* against the schema on the fly!
*** Issue 175441 has been marked as a duplicate of this issue. ***
Here are the steps I am thinking of user need to take for this to work. - User created Java library, adding XJC pluggin and dependent Jars. - In the JAXB Wizard will allow user to add Java library(ies) to a binding. - In the JAXB Wizard will also allow user to add on or more free form XJC options like "-Xfluent-api", "-Xinject-code" Let us know if above works or if I am missing anything.
That would be perfect, I think!!