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: 5/22/07 6:27:48 AM Updated by: Reinhard Pötz A new version has been created, state: publish Parts ===== Content ------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 5536 bytes (previous version: 5602 bytes) Content diff: <html> <body> <p>This tutorial is based on the --- <a href="http://cocoon.zones.apache.org/daisy/cdocs/g2/g1/g2/1159.html">"Your --- first Cocoon application using Maven 2"</a> guide which shows how to bootstrap a --- Cocoon project.</p> +++ <a href="http://cocoon.zones.apache.org/daisy/cdocs/g2/g1/g2/1159.html">Your +++ first Cocoon application using Maven 2</a> which shows how to bootstrap a Cocoon +++ project and <a href="daisy:1291">Modularize Cocoon apps</a> which shows how +++ inter-block communication works. If you haven't followed the latter tutorial, +++ you can go through this tutorial nonetheless but you have to skip everything +++ that refers to <tt>myBlock2</tt>.</p> <p>In this tutorial, you will:</p> <ol> --- <li>Connect the block to the webapp and run it</li> +++ <li>Connect blocks to the webapp and run it</li> <li>Create a parent Maven POM for the webapp and block <br/> (a convenience which allows you to trigger cascading builds of both maven modules from a single command)</li> (3 equal lines skipped) <h1>Creating a Cocoon web application</h1> --- <p class="note">First, make sure that you have Maven 2.0.6 or above installed. --- You can check this by calling mvn --version from command line. If this doesn't --- work for you, read the --- <a href="http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html">Maven --- in 5 Minutes</a> tutorial.</p> --- <p>Change into it and invoke the <tt>cocoon-22-archetype-webapp</tt> archetype: </p> (38 equal lines skipped) <p>That's it. Now it's time to run the web application. Move into <tt>getting-started-app/myCocoonWebapp</tt> and call</p> --- <pre>mvn package jetty:run</pre> +++ <pre>mvn jetty:run</pre> <p>from there.<br/> Open your favorite web browser and call</p> (78 equal lines skipped)