| 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: 56191
|
|
Thanks for posting back with your solution!
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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
|
 |
 |
|
|
subject: Error assembling WAR: webxml attribute is required
|
|
|