I ran into a similar issue, and maybe some one can point me to the right path..
I have a src/conf directory with all my configuration files. In my config files, I token the environmental specific things like @sql.user@. I deploy to dev/test/live and when I build using war:webapp, I add on some code to replace @sql.user@ with the appropriate environment. However, the war:war target doesn't allow me to replace my environmetanl properties. would like to do: maven war:test which would product a war that had all my files, and replace @sql.user@ with the test value. Should I build via war:webapp to a temp directory, then, do a war on that temp directory? I find though that I duplicate all my jar's and classes, once from the temp directory, and once from my source directory. Thanks, Eric Pugh -----Original Message----- From: Nathan Coast [mailto:nathan.coast@;blueyonder.co.uk] Sent: Wednesday, November 06, 2002 10:29 AM To: Turbine Maven Users List Subject: Re: War - newbie question this element should guarantee that the compiled classes are included in the assembled war. You shouldn't have to manually copy class files <classes dir="${maven.build.dest}"> <exclude name="${maven.war.excludes} " /> </classes> [EMAIL PROTECTED] wrote: > Hi everbody! > > I'm just downloaded and starting to learn maven and I'm right now exploring > the war goal. > > The war goal seems to take its point of departure in a directory called > webapp that should reside under src. > However when compiling the default destination is target/classes. When I > use the war goal there seem to be no relation between > the compiled classes and above mentioned source directory and thus the war > file does not contain any classes. > > The war:webapp goal creates new directory in the target directory > containing the classes and lib. However the web.xml > file is not copied and with the assumption made above it can not be used > with the war goal (as the war goal works with the src dir). > If one change the property maven.war.src to ${maven.build.dir}/<project > name> the war goal will archive the directory but > duplicate all dependencies as the war.bundle.jar property is set to true. > If I set to false nor jars will be included in the war file. > > It seems to me that I must copy all classes to the src directory (maven.xml > -> correct?) to war the application right. > Is this correct or I'm totally lost? > > Best regards, Theis. > > > -- > To unsubscribe, e-mail: <mailto:turbine-maven-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:turbine-maven-user-help@;jakarta.apache.org> > > -- To unsubscribe, e-mail: <mailto:turbine-maven-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-maven-user-help@;jakarta.apache.org>
