cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: Deploying a Cocoon application
Date Mon, 23 Jun 2008 16:21:07 GMT
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
=====

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)
    
    <h1>Creating a Cocoon web application</h1>
    
--- <p>Change into it and invoke the <tt>cocoon-22-archetype-webapp</tt>
archetype:
--- </p>
+++ <p>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.  Change into the
+++ getting-started-app folder and type the following command: -</p>
    
--- <pre>mvn archetype:create
---   -DarchetypeGroupId=org.apache.cocoon
---   -DarchetypeArtifactId=cocoon-22-archetype-webapp
---   -DarchetypeVersion=1.0.0
---   -DgroupId=com.mycompany
---   -DartifactId=<tt>myCocoonWebapp</tt>
+++ <pre>mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org
    </pre>
    
--- <p class="note">For copy and paste without line feeds:<br/>
--- <tt>mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
--- -DarchetypeArtifactId=cocoon-22-archetype-webapp -DarchetypeVersion=1.0.0
--- -DgroupId=com.mycompany -DartifactId=</tt><tt>myCocoonWebapp</tt></p>
+++ <p>Choose the web application archetype: -</p>
    
+++ <pre>...
+++ Choose archetype:
+++ 1: remote -&gt; cocoon-22-archetype-block-plain (Creates an empty Cocoon block; useful
+++  if you want to add another block to a Cocoon application)
+++ 2: remote -&gt; cocoon-22-archetype-block (Creates a Cocoon block containing some
small
+++  samples)
+++ 3: remote -&gt; cocoon-22-archetype-webapp (Creates a web application configured to
+++  host Cocoon blocks. Just add the block dependencies)
+++ Choose a number:  (1/2/3): <strong>3
+++ </strong></pre>
+++ 
+++ <p>Then respond to the other questions as follows: -</p>
+++ 
+++ <pre>Define value for groupId: : <strong>com.mycompany</strong>
+++ Define value for artifactId: : <strong>myCocoonWebApp</strong>
+++ Define value for version:  1.0-SNAPSHOT: : <strong>1.0.0</strong>
+++ Define value for package: : <strong>com.mycompany.myCocoonWebApp</strong>

+++ </pre>
+++ 
    <p>Looking at the filesystem, you should find following directory structure:</p>
    
    <pre>getting-started-app
(136 equal lines skipped)


Mime
View raw message