mklemm / jaxb-rich-contract-plugin

Implements some JAXB plugins to generate advanced contract scenarios from XSD
MIT License
67 stars 33 forks source link

Support for jaxb 3.0 #69

Closed ASunc closed 6 months ago

ASunc commented 2 years ago

Attempt to use fluent builder (ie. -Xfluent-builder) with xjc coming with jaxb 3.0.1 results in error:

"unrecognized parameter -Xfluent-builder".

Would be nice if these plugins were supported with 3.0 versions also.

nvakulenko commented 1 year ago

It is also actual for us. We try to migrate our project from Java EE to Jakarta EE and need to have java classes with jakarta.* annotations generated from XML. Do you have some plans to make the plugin compatible with Jakarta EE

ASunc commented 1 year ago

There is fork at https://github.com/aspan/jaxb2-rich-contract-plugin which works for jakarta.* namespace for me.

nvakulenko commented 1 year ago

Thank you, I'll try

laurentschoelens commented 7 months ago

@ASunc and @nvakulenko : did you manage to get this working with jaxb3 or jaxb4 ?

The maven-plugin used here in the example should be at least updated for jaxb3 and jaxb4 support : see home repository and migration guide to get the latest version 😁

mklemm commented 6 months ago

JAXB 4 support will be there in version 4.0.0, along with different plugin command line argument handling. 4.0.0 is currently in ALPHA stage and there isn't a binary release yet, but it will come soon.

mklemm commented 6 months ago

Fixed in Version 4.0.0