[ http://jira.codehaus.org/browse/MWAR-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann moved MNG-4901 to MWAR-242: --------------------------------------------- Complexity: (was: Intermediate) Component/s: (was: Deployment) Affects Version/s: (was: 3.0) 2.1 Key: MWAR-242 (was: MNG-4901) Project: Maven 2.x WAR Plugin (was: Maven 2 & 3) > WAR Packaging creates mulitple web.xml's in WEB-INF directory > ------------------------------------------------------------- > > Key: MWAR-242 > URL: http://jira.codehaus.org/browse/MWAR-242 > Project: Maven 2.x WAR Plugin > Issue Type: Bug > Affects Versions: 2.1 > Environment: Java version: 1.6.0_18 > Java home: C:...\jdk6_18\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > Reporter: Steve Schmidt > > Here are the steps to reproduce issue; the first example creates a proper WAR > with 1 /WEB-INF/web.xml. The second scenario creates 2 web.xml's - or at > least 2 entries in the WAR catalog. The project WAR will then not deploy. > ---------------------------------------------------------------- > From a Windows XP command window: > set M2_HOME=C:\apache-maven\apache-maven-2.2.1 > set PATH=%PATH%;%M2_HOME%\bin > >mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp > >-DarchetypeArtifactId=maven-archetype-webapp > >mvn -version > Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) > Java version: 1.6.0_18 > Java home: C:...\jdk6_18\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > >mvn package > 1 web.xml > ---------------------------------------------------------------- > To reproduce error > set M2_HOME=C:\apache-maven\apache-maven-3.0 > set PATH=%PATH%;%M2_HOME%\bin > >mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp > >-DarchetypeArtifactId=maven-archetype-webapp > >mvn -version > Apache Maven 3.0 (r1004208; 2010-10-04 07:50:56-0400) > Java version: 1.6.0_18 > Java home: C:...\jdk6_18\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > >mvn package > 2 web.xml's in /WEB-INF WAR. -- 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