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 <[email protected]> wrote:

> On Thu, Jul 1, 2010 at 12:19 PM, CassUser CassUser <[email protected]>
> 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
> that?
>
> 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?
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to