mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
106 stars 77 forks source link

Schemagen with roo generated .aj files doesn't work correctly #28

Closed patrickhusi closed 8 years ago

patrickhusi commented 9 years ago

Hi everybody

I'm using a reversed database model with @RooDbManaged. The members are located in a aspectj file. Unfortunately schemagen will not find them.

How can I create a schema of classes with members located in a .aj file?

regards patrick

lennartj commented 9 years ago

The SchemaGen tool generates XSD files in two steps:

Hence, all bytecode files from which schema should be generated must be available to SchemaGen. I think that AspectJ must first be run to create bytecode, and that that bytecode must be included to generate the schema. Could you run schemagen from the command line and supply the results?

Also, .aj files cannot be used as the basis for generating XSD documentation annotations, so I would recommend to disable JavaDoc generation by setting the createJavaDocAnnotations property to false.