Closed jinahya closed 6 years ago
Do we need to rename the generated episode file?
No, I think.
The pathname should be remained as META-INF/sun-jaxb.episode
.
We need some mechanics to enable renaming or move the episode file within the generated JAR. Otherwise, we make it impossible to perform 2 JAXB compilations and stash both results in the final JAR.
This scenario is rather common when having more than 1 version of an XSD being JAXB compiled and stashed in a compound JAR. In this scenario, only one episode file would be stashed within the resulting JAR. (Which would likely cause loads of problems).
Renaming slated for 2.3.1 release.
For each JAXB compilation, schemagen will create a new schema file.
From a usability perspective we would like to name the file in a way which would its origin JAXB compilation apparent/obvious. There are 2 ways to achieve this:
The entry(
META-INF/sun-jaxb.episode
) which is generated intarget/generated-sources/jaxb
is not included in final jar.I checked the source code and it seems that
XjcMojo#addResource(Resource)
is not called, apparently.I suggest, additionally, to usetarget/generated-resources/
if it's possible.