You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Steve Mitchell (JIRA)" <ji...@codehaus.org> on 2009/06/12 21:55:42 UTC

[jira] Issue Comment Edited: (MWAR-30) I can't build a war-file without a web.xml.

    [ http://jira.codehaus.org/browse/MWAR-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=180206#action_180206 ] 

Steve Mitchell edited comment on MWAR-30 at 6/12/09 2:55 PM:
-------------------------------------------------------------

Is this really fixed?  Even using 2.1-beta-1 I still get:

Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)

Is another parmameter needed to turn off "update mode?"  I am creating a partial WAR that will be exploded and merged with an existing WAR directory on a Tomcat  "appliance." I don't want to take any chance of overwriting the Web.xml file of the target dir.  I want to skip the manifest too, but didn't see any options to do that.

             <plugin>
			        <groupId>org.apache.maven.plugins</groupId>
			        <artifactId>maven-war-plugin</artifactId>
			        <version>2.1-beta-1</version>
			        <configuration>
			          <archive>
			            <addMavenDescriptor>false</addMavenDescriptor>  
			          </archive> 
					  <archiveClasses>true</archiveClasses>
					  <failonmissingwebxml>false</failonmissingwebxml>
					</configuration>			
				</plugin>

      was (Author: smitchell@byteworksinc.com):
    Is this really fixed?  Event using 2.1-beta-1 I still get:

Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)

Is another parmameter needed to turn off "update mode?"  I am creating a partial WAR that will be exploded and merged with an existing WAR directory on a Tomcat  "appliance." I don't want to take any chance of overwriting the Web.xml file of the target dir.  I want to skip the manifest too, but didn't see any options to do that.

             <plugin>
			        <groupId>org.apache.maven.plugins</groupId>
			        <artifactId>maven-war-plugin</artifactId>
			        <version>2.1-beta-1</version>
			        <configuration>
			          <archive>
			            <addMavenDescriptor>false</addMavenDescriptor>  
			          </archive> 
					  <archiveClasses>true</archiveClasses>
					  <failonmissingwebxml>false</failonmissingwebxml>
					</configuration>			
				</plugin>
  
> I can't build a war-file without a web.xml.
> -------------------------------------------
>
>                 Key: MWAR-30
>                 URL: http://jira.codehaus.org/browse/MWAR-30
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>            Reporter: Christoffer Hammarström
>            Assignee: Stephane Nicoll
>             Fix For: 2.1-alpha-2
>
>         Attachments: MWAR-30.patch
>
>
> I have a small webapp with a small number of jsps, to overlay on a larger webapp.
> The larger webapp already has a web.xml and the small one doesn't need one.
> I can't build a war of the small webapp, because the war-plugin requires a web.xml.
> I realise that a war-file without a web.xml might not be considered a comple war-file, and i only need it to unzip on top of the larger webapp.
> Maybe packaging the small webapp in a zip would be better?

-- 
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