This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Project A,B and C which depends on A and B. In module A there are no JPA mappings. In module B and C there are annotation-based JPA mappings. In module C there are also xml-based mappings for classes in project A. The module C contains standard persistence.xml and orm.xml files which list out all xml-based mappings and entity classes from every module.
I use the following maven configuration to generate the metamodel:
What it turns out is that the metamodel is generated but only for the classes mapped by xml mappings or those mapped by annotation-based mapping but only in module C. No metamodel is generated for classes in module B. Except for that everything works fine (tables are generated etc.) for all classes. So there's something wrong only with metamodel generation.