Just another thought on this. If you really want to check for duplicate mapping IDs, what about creating an Arquillian test which packages your complete application to a WAR, deploys it and than checks if the container boots correctly. This way you have a simple JUnit test that checks if your application starts up correctly. Wouldn’t this fit your needs? This would even catch more errors like ambiguous dependencies of CDI beans etc.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.