I have project that is effectively a war but is also being packaged as a ear for deployment purposes. The only value add the ear is providing is a specifying the context-root of the war in application.xml. The application.xml is included in src/main/application/META-INF/application.xml. It is correctly being included in the ear file but it is also being included int the war file under WEB-INF/classes/META-INF/classes. It doesn’t really hurt anything but for clarity would like to exclude. Can’t seem to figure out the right path/name to exclude this file from the war.
For project purposes I can’t really break this out into separate projects.