[ https://jira.codehaus.org/browse/MWAR-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=271460#comment-271460 ]
Alex Pogrebnyak edited comment on MWAR-248 at 6/25/11 7:24 PM: --------------------------------------------------------------- Adding web.xml to webSourceExcludes and specifying webXml explicitly still results in the same warning {code:title=pom.xml|borderStyle=solid} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> <configuration> <warSourceExcludes>**/WEB-INF/web.xml</warSourceExcludes> <webXml>${basedir}/src/main/webapp/WEB-INF/web.xml</webXml> </configuration> </plugin> {code} was (Author: alex-pub.codeh...@reflexion.net): Adding web.xml to webSourceExcludes and specifying webXml explicitly still results in the same warning <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> <configuration> <warSourceExcludes>**/WEB-INF/web.xml</warSourceExcludes> <webXml>${basedir}/src/main/webapp/WEB-INF/web.xml</webXml> </configuration> </plugin> > Plugin warns about missing webxml attribute even if one exists > -------------------------------------------------------------- > > Key: MWAR-248 > URL: https://jira.codehaus.org/browse/MWAR-248 > Project: Maven 2.x WAR Plugin > Issue Type: Bug > Affects Versions: 2.1.1 > Reporter: Gili > Attachments: debug.log > > > I am attaching a debug log that clearly demonstrates how the WAR plugin warns > about a missing webxml attribute which exists. I am attempting to let the > plugin know that the web.xml file it is encountering is the same one > specified by the webxml attribute. > My pom file contains: > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>2.1.1</version> > <configuration> > <failOnMissingWebXml>true</failOnMissingWebXml> > <webXml>src/main/webapp/WEB-INF/web.xml</webXml> > </configuration> > </plugin> -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira