Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mojo encountered an error while executing:

 
Patricia Samuel
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Patricia Samuel
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Peter . Your solution worked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic