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/9/07 2:59:58 PM
Updated by: Marc Portier

A new version has been created, state: draft

Parts
=====

Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 5941 bytes (previous version: 5334 bytes)
Content diff:
(30 equal lines skipped)
    -DarchetypeArtifactId=cocoon-22-archetype-block -DarchetypeVersion=1.0.0-M5
    -DgroupId=com.mycompany -DartifactId=myBlock1</tt></p>
    
+++ <p class="note"><tt>Note: if you are using a cocoon binary build from svn 
trunk
+++ then you probably want to change the archetypeVersion to the most recent 
one,
+++ matching the svn trunk.  (see 
+++ [cocoon-svn]/tools/archetypes/cocoon-22-archetype-block/pom.xml)</tt></p>
+++ 
    <p>Change into the <tt>myBlock1</tt> directory and call</p>
    
    <pre>mvn install</pre>
(39 equal lines skipped)
    <p>After creating the block you probably want to run it. For this purpose 
there
    is a Maven plugin, that generates a minimal web application that loads your
    block. The pom.xml of your block already contains all necessary 
configurations.
--- You can run</p>
+++ </p>
    
+++ <p class="note">In some non-final releases of cocoon2.2 these configurations
+++ have been &lt;!-- commented out --&gt;.  In those cases you will need to go 
into
+++ the pom.xml to manually remove those comment to make that configuration 
active.
+++ </p>
+++ 
+++ <p>You can then run</p>
+++ 
    <pre>mvn compile</pre>
    
    <p>and then</p>
    
    <pre>mvn jetty:run</pre>
    
--- <p>and point your browser at <tt>http://localhost:8888/block1/</tt> and get 
a
+++ <p>and point your browser at <tt>http://localhost:8888/myBlock1/</tt> and 
get a
    hello world page.</p>
    
    <p class="note">The mentioned minimal web application is automatically 
created,
    when mvn compile is invoked. This happens because the rcl goal of the Cocoon
--- plugin is baund to the Maven build lifecycle. See the block's pom.xml for
+++ plugin is bound to the Maven build lifecycle. See the block's pom.xml for
    details.</p>
    
+++ <p class="note">This process can be manually triggered with mvn 
cocoon:rcl</p>
+++ 
    <h1>Conclusion and further information</h1>
    
    <p>So far you have created a block. You have also been able to run the 
block in
(44 equal lines skipped)