Thanks, I have a few differences:
* I have a different file structure than the default maven setup. <MainProject> | | \ __ WEB-INF/ | |_ web.xml |_ jboss.xml | \ __ META-INF/ | \ __ src/ | \__ test/ | \__ target/ (maven created) * I tried the <warSourceDirectory> but it does not put the file in the WEB-INF. <plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <warSourceDirectory>${basedir}/WEB-INF/</warSourceDirectory> <webXml>${basedir}/WEB-INF/web.xml</webXml> <outputDirectory>/usr2/local/jboss-4.0.3SP1/server/nextServer/deploy/</ outputDirectory> </configuration> </plugin> Is the only way to get this file is by having it in a resource? Thanks On 3/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > > Sorry those directories are all wrong. ;-) > > First is: > <war base>/src/main/webapp/WEB-INF > > Second one is: > <war base>/src/main/resources/WEB-INF > > Wayne > > > On 3/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > > Put it in: <war basedir>/src/main/WEB-INF > > And it will automatically be included in your WAR. > > > > If that doesn't work, put it in: > > <war base>/src/resources/WEB-INF > > > > Wayne > > > > > > On 3/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I want to add my jboss-web.xml with my web.xml file in my WEB-INF > directory > > > in my WAR file. > > > > > > Is there a way to include this file in the war with maven 2? > > > > > > > > > > > > On 3/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > > I can not get maven2 to add my *jboss-web.xml* file in my war file. > Here > > > > is my plugin for it! > > > > With the <includes/> my war file builds as empty war no class files > added. > > > > > > > > How do I get this file in my war? > > > > > > > > > > > > <plugin> > > > > > > > > <artifactId>maven-war-plugin</ artifactId> > > > > > > > > <configuration> > > > > > > > > <webXml>${basedir}/WEB-INF/web.xml </webXml> > > > > > > > > <outputDirectory>/usr2/local/jboss-4.0.3SP1/server/nextServer/deploy/ > </ > > > > outputDirectory> > > > > > > > > </configuration> > > > > > > > > </plugin> > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > >