Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 42790 invoked from network); 26 Jun 2008 06:32:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2008 06:32:45 -0000 Received: (qmail 79314 invoked by uid 500); 26 Jun 2008 06:32:47 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 79252 invoked by uid 500); 26 Jun 2008 06:32:46 -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 List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 79230 invoked by uid 99); 26 Jun 2008 06:32:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 23:32:46 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.67] (HELO cocoon.zones.apache.org) (140.211.11.67) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 06:32:04 +0000 Received: from cocoon.zones.apache.org (localhost [127.0.0.1]) by cocoon.zones.apache.org (8.13.8+Sun/8.13.8) with ESMTP id m5Q6WOHb005937 for ; Thu, 26 Jun 2008 06:32:24 GMT Message-ID: <26926124.1214461944427.JavaMail.daisy@cocoon.zones.apache.org> Date: Thu, 26 Jun 2008 06:32:24 +0000 (GMT+00:00) From: daisy@cocoon.zones.apache.org To: docs@cocoon.apache.org Subject: [DAISY] Updated: Deploying a Cocoon application Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1362.html Document ID: 1362 Branch: main Language: default Name: Deploying a Cocoon application (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 6/23/08 4:21:03 PM Updated by: David Legg A new version has been created, state: draft Parts =3D=3D=3D=3D=3D Content ------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 6962 bytes (previous version: 6311 bytes) Content diff: (21 equal lines skipped) =20

Creating a Cocoon web application

=20 ---

Change into it and invoke the cocoon-22-archetype-webapp ar= chetype: ---

+++

For this tutorial you will use the Cocoon web application archetype = to create +++ a Cocoon block suitable for generating a war file which can be deployed= on a +++ servlet container such as Tomcat or Websphere etc.=C2=A0 Change into th= e +++ getting-started-app folder and type the following command: -

=20 ---
mvn archetype:create
---   -DarchetypeGroupId=3Dorg.apache.cocoon
---   -DarchetypeArtifactId=3Dcocoon-22-archetype-webapp
---   -DarchetypeVersion=3D1.0.0
---   -DgroupId=3Dcom.mycompany
---   -DartifactId=3DmyCocoonWebapp
+++ 
mvn archetype:generate -DarchetypeCatalog=3Dhttp://cocoon.apache.o=
rg
    
=20 ---

For copy and paste without line feeds:
--- mvn archetype:create -DarchetypeGroupId=3Dorg.apache.cocoon --- -DarchetypeArtifactId=3Dcocoon-22-archetype-webapp -DarchetypeVersion= =3D1.0.0 --- -DgroupId=3Dcom.mycompany -DartifactId=3DmyCocoonWebapp +++

Choose the web application archetype: -

=20 +++
...
+++ Choose archetype:
+++ 1: remote -> cocoon-22-archetype-block-plain (Creates an empty Cocoo=
n block; useful
+++ =C2=A0if you want to add another block to a Cocoon application)
+++ 2: remote -> cocoon-22-archetype-block (Creates a Cocoon block conta=
ining some small
+++ =C2=A0samples)
+++ 3: remote -> cocoon-22-archetype-webapp (Creates a web application c=
onfigured to
+++  host Cocoon blocks. Just add the block dependencies)
+++ Choose a number:  (1/2/3): 3
+++ 
+++=20 +++

Then respond to the other questions as follows: -

+++=20 +++
Define value for groupId: : com.mycompany
+++ Define value for artifactId: : myCocoonWebApp
+++ Define value for version:  1.0-SNAPSHOT: : 1.0.0
+++ Define value for package: : com.mycompany.myCocoonWebApp=20
+++ 
+++=20

Looking at the filesystem, you should find following directory struc= ture:

=20
getting-started-app
(136 equal lines skipped)