I'd like to exclude web.xml from WAR packaging and tried
<packagingExcludes>WEB-INF/*.xml</packagingExcludes>
and
<webResources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.xml</exclude>
</excludes>
</resource>
</webResources>
but Maven seems to complain:
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
assembling WAR: Deployment descriptor:
/Users/arungupta/samples/running/helloworld/target/helloworld-1.0-SNAPSHOT/WEB-INF/web.xml
does not exist.
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:146)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
Any idea on how can I exclude "web.xml" from WAR packaging ?
-Arun
--
Need Application Server ? - Download glassfish.org
Blog: http://blogs.sun.com/arungupta
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]