How to exclude pom.xml from Maven generated war?

Viewed 16953

Using Maven war plugin, I generate WAR which includes following directory:

META-INF
-- maven
   -- com.abc.def
      -- myServlet
         -- pom.xml
         -- pom.properties

In release, I want to exclude this maven directory. How can I do that?

I tried latest maven-war-plugin (2.1-beta-1), it has configuration "packagingExcludes", but it doesn't work as I wish.

Any suggestions?

4 Answers
Related