Open raphw opened 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...
@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
This is the repository I mentionned https://github.com/highsource/jaxb-tools
Certainly, but this remains a problem in the official plugin.
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
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.