Hi! First, if you start a new topic, please do this by writing a new mail and not by replying to some other mail. This can be really annoying if you use a proper MUA that sorts by thread!
On 25 Feb 2008, [EMAIL PROTECTED] wrote: > i am using "mvn package" to create a war file of my project. > However, I found out that my context.xml file, located under > "src/context/context.xml", is missing in the META-INF directory > of the war file! Therefore, running my application fails! :-( Try putting it in src/main/webapp/META-INF. > I know there is a tomcat plugin that builds the war AND deploys > the war to a tomcat server, but I would like to do this step by > step - as a first step, I want to manually move the war file into > my tomcat webapps directory, if that works, I want to try to > automatically do this with the tomcat plugin. I don't know the tomcat plugin, I use cargo to deploy to servlet containers. But if you don't want to use the tomcat plugin, just do not configure it in your pom. Nothing will get deployed by default. > However, I found out that the tomcat plugin can be configured like that: > <groupId>org.codehaus.mojo</groupId> > <artifactId>tomcat-maven-plugin</artifactId> > <configuration> > <mode>both</mode> > <contextFile>src/context/context.xml</contextFile> > > However, I didn't find anything similar for the maven war plugin. Documentation for the m-war-p is here: http://maven.apache.org/plugins/maven-war-plugin/ hth, - martin -- Martin Höller | [EMAIL PROTECTED] *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-30 A-1100 Vienna, Austria | Fax: +43-1-6060114-71
signature.asc
Description: PGP signature
