| Summary: | [mojo] org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:generate support | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Ed Staub <edward.staub> | ||||
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> | ||||
| Status: | CLOSED NOT_ECLIPSE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bradley.beck, eric.dalquist, gonne, guus.der.kinderen, honnix.liang, hwellmann.de, ian, igor, jnord, joerg.buchberger, lafeuil, mail, matthew, mishail.mishail, pino.silvaggio, plalloni, projekte, schnake.michael, yannick.lazzari | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Ed Staub
Generated sources are no longer added to build path, as they were with m2eclipse. Created attachment 198606 [details]
Stand-alone example project to illustrate request
The maven-jaxb2-plugin generates java sources based on an XSD. In an Eclipse project, the maven integration should ensure that these generated sources:
* are added to the classpath, as well as,
* be exposed as a source folder.
Attached is a stand-alone example project that illustrates the usage of maven-jaxb2-plugin.
Note that this bug is quite similar to (but not a duplicate of) bug 350376, which relates to a different plugin that offers similar functionality. As neither plugins are currently supported by the M2E integration, users are severely limited in using JAXB-based functionality. *** Bug 350211 has been marked as a duplicate of this bug. *** It´s impossible to migrate to Indigo and the new version of m2eclipse unless this bug is solved. (In reply to comment #5) > It´s impossible to migrate to Indigo and the new version of m2eclipse unless > this bug is solved. Ditto for me... but a REASONABLE workaround would also do. It is still possible to right-click the folder, then use Build Path > Use as source folder When I do that, m2Eclipse says that it needs updating and removes it from the build path. (In reply to comment #7) > It is still possible to right-click the folder, then use Build Path > Use as > source folder m2e core development team is looking for help implementing support for various "not covered" maven plugins. If you are interested, wiki [1] provides pointers where to start and we'll be happy to answer questions on m2e-dev mailing list. To avoid duplicate effort, please assign this bugzilla item to yourself if you already work on corresponding m2e extension. [1] m2e extension development is documented in http://wiki.eclipse.org/M2E_Extension_Development I've started working on this extension, using the antlr extension as a starting point. I don't seem to have the permission to assign this issue to myself. What are the guidelines for package naming, copyright etc.? What is the best place to discuss m2e extension development in general? Not here I think... License and copyright is up to you and/or your employer. Package names, bundle ids, etc, are up to you, but you probably want to avoid namespaces that "belong" to somebody else, i.e. using com.ibm.blah, org.eclipse.foo is not a good idea. m2e-dev mailing list is the place to discuss m2e extension development. I've now implemented a basic JAXB extension which can be installed from the following update site: https://github.com/hwellmann/m2eclipse-extras/raw/master/p2/ The sources are in https://github.com/hwellmann/m2eclipse-extras (In reply to comment #12) > I've now implemented a basic JAXB extension which can be installed from the > following update site: > > https://github.com/hwellmann/m2eclipse-extras/raw/master/p2/ > > The sources are in > https://github.com/hwellmann/m2eclipse-extras Does this connector supports maven-jaxb22-plugin as well as maven-jaxb2-plugin? Added pull request for maven-jaxb22-plugin support patch at https://github.com/hwellmann/m2eclipse-extras/pull/1 Just wanted to chime in that Harald's plugin works great for me to get the jaxb2 generated code playing nice in eclipse. https://github.com/bitstrings P2 repo: http://bitstrings.github.com/m2e-connectors-p2/releases xmlbeans (xmlbeans, xmlbeans-test support) jaxb2 (jaxb20,jaxb21,jaxb22 support) btw, the bitstrings m2e-jaxb2-connector supports includes,excludes of both schema and bindings closing as per comment #16 |