mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
103 stars 76 forks source link

Add possibility to use XSDs from Maven dependencies #264

Open N4zroth opened 1 year ago

N4zroth commented 1 year ago

Our project has a lot of intertwined dependencies that all use XSDs from each other. We're currently migrating from https://github.com/highsource/jaxb-tools/ to this plugin as we need JAXB 3.0 compatibility. The old plugin had the possibility to use a catalog with rewriteSystem to a URI starting with 'maven:' which was handled by https://github.com/highsource/jaxb-tools/blob/master/plugin-core/src/main/java/org/jvnet/jaxb/maven/resolver/tools/MavenCatalogResolver.java A similiar possibility would be nice to avoid unpacking a lot of XSDs and adding them to the XJC source folder.

laurentschoelens commented 10 months ago

@N4zroth Hi

We are currently working on jaxb3 jaxb4 jakarta support on initial repository.

This should come very soon but we have problems with catalog resolution with upgraded xjc and we try to solve it before jaxb2.

Could you test latest version of the plugins to see if it works well with your config (2.0.3 and 2.0.4 with bugfixes).

Regards

laurentschoelens commented 5 months ago

@N4zroth : jaxb-tools has been released with support of JAXB3 / JAXB4 😉