Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error assembling WAR: webxml attribute is required

 
Brian Babbage
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Brian Babbage
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for posting back with your solution!
 
Brian Babbage
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
very welcome mate
just remember to copy your
toolchains.xml before you do it or you'll have to recreate that all over again
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic