Hi all
I am using Maven 2.0 plug-in with eclipse(mergere). How do I go about
the Project structue.In the case of a web application
Project
|-- src
|--target
|--Classes
|-- webroot
|--Meta-inf
|--Web-Inf
|-- ex.jsp
|--pom.xml
I place all the java files under src and the jsp files along with
web-inf.
When I ask it to package it says
FATAL ERROR: Error executing Maven for a project [ERROR] project-execute
: com.cts.webapp:WebProject:war:0.0.1 (
task-segment: [package] )
Diagnosis: Error assembling WAR: Deployment descriptor:
D:\WorkSpace\WebProject\target\WebProject-0.0.1\WEB-INF\web.xml does not
exist.
FATAL ERROR: Error executing Maven for a project
org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling
WAR: Deployment descriptor:
D:\WorkSpace\WebProject\target\WebProject-0.0.1\WEB-INF\web.xml does not
exist.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:140)
at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
at
org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
assembling WAR: Deployment descriptor:
D:\WorkSpace\WebProject\target\WebProject-0.0.1\WEB-INF\web.xml does not
exist.
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:143)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)
... 8 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: Deployment
descriptor:
D:\WorkSpace\WebProject\target\WebProject-0.0.1\WEB-INF\web.xml does not
exist.
at
org.codehaus.plexus.archiver.war.WarArchiver.setWebxml(WarArchiver.java:
82)
at
org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:174)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:127)
... 10 more
Does maven expect me to manually create project structure?
Please help me with fixing this issue
Thanks and Regards
Nithya.S
This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing
or copying of this email or any action taken in reliance on this e-mail is
strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
RE: Issues while creating war using mergere
Srinivasan, Nithya \(Cognizant\) Wed, 26 Jul 2006 22:04:50 -0700
