Hi Ralph, thanks for your reply! This a really interesting approach. Using the reactor, I can probably produce a war file containing cocoon itself, and a group of other cocoon applications of my choise. This is what we want when massive-deploying (deploying all cocoon apps). I'll probably use the way Eric Jacob suggested for building the stripped-down cocoon war itself, and then join it with the other cocoon applications the way you suggest. This is great! Thanks!
Best regards, Bent On Tue, 23 Nov 2004 12:55:21 -0800 (PST), Ralph Goers <[EMAIL PROTECTED]> wrote: > I also use maven. These are the steps I follow: > 1. Build Cocoon with only the desired properties and blocks. Use > ./build.sh war > 2. Copy the generated war file to the maven repository. > 3. In the project directory run maven war:install using the attached > maven.xml in the project directory. It unwars the cocoon war, patches the > sitemap and cocoon.xconf as necessary and then adds our stuff to the war. > > Note that this means that the vast majority of the jars you will be using > will be brought in via the cocoon war file, dramatically reducing the > number of dependencies that have to be changed with each cocoon update. > > Ralph > > > > > Eric Jacob said: > > Hi Andr�, > > > > I'm successfully using Maven to build and deploy my Cocoon projects. > > > > Here how I manage it: > > > > - Rename blocks.properties and build.properties to local.blocks.properties > > and local.build.properties; > > - Uncomment all unused stuff; > > - Build Cocoon; > > - Copy all the generated jars to your local Maven repository (in my case, > > I > > use maven-proxy); > > - Copy the webapp folder (in build/webapp) to my Maven working dir > > (src/webapp), except the jars. > > - Create a project descriptor extending cocoon-2.1.6.xml. > > > > I've put in attachment a Maven project descriptor for building a minimal > > Cocoon webapp. Here my directory structure: > > > > -root/ > > |-cocoon-2.1.6.xml > > |-projectA/ > > |-src/ > > |-conf/ > > |-java/ > > |-test/ > > |-webapp/ > > |-... > > > > Hope this help. > > > > Eric > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
