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: 1/10/07 9:15:27 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: 8811 bytes (previous version: 7219 bytes)
Content diff:
(28 equal lines skipped)
    -DarchetypeArtifactId=cocoon-22-archetype-webapp -DarchetypeVersion=1.0.0-M1
    -DgroupId=com.mycompany -DartifactId=myWebapp</tt></p>
    
+++ <p>Because of a Maven bug, it could be necessary to add the apache.snapshots
+++ Maven repository to <tt>getting-started-app/myCocoonWebapp/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>
+++ 
    <h1>Creating a block</h1>
    
    <p>The next step is creating a Cocoon block which will contain your custom
(13 equal lines skipped)
    -DarchetypeArtifactId=cocoon-22-archetype-block -DarchetypeVersion=1.0.0-M4
    -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>
(141 equal lines skipped)