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><repositories>
+++ [...]
+++ <repository>
+++ <id>apache.snapshot</id>
+++ <name>Apache Snapshot Repository</name>
+++
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
+++ <releases>
+++ <!-- excalibur poms are located here -->
+++ <enabled>true</enabled>
+++ </releases>
+++ <snapshots>
+++ <enabled>true</enabled>
+++ </snapshots>
+++ </repository>
+++ [...]
+++ </repositories>
+++ </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><repositories>
+++ [...]
+++ <repository>
+++ <id>apache.snapshot</id>
+++ <name>Apache Snapshot Repository</name>
+++
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
+++ <releases>
+++ <!-- excalibur poms are located here -->
+++ <enabled>true</enabled>
+++ </releases>
+++ <snapshots>
+++ <enabled>true</enabled>
+++ </snapshots>
+++ </repository>
+++ [...]
+++ </repositories>
+++ </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)