maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 冯仁君 <frj1...@126.com>
Subject Re: duplicate web.xml files in a .war file
Date Sat, 06 Nov 2010 11:54:42 GMT
if u are packaging a standard war file, u can just delete the war-m-p from 
the pom.i did this.

-----Original Message----- 
From: Dennis Lundberg
Sent: Friday, November 05, 2010 3:46 AM
To: Maven Users List
Subject: Re: duplicate web.xml files in a .war file

On 2010-11-04 17:50, Andrew Westberg wrote:
> I updated to the latest maven 3.  I noticed that my webapp projects now
> contain two copies of web.xml.  Is anyone else seeing this issue?

To avoid this you should always declare which version of plugins you
want in your own POM. If you do not specify any version Maven will
decide that for you. And that can differ between versions of Maven.

>
> I have a very basic pom.xml configuration:
> http://pastie.org/1272557
>
> screenshot of .war containing dup web.xml files:
> http://www.flickr.com/photos/14210327@N05/5146351490/
>
> Thanks,
> Andrew
>


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message