• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error assembling WAR: webxml attribute is required

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for posting back with your solution!
 
Brian Babbage
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic