Give this a try:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>${basedir}/src/webapp/web.xml</webXml>
</configuration>
</plugin>
Wayne
On 4/11/06, Gareth Western <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm playing around with an old project in Maven, trying to see how to
> upgrade our current build scripts. Unfortunately we do not use the
> recommended directory structures, therefore I've specified an alternate
> sourceDirectory (<sourceDirectory>src</sourceDirectory>) and outputDirectory
> (<outputDirectory>classes</outputDirectory>) in the project's POM. This
> particular artifact is a WAR, therefore it needs to include the web.xml from
> a directory named "webapp" which is located in the same directory as the
> "src" directory. How do I specify this in the POM? Is it a <resource>?
>
> Thanks,
>
> Gareth
>
>