It appears this was fixed in version 2.2 of m-w-p, try updating.

http://jira.codehaus.org/browse/MWAR-235

Cheers,
John

2010/10/28 Marcin Trościańczyk <mtros...@gmail.com>

> Hi,
>
> I have a problem with maven-war-plugin version 2.1. Below, I paste build
> section fragment from my pom.xml:
>
> <build>
> <plugins>
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-compiler-plugin</artifactId>
>        <configuration>
>          <!-- http://maven.apache.org/plugins/maven-compiler-plugin/ -->
>          <source>1.6</source>
>          <target>1.6</target>
>        </configuration>
>      </plugin>
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-war-plugin</artifactId>
>        <version>2.1</version>
>      </plugin>
> </plugins>
> </build>
>
> Unfotunetly, generated artifact (war) contains two web.xml. When I use
> maven-war-plugin version 2.0.1 all works fine (generated war archive
> contains one web.xml). How can I solve this problem.
>
> Cheers,
> Marcin
>

Reply via email to