Error Assembling War Deployment Descriptor
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About
Error Assembling War Webxml Attribute Is Required (or Pre-existing Web-inf/web.xml If Executing
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.2:war (default-war) on project developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “webxml attribute is required” error
Error Assembling War Webxml Attribute Is Required Spring Boot
in Maven up vote 207 down vote favorite 39 I am getting the following error: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) I have got web.xml in right place which is projectname\src\main\webapp\WEB-INF\web.xml What could be causing this? maven war share|improve this question edited Jun 19 '14 at 20:09 ArtB 7,1531463104 asked Mar 18 '11 at 12:25 user617966 1,67541524
Maven War Plugin No Web Xml
1 is your packaging set to war in the pom? –crowne Mar 18 '11 at 17:15 add a comment| 14 Answers 14 active oldest votes up vote 255 down vote It would be helpful if you can provide a code snippet of your maven-war-plugin. Looks like the web.xml is at right place, still you can try and give the location explicitly messages Andrew Madu Reply | Threaded Open this post in threaded maven web.xml location view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Build Error - Error assembling WAR: Deployment descriptor: Hi, so my maven-war-plugin version 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 | https://issues.apache.org/jira/browse/MWAR-52 FAQ | Members List | Calendar | Today's Posts | Search Search Forums Show Threads Show 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 error assembling to 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 error assembling war displayed 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. not honor the webXml configuration setting [patch included!]Agile Board ExportXMLWordPrintableJSON Details Type: Bug Status: Closed Priority: Major Resolution: Fixed Affects Version/s: 2.0 Fix Version/s: 2.0.1 Component/s: None Labels: None Description The WAR plugin does not honor the webXml configuration setting. I think this comes from web.xml being hardcoded into WarMojo, rather than using the default-value mechanism for the MOJO attribute. Here is a patch: Index: C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java =================================================================== -- C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java (revision 416739) +++ C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java (working copy) @@ -102,7 +102,7 @@ /** The path to the web.xml file to use. * * @parameter expression="$ {maven.war.webxml}" + * @parameter expression="${maven.war.webxml} " default-value="WEB-INF/web.xml" */ private File webXml; Index: C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java =================================================================== -- C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java (revision 416739) +++ C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java (working copy) @@ -177,7 +177,7 @@ warArchiver.addDirectory( getWebappDirectory() ); warArchiver.setWebxml( new File( getWebappDirectory(), "WEB-INF/web.xml" ) ); + warArchiver.setWebxml( getWebXml() ); // create archive archiver.createArchive( getProject(), archive ); OptionsSort By NameSort By DateAscendingDescendingAttachments my-webapp.zip 27/Jun/06 Failonmissingwebxml Example