wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Mojo encountered an error while executing: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Mojo encountered an error while executing:" Watch "Mojo encountered an error while executing:" New topic
Author

Mojo encountered an error while executing:

Patricia Samuel
Ranch Hand

Joined: Sep 12, 2007
Posts: 300
mojo encountered an error while executing:
Group-Id: org.apache.maven.plugins
Artifact-Id: maven-war-plugin
Version: 2.1-alpha-1
Mojo: war
brought in via: packaging: war

While building project:
Group-Id: home
Artifact-Id: struts
Version: 0.01
From file: \eclipse\workspace\struts\pom.xml
Reason: Error assembling WAR: Deployment descriptor: workspace\struts\target\struts-0.01\WEB-INF\web.xml does not exist.

and this my pom file

I've just setup a test project to learn struts2.But i am getting above error while installing my (Install -Maven Build) project.

Can anyone tell me what is wrong with this one?
My project hierarchy is - prjname/src/WEB-INF/web.xml

Thanks a lot
[ September 19, 2008: Message edited by: Patricia Samuel ]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Based on the file names given in the error message, your web.xml file should be located at:

\eclipse\workspace\struts\src\main\webapp\WEB-INF\web.xml


JBoss In Action
Patricia Samuel
Ranch Hand

Joined: Sep 12, 2007
Posts: 300
Thanks a lot Peter . Your solution worked.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mojo encountered an error while executing:
 
Similar Threads
Google Web Toolkit (GWT): Practice
Maven builds from wrong source
How use sonar for an existing project in eclipse ?
Maven dependencies
Exception starting filter struts2