jaxb-ri icon indicating copy to clipboard operation
jaxb-ri copied to clipboard

XJC: cannot use non-XML catalog files

Open raphw opened this issue 4 years ago • 5 comments

When using a catalog in non-XML format, this fails as XJC always parses catalog files as if they were XML. This worked prior to XJC 2.3.0 but stopped working with that release.

Ideally, this could also be fixed in version 2.3.3 which is still in heavy use. Right now it is for example impossible to use the jaxb2-maven-plugin on Java 11 with a non-XML OASIS catalog file.

raphw avatar Jan 18 '21 21:01 raphw

see https://bugs.openjdk.java.net/browse/JDK-8231578 - there is not much we can do unless someone provides a PR workarounding this...

lukasj avatar Jan 18 '21 22:01 lukasj

@raphw are you using mojohaus plugin ? We found a way with Matt to solve an issue with catalogs handling in the former maven-jaxb2-plugin from highsource when uptading to xjc 2.3.4+ We have projects that works with xml and non-xml catalogs. You can look at it when 2.0.5 release will be out if you want

laurentschoelens avatar Aug 26 '23 05:08 laurentschoelens

This is the repository I mentionned https://github.com/highsource/jaxb-tools

laurentschoelens avatar Aug 26 '23 05:08 laurentschoelens

Certainly, but this remains a problem in the official plugin.

raphw avatar Aug 27 '23 21:08 raphw

Yes of course.I understand your point. The plugin I mentionned and the mojohaus one are the oldest maven plugins I know about generating java from xsd, that's why I mentionned the highsource one in the comment

laurentschoelens avatar Aug 28 '23 03:08 laurentschoelens