cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frangos, Nick (SAPOL)" <>
Subject RE: Deployment of Cocoon apps. Best practices?
Date Wed, 24 Nov 2004 01:06:28 GMT
I am at a stage where I will need to deploy some applications under Cocoon.
It would be nice to be able to bundle up the applications into wars. The war
would contain the application sitemap, required jars, xslt, images, etc.
Then copy the war under cocoon and have cocoon expand the war. Is this

Also how do you get around the requirement for application A and application
B requiring different versions of a jar, say foo1.jar and foo2.jar ?. At the
moment I copy the jars into the WEB-INF/lib dir under cocoon, but this means
that all applications can see that jar.

Nick Frangos

-----Original Message-----
From: Ralph Goers [] 
Sent: Wednesday, 24 November 2004 7:25 AM
Subject: RE: Deployment of Cocoon apps. Best practices?

I also use maven. These are the steps I follow:
1. Build Cocoon with only the desired properties and blocks. Use
./ 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.


Eric Jacob said:
> Hi André,
> I'm successfully using Maven to build and deploy my Cocoon projects.
> Here how I manage it:
> - Rename and to
> and;
> - 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:
For additional commands, e-mail:

View raw message