eclipse-ee4j / jaxb-ri

Jaxb RI
https://eclipse-ee4j.github.io/jaxb-ri/
BSD 3-Clause "New" or "Revised" License
204 stars 111 forks source link

XJC: cannot use non-XML catalog files #1503

Open raphw opened 3 years ago

raphw commented 3 years ago

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.

lukasj commented 3 years ago

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

laurentschoelens commented 1 year ago

@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 commented 1 year ago

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

raphw commented 1 year ago

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

laurentschoelens commented 1 year ago

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