However, this page does not have any information on generating the metamodel with Maven. I found this blog which describes how to make it work: http://blog.gueck.com/2009/12/generating-jpa-20-criteria-can onical.html, but I am not sure if that would be the "official" recommended way. This approach uses the maven-processor-plugin, even though a cleaner way would probably be to just use the standard maven-comiler-plugin. But the problem with that is that annotation processing through the maven-compiler-plugin is rather buggy and basically does not work.
So, what would be the recommended way to generate the metamodel with Maven? It would be great if this information could be added to the wiki page above. Thanks,