jaxb2-maven-plugin has the <xsdPathWithinArtifact>
option. Is there an equivalent in maven-jaxb2-plugin? What is the recommended way to include the schema file in the produced jar? I'm currently using Maven's native <resources>
.
Asked
Active
Viewed 134 times
0

Balz Guenat
- 1,552
- 2
- 15
- 35
1 Answers
1
Disclaimer: I'm the author of the maven-jaxb2-plugin.
No, there is no such option in maven-jaxb2-plugin and there will not be. Managing resources is not the concern of maven-jaxb2-plugin, there are other Maven plugins for that.
The recommended way is exactly what you're doing - place your schemas under src/main/resources
and they will be packaged in the resulting JAR.

lexicore
- 42,748
- 17
- 132
- 221
-
Thanks! Since you're the author, do you know how I would combine modular schema compilation with inline customization? I wrote up the issue I'm having here: https://stackoverflow.com/questions/56686096/xjc-fails-on-imported-schema-when-using-episodes-due-to-property-customization. (I see that you actually edited a related question years ago.) – Balz Guenat Jun 21 '19 at 07:53