java - Disable Maven warning message - "Selected war files include a WEB-INF/web.xml which will be ignored" -


when building war package using maven 2.1.1, warning message:

[warning] warning: selected war files include web-inf/web.xml ig nored (webxml attribute missing war task, or ignorewebxml attribute specifi ed 'true') 

is there way eliminate it? doesn't fail building process, not want see it.

i got rid of warning in maven 3.0.1 following build configuration (i believe perhaps web.xml added project other means, , should't packaged default):

<project>     ...     <build>         <plugins>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-war-plugin</artifactid>                 <version>2.6</version>                 <configuration>                     <packagingexcludes>web-inf/web.xml</packagingexcludes>                 </configuration>             </plugin>         </plugins>     </build>     ... </project> 

Comments