wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Error assembling WAR: webxml attribute is required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Error assembling WAR: webxml attribute is required" Watch "Error assembling WAR: webxml attribute is required" New topic
Author

Error assembling WAR: webxml attribute is required

Brian Babbage
Greenhorn

Joined: Aug 24, 2011
Posts: 8
Hi all,
I'm converting an ant build to a maven build using eclipse (helios) and jdk 1.6.21. I've searched this error and the results are repleat with only one 'fix' to it which is to make sure the web.xml is in the /src/main/webapp/WEB-INF folder. The apps web.xml is there and I've even added a specific webxml tag to my pom to no avail. I'm really banging my head against a wall with this error and any insight would be appreciated


pom snippet:


Directory Structure:
C:\HeliosWorkspace\Projects\WS_MavenConversion\myApp\src\main\webapp\WEB-INF\web.xml

Command line build using "mvn clean package -Plocal" fails though the same options in eclipse build configurations does complete the package with a console warning. I've been tweeking my pom.xml, web.xml and even tried directory structure but just can't get this error/warning to clear...


For all things there is a first time
Brian Babbage
Greenhorn

Joined: Aug 24, 2011
Posts: 8
I've 'solved' this issue and I'm posting for anyone else who may have been seeing the same thing.

As it turns out I wasn't doing anything incorrectly there was a wiring issue somewhere with maven.

I deleted my entire local .m2 repository and reloaded dependencies... viola! Error cleared.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60780
    
  65

Thanks for posting back with your solution!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Brian Babbage
Greenhorn

Joined: Aug 24, 2011
Posts: 8
very welcome mate
just remember to copy your
toolchains.xml before you do it or you'll have to recreate that all over again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error assembling WAR: webxml attribute is required
 
Similar Threads
How to get Maven to include "persistence.xml" into a web app??
Need Help On A Maven WAR Build Issue
Ear Building in Maven
Filtering problem using maven-read-properties plugin in pom.xml file
maven war package corrupts jar import