hey.. u can also this also .. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webXml>relative path for web.xml starting from root of war module</webXml> </configuration> </plugin>
-- Kiran Kodlady Vaidya, Supriya A (US - Chicago) wrote: > > Thanks Patrick! > > I included the following in my pom.xml, and now I can work with the > 'web' directory - > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>2.0</version> > <configuration> > <warSourceDirectory>src\main\web</warSourceDirectory> > </configuration> > </plugin> > > Thanks for your help! > > -----Original Message----- > From: Patrick Schneider [mailto:[EMAIL PROTECTED] > Sent: Monday, July 23, 2007 3:40 PM > To: Maven Users List > Subject: Re: Maven: Unable to create a WAR package due to web.xml > > See the default for the warSourceDirectory option in maven-war-plugin: > > http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#webappDir > ectory > > 'webapp' is the default. > > > Patrick > > On 7/23/07, Vaidya, Supriya A (US - Chicago) > <[EMAIL PROTECTED]> > wrote: >> >> I fixed this by changing my 'web' directory to 'webapp' - just the > name. >> Why is this necessary though? Or did I miss something?!?! >> >> ________________________________ >> >> From: Vaidya, Supriya A (US - Chicago) >> Sent: Monday, July 23, 2007 3:16 PM >> To: users@maven.apache.org >> Subject: Maven: Unable to create a WAR package due to web.xml >> >> >> Hi: >> >> This is very strange... >> >> I have the following (legacy!) project structure: >> src >> | >> | >> main >> | >> | >> config >> spring >> java >> com >> my >> package >> web >> | >> | >> WEB-INF >> web.xml >> >> When packaging this structure to a WAR, the mvn package commands > creates >> the following: >> >> target >> | >> | >> classes >> com >> my >> package >> myjarfile-1.0 >> META-INF >> WEB-INF >> classes >> com >> my >> package >> lib >> >> The problem is, that the web.xml is not being copied over to >> myjarfile-1.0/WEB-INF. WHich means that the mvn package command fails. >> What am I doing wrong? >> >> >> This message (including any attachments) contains confidential > information >> intended for a specific individual and purpose, and is protected by > law. If >> you are not the intended recipient, you should delete this message. >> >> >> Any disclosure, copying, or distribution of this message, or the > taking of >> any action based on it, is strictly prohibited. [v.E.1] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Maven%3A-Unable-to-create-a-WAR-package-due-to-web.xml-tf4132265s177.html#a11756827 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]