atom feed5 messages in org.apache.maven.usersRe: WAR packaging question
FromSent OnAttachments
CassUser CassUserJun 30, 2010 1:48 pm 
CONSULTANT Composants-Chaaba (93)Jul 1, 2010 12:50 am 
CassUser CassUserJul 1, 2010 9:19 am 
Wendy SmoakJul 1, 2010 9:29 am 
CassUser CassUserJul 1, 2010 9:52 am 
Subject:Re: WAR packaging question
From:CassUser CassUser (
Date:Jul 1, 2010 9:52:41 am

Thanks for the response. I was looking at the wrong pom file, sorry.

Here is what i have as the plugin:

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webResources> <resource> <directory>src/main/resources</directory> <excludes> <exclude>resource2.xml</exclude> </excludes> </resource> </webResources> </configuration> </plugin>

When building with the above the resource1.xml is placed in the root, else it doesn't. How can i exclude resource2.xml from classes without resource1.xml being placed in root?

On Thu, Jul 1, 2010 at 9:29 AM, Wendy Smoak <> wrote:

On Thu, Jul 1, 2010 at 12:19 PM, CassUser CassUser <> wrote:

resource1.xml is in src/main/resources. The resulting WAR looks like

this: ...

I don't want resource1.xml again at the top level. Any way to remove


Was that file ever somewhere else in the project?

Have you run 'mvn clean' recently to make sure nothing in target is left over from a previous execution?