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: Your first Cocoon application using Maven 2
Date Sat, 05 May 2007 13:13:09 GMT
A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/1159.html

Document ID: 1159
Branch: main
Language: default
Name: Your first Cocoon application using Maven 2 (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 5/5/07 1:12:50 PM
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: 3862 bytes (previous version: 4421 bytes)
Content diff:
(4 equal lines skipped)
    
    <ol>
    <li>Create a Cocoon block (the application resources and logic)</li>
--- <li>Start the block as web application</li>
+++ <li>Start the block as web application and access it from your browser</li>
    </ol>
    
    <h1>Creating a block</h1>
(15 equal lines skipped)
    -DarchetypeArtifactId=cocoon-22-archetype-block -DarchetypeVersion=1.0.0-M5
    -DgroupId=com.mycompany -DartifactId=myBlock1</tt></p>
    
--- <p>Because of a Maven bug, it could be necessary to add the apache.snapshots
--- Maven repository to <tt>getting-started-app/myBlock1/pom.xml</tt>:</p>
--- 
--- <pre>&lt;repositories&gt;
---   [...]
---   &lt;repository&gt;
---     &lt;id&gt;apache.snapshot&lt;/id&gt;
---     &lt;name&gt;Apache Snapshot Repository&lt;/name&gt;
---     &lt;url&gt;http://people.apache.org/repo/m2-snapshot-repository&lt;/url&gt;
---     &lt;releases&gt;
---       &lt;!-- excalibur poms are located here --&gt;
---       &lt;enabled&gt;true&lt;/enabled&gt;
---     &lt;/releases&gt;
---     &lt;snapshots&gt;
---       &lt;enabled&gt;true&lt;/enabled&gt;
---     &lt;/snapshots&gt;
---   &lt;/repository&gt;
---   [...]
--- &lt;/repositories&gt;
--- </pre>
--- 
--- <p>The next release of the archetype will already have set the repository
--- settings.</p>
--- 
    <p>Change into the <tt>myBlock1</tt> directory and call</p>
    
    <pre>mvn install</pre>
(32 equal lines skipped)
    
    <ul>
    <li><a href="daisy:1290">Your first XML pipeline</a><br/>
--- Cocoon is famous for XML pipelines. At this tutorial you will learn how to setup
--- your first pipeline and will learn the most important things about Cocoon
--- sitemaps.</li>
+++ Cocoon has become famous for XML pipelines. At this tutorial you will learn how
+++ to setup your first pipeline and will learn the most important things about
+++ Cocoon sitemaps.</li>
    <li><a href="daisy:1291">Adding a second block</a><br/>
    This tutorial created a web application that has a dependency on one block.
    There are use cases that require more than one block, e.g. you want to have all
(5 equal lines skipped)
    of your Java classes changes. Additionally it provides all settings to enable
    the reload of Cocoon resources too.</li>
    <li><a href="daisy:1263">Deploying a Cocoon application<br/>
+++ </a>Although you have already been able to run this block, you most probably
+++ need a Java web application in order to deploy it in the servlet container of
+++ your choice.<a href="daisy:1263"><br/>
    </a></li>
    </ul>
    
(17 equal lines skipped)


Mime
View raw message