Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Maven Error assembling WAR
Maven Error assembling WAR [message #637046] Wed, 03 November 2010 22:49 Go to next message
john  is currently offline john Friend
Messages: 4
Registered: November 2010
Junior Member
i got the follwoign error when i tried i run the following command line:-
>>mvn clean install

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

so i have maually created the web.xml file on the required directory, and i rerun the command line again and every thig went succsfully.
So did i do the right thing?
and how i can let the maven it self to create the web.xml file?
Re: Maven Error assembling WAR [message #641252 is a reply to message #637046] Wed, 24 November 2010 16:18 Go to previous message
szymon is currently offline szymonFriend
Messages: 1
Registered: November 2010
Junior Member
from here

This problem is solved by this way -- just add to your pom.xml following plugin with the WebXml attribute (here u should set path to your web.xml):

<  build  >
  < plugins  >
  < plugin  >
  < groupId  >org.apache.maven.plugins<  /groupId  >
  < artifactId  >maven-war-plugin<  /artifactId
  < configuration  >
  < webXml  >WebContent/WEB-INF/web.xml<  /webXml >
  < /configuration  >
  < /plugin  >
  < /plugins  >
  < finalName  >u-app<  /finalName  >
 < /build  >
Previous Topic:Content Assist displayed as tree in separate view
Next Topic:Reading Command Line Parameters in RCP App
Goto Forum:

Current Time: Mon Jan 22 16:18:58 GMT 2018

Powered by FUDForum. Page generated in 0.01686 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software