I get this error when trying to compile Vaadin WAR:
Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project testvaadin-web: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
I know this error means that maven cannot find my web.xml, but the Vaadin Book says that web.xml is not required when using Servlet API 3.0 and Annotation @WebServlet in your user interface.
I collect my widgets in a separate profile (according to this guide), and it compiles fine when I rnu this profile. However, when I compile only a web project, I get the above error.
What gives?
Am I somehow redefining maven behavior? Vaadin did not even create the WEB-INF directory. I think I could create a WEB-INF folder and save the "ghost" web.xml there to keep maven happy, but that doesn't seem right.
Did I miss something?
Does anyone know a good solution for this?
maven maven-plugin vaadin vaadin7
Roger Aug 12 '13 at 12:07 on 2013-08-12 12:07
source share