Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 61456 invoked from network); 1 Dec 2004 13:06:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Dec 2004 13:06:28 -0000 Received: (qmail 67839 invoked by uid 500); 1 Dec 2004 13:06:27 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 67810 invoked by uid 500); 1 Dec 2004 13:06:27 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: docs@cocoon.apache.org Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 67798 invoked by uid 99); 1 Dec 2004 13:06:26 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 01 Dec 2004 05:06:26 -0800 Received: (qmail 61429 invoked from network); 1 Dec 2004 13:06:25 -0000 Received: from localhost.hyperreal.org (HELO minotaur.apache.org) (127.0.0.1) by localhost.hyperreal.org with SMTP; 1 Dec 2004 13:06:25 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: docs@cocoon.apache.org To: docs@cocoon.apache.org Subject: =?iso-8859-1?q?=5BCocoon_Wiki=5D_Updated=3A__HowToBuildAndDeployCocoonWit?= =?iso-8859-1?q?hMaven?= Date: Wed, 01 Dec 2004 13:06:24 -0000 Message-ID: <20041201130624.61423.31602@minotaur.apache.org> X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Date: 2004-12-01T05:06:24 Editor: EricJacob Wiki: Cocoon Wiki Page: HowToBuildAndDeployCocoonWithMaven URL: http://wiki.apache.org/cocoon/HowToBuildAndDeployCocoonWithMaven no comment Change Log: ---------------------------------------------------------------------------= --- @@ -22,9 +22,9 @@ = =3D=3D Option 1 (the hard way...) =3D=3D = -This option is the one I used to use before discovering Ralph's method (op= tion 2). It consists mainly in manually tracking all the Cocoon's JARs and = putting them into your Maven repository. Here the steps: +This option is the one I used to use before discovering the power of the '= 'maven.xml'' (thanks to Self:RalphGoers :) ). It consists mainly in manuall= y tracking all the Cocoon's JARs and putting them into your Maven repositor= y. Here the steps: = - 1. Build Cocoon with only the desired properties and blocks (as explained= in INSTALL.txt) by typing ''build war'' or ''./build.sh war''; + 1. Build Cocoon with only the desired properties and blocks (as explained= in INSTALL.txt) by typing ''build'' or ''./build.sh''; 1. Move all the generated JARs (build/webapp/WEB-INF/lib) into your Maven= repository; 1. Copy the generated Cocoon webapp folder (build/webapp) to your project= source directory (e.g. projectA/src/webapp), except the JARs; 1. Add the JARs dependencies to your Maven project; @@ -35,7 +35,7 @@ = =3D=3D Option 2 (recommended) =3D=3D = - 1. Build Cocoon with only the desired properties and blocks (as explained= in INSTALL.txt) by typing ''build war'' or ''./build.sh war''; + 1. Build Cocoon with only the desired properties and blocks (as explained= in INSTALL.txt) by typing ''build'' or ''./build.sh''; 1. Copy the generated WAR (build/cocoon-2.1.6/cocoon.war) into your Maven= repository (you may want to rename it, for example cocoon-2.1.6.war); 1. Add the WAR dependency to your Maven project descriptor; 1. In maven.xml, add a preGoal element containing an unwar instruction fo= r expending the specified WAR;