Closed orange-buffalo closed 6 years ago
We need to update the documentation to clarify this. Also, we would need an integration test - peering through our ITs it seems we have none doing this at the moment.
However - one thing is clear from running SchemaGen: It cannot cope with both Source files and Bytecode files in one compilation.
I've been trying in vain to get the schemagen plugin to process bytecode class files. Could you please elaborate on the statement "If you would like to operate on bytecode files only, the plugin configuration must remove the sourcePath from the paths where it looks for jaxb sources."
Either I get schemagen complaining about no sources or that it cannot parse the class file.
Many thanks in advance!
Has anyone been able to do this? I have the same exact issue as the OP. I know this is an old thread, but hoping to get some insight.
Thanks.
I just tested with raw schemagen commands to attempt to get it to synthesize schema from bytecode files - and while it creates a schema file, that file seems to be empty.
Hm.
Hi,
Does
schemagen
goal work with compiled classes as an input? As I understood from Advanced topic: SchemaGen source vs. bytecode arguments, it should be possible to use compiled classes. But my attempts to do so failed.I tried to specify the fully-qualified class name:
But plugin complains about misconfiguration:
Then I tried to use the
target/classes
folder:I can see in logs that classes are taken into consideration:
But then build fails with parser error:
Could you please shed some light on how and if plugin works with compiled bytecode?