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 18:49 Go to next message
john  is currently offline john
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 11:18 Go to previous message
szymon is currently offline szymon
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:View stack not correctly painted for a newly opened perspective
Next Topic:visible tabs
Goto Forum:
  


Current Time: Fri Aug 29 10:26:28 EDT 2014

Powered by FUDForum. Page generated in 0.01696 seconds