I'm using a build task to drop .episodes from dependencies into build/generated-resources/episodes (and the source XSDs into src/main/resources/schema/), and this works fine (classes from the dependency are reused)... until I add an .xjb. Doing so causes the classes to be regenerated.
...and it works as expected until I try to add an xjb (because I have numeric enums).
I have figured out a workaround - import into a different build folder, then manually add the episodes as an arg to the XJC task (different build folder, because otherwise it complains about it "being attached to the wrong spot").
I'm using a build task to drop
.episode
s from dependencies intobuild/generated-resources/episodes
(and the source XSDs intosrc/main/resources/schema/
), and this works fine (classes from the dependency are reused)... until I add an.xjb
. Doing so causes the classes to be regenerated.The build file I'm working with looks like this:
...and it works as expected until I try to add an
xjb
(because I have numeric enums).I have figured out a workaround - import into a different build folder, then manually add the episodes as an arg to the XJC task (different build folder, because otherwise it complains about it "being attached to the wrong spot").