How to tell Idea not to include persistence.xml in the war file? Follow Thai Dang Vu Created October 27, 2008 20:50 I work with an ear application which has ejb, jpa and web facets. My persistence.xml is in META-INF which is in the source directory which is included in the ejb. Somehow Idea puts the persistence.xml in the war file also. How can I avoid that?