Error Assembling War Deployment Descriptor Web.xml Does Not Exist
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions
Error Assembling War Webxml Attribute Is Required (or Pre-existing Web-inf/web.xml If Executing
you might have Meta Discuss the workings and policies of failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project this site About Us Learn more about Stack Overflow the company Business Learn more about hiring failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is
Error Assembling War Webxml Attribute Is Required Spring Boot
a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Maven error while building WAR package (web.xml missing..?) up vote 9 down vote favorite 2 While executing mvn install, I'm getting following error: Error assembling WAR: webxml attribute is required (or pre-existing
Maven War Plugin No Web Xml
WEB-INF/web.xml if executing in update mode) My web application structure tree is like that: my-app |-- pom.xml |-- src |-- ... |-- WebContent |-- ... |-- META-INF |-- WEB-INF |-- classes |-- ... |-- lib |-- **web.xml** My POM file looks like that:
messages Andrew Madu Reply | Threaded Open this post in threaded maven web.xml location view ♦ ♦ | Report Content as
Maven Web.xml Example
Inappropriate ♦ ♦ Build Error - Error assembling WAR: Deployment descriptor: Hi, so my failonmissingwebxml example pom.xml reads as follows: [code]
Unanswered Topics Wrox Programmer Forums > Java > Java Open Source > Spring Error assembling WAR: Deployment descriptor http://p2p.wrox.com/spring/66879-error-assembling-war-deployment-descriptor.html User Name Remember Me? Password Reminder Password Register Register | FAQ | Members List | Calendar | Today's Posts | Search Search Forums Show Threads Show http://grokbase.com/t/maven/users/055gag400x/m2-exception-assembling-war Posts Advanced Search Find All Thanked Posts Go to Page... Welcome to the p2p.wrox.com Forums. You are currently viewing the Spring section of the Wrox Programmer to error assembling Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed error assembling war to guests. Registration is fast, simple and absolutely free . Thread Tools Display Modes #1 (permalink) March 25th, 2008, 10:16 AM hendragd Registered User Join Date: Mar 2008 Location: , , . Posts: 1 Thanks: 0 Thanked 0 Times in 0 Posts Error assembling WAR: Deployment descriptor Dear all, I have problem regarding with create 'WAR' file. From this book (beginning spring 2 framework) at chapter 4 page 108, i follow the instruction and go to wrox-pix-web directory and type command 'mvn package', but i've get this error : [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[pixweb] in [C:\Wrox\wrox-pix-web\target\pixweb-0.0.1] [INFO] Processing war project [INFO] Webapp assembled in[540 msecs] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error assembling WAR: Deployment descriptor: C:\Wrox\wrox-pix-web\target\pixweb-0.0.1\WEB-INF\web.xml does not exist. [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionExcep tion: Error assembling WAR: Deployment descriptor: C:\Wrox\wrox-pix-web\target\pixweb-0.0.1\WEB-INF\web.xml does not exist. at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalWithLifecycle(DefaultLifecycleExecuto r.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal
with war packaging.The directory structure i use is the "normal" one withsrc - webapp- WEB-INFWhen i run m2 install from the parente module i get the following exception:[ERROR] Cause:org.apache.maven.plugin.MojoExecutionException: Error assembling WARat org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:217)atorg.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)atorg.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:169)atorg.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90)atorg.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253)at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)atorg.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)atorg.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)at org.codehaus.classworlds.Launcher.main(Launcher.java:363)Caused by: org.codehaus.plexus.archiver.ArchiverException: Deploymentdescriptor:C:\java\projectos\Digitalis\SIGES-Admin\target\siges-admin-1.0-SNAPSHOT\WEB-INF\web.xml does not exist.atorg.codehaus.plexus.archiver.war.WarArchiver.setWebxml(WarArchiver.java:70)atorg.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:248)at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:212)... 14 moreAny help out there ?CheersHugo---------------------------------------------------------------------To unsubscribe, e-mail: users-unsubscribe@maven.apache.orgFor additional commands, e-mail: users-help@maven.apache.org reply Tweet Search Discussions Search All Groups users 5 responses Oldest Nested Brett Porter In that case, you'll need to add configuration for warSourceDirectory: http://maven.apache.org/maven2/plugins/maven-war-plugin/war-mojo.html - Brett --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubs