maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MWAR-242) WAR Packaging creates mulitple web.xml's in WEB-INF directory
Date Thu, 18 Nov 2010 15:35:04 GMT

     [ http://jira.codehaus.org/browse/MWAR-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin Bentmann closed MWAR-242.
----------------------------------

    Resolution: Duplicate
      Assignee: Benjamin Bentmann

The generated project doesn't specify the plugin version, and as such is subject to the default
plugin version and any of its bugs.

> 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
>            Assignee: Benjamin Bentmann
>
> 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

        

Mime
View raw message