A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1159.html
Document ID: 1159 Branch: main Language: default Name: Getting started with your Cocoon 2.2 based project (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 10/3/06 9:35:38 AM Updated by: Carsten Ziegeler A new version has been created, state: publish Parts ===== Content ------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 2696 bytes (previous version: 1174 bytes) Content diff: <html> <body> +++ <p>A typical Cocoon application is divided into several projects: the web +++ application and the used blocks. For your own project you need a web application +++ project which depends on all the used blocks. If you want to split up your +++ application into different units, you might want to create your own blocks.</p> +++ +++ <p>The simplest way to start your own Cocoon 2.2 based project is using the +++ provided Maven 2 archetypes creating a skeleton for your project.</p> +++ +++ <h2>Creating a web application project</h2> +++ +++ <p>The cocoon webapp archetype creates a Maven 2 webapp project for you +++ containing</p> +++ +++ <ul> +++ <li>a skeleton web.xml</li> +++ <li>a cocoon.xconf</li> +++ </ul> +++ +++ <p>Make sure that you have Maven 2.0.4 or above installed and then enter +++ following command:</p> +++ +++ <pre>mvn archetype:create \ +++ -DarchetypeGroupId=org.apache.cocoon \ +++ -DarchetypeArtifactId=cocoon-22-webapp-block \ +++ -DarchetypeVersion=1.0.0-SNAPSHOT \ +++ -DgroupId=com.mycompany \ +++ -DartifactId=myBlock \ +++ +++ </pre> +++ +++ <p class="note">once again for copy and paste without line feeds:<br/> +++ <tt>mvn archetype:create -DarchetypeGroupId=org.apache.cocoon +++ -DarchetypeArtifactId=cocoon-22-webapp-block -DarchetypeVersion=1.0.0-SNAPSHOT +++ -DgroupId=com.mycompany -DartifactId=myBlock</tt></p> +++ +++ <p>The next step is changing into the <tt>myBlock</tt> directory and calling</p> +++ +++ <pre>mvn cocoon:deploy jetty6:run</pre> +++ +++ <p>After that, you can point your browser to</p> +++ +++ <pre>http://localhost:8888</pre> +++ +++ <p>and you should get a success page.</p> +++ +++ <h2>Creating a block project</h2> +++ <p>The simplest way to start your own Cocoon 2.2 based project is using a Maven 2 archetype, that creates a block skeleton for you. It only contains a</p> (35 equal lines skipped)