[ http://jira.codehaus.org/browse/MWAR-222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231772#action_231772 ]
Dennis Lundberg commented on MWAR-222: -------------------------------------- Can you please add a sample project that we can use to test this issue? > War overlay copy warSourceDirectory of the source in the dependent > WEB-INF/classes > ----------------------------------------------------------------------------------- > > Key: MWAR-222 > URL: http://jira.codehaus.org/browse/MWAR-222 > Project: Maven 2.x WAR Plugin > Issue Type: Bug > Affects Versions: 2.1-beta-1 > Reporter: Matteo Turra > > I have a webCommon project sharing its content with webA, webB project via > overlay mechanism. > The resulting war in webA and webB project have webCommon webapps (web is my > warSourceDirectory) content in the root and in WEB-INF/classes too! > Why? Is this the right behavior? How to avoid it? > webCommon pom.xml is like that: > <packaging>war</packaging> > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>2.1-beta-1</version> > <configuration> > <warName>esse3</warName> > > <warSourceDirectory>web</warSourceDirectory> > > <failOnMissingWebXml>false</failOnMissingWebXml> > </configuration> > </plugin> > </plugins> > </build> > webX pom is like this: > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>2.1-beta-1</version> > <configuration> > <warName>esse3</warName> > <failOnMissingWebXml>true</failOnMissingWebXml> > <warSourceDirectory>web</warSourceDirectory> > <overlays> > <overlay> > <groupId>it.kion.esse3</groupId> > <artifactId>webCommon</artifactId> > </overlay> > </overlays> > </configuration> > </plugin> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira