cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DAISY] Updated: Modularize Cocoon apps (Using blocks)
Date Sun, 22 Jun 2008 22:06:20 GMT
A document has been updated:

Document ID: 1291
Branch: main
Language: default
Name: Modularize Cocoon apps (Using blocks) (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 6/22/08 10:06:08 PM
Updated by: David Legg

A new version has been created, state: draft


This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 8644 bytes (previous version: 7841 bytes)
Content diff:
(18 equal lines skipped)
    <h1>Create a second block</h1>
    <p>For this purpose move into the <tt>getting-started-app</tt> directory
and use
--- the Maven 2 archetype again:</p>
+++ the Maven 2 archetype command again:</p>
--- <pre>mvn archetype:create
---   -DarchetypeGroupId=org.apache.cocoon
---   -DarchetypeArtifactId=cocoon-22-archetype-block
---   -DarchetypeVersion=1.0.0
---   -DgroupId=com.mycompany
---   -DartifactId=<strong>myBlock2</strong> </pre>
+++ <pre>mvn archetype:generate -DarchetypeCatalog=
+++ </pre>
--- <p>The result is a second block and you should find following directory
--- structure:</p>
+++ <p>First choose the archetype: -</p>
+++ <pre>Choose archetype:
+++ 1: remote -&gt; cocoon-22-archetype-block-plain (Creates an empty Cocoon block; useful
+++  if you want to add another block to a Cocoon application)
+++ 2: remote -&gt; cocoon-22-archetype-block (Creates a Cocoon block containing some
+++  samples)
+++ 3: remote -&gt; cocoon-22-archetype-webapp (Creates a web application configured to
+++  host Cocoon blocks. Just add the block dependencies)
+++ Choose a number:  (1/2/3): <strong>2
+++ </strong></pre>
+++ <p>Then respond to the other questions as follows: -</p>
+++ <pre>Define value for groupId: : <strong>com.mycompany</strong>
+++ Define value for artifactId: : <strong>myBlock2</strong>
+++ Define value for version:  1.0-SNAPSHOT: : <strong>1.0.0</strong>
+++ Define value for package: : <strong>com.mycompany.myBlock2</strong></pre>
+++ <p>The result is a second block and you should find directory structure of your
+++ application now looks as follows: -</p>
    <tt> +-</tt><tt>myBlock1
     |  +-pom.xml
(6 equal lines skipped)
--- <p>Then run</p>
+++ <p>Move into the myBlock2 folder and execute the following command: -</p>
    <pre>mvn install eclipse:eclipse</pre>
--- <p>in order to make it ready for be imported in Eclipse and to put it into the
--- local Maven repository. Then you can import the project into Eclipse.</p>
+++ <p>This builds and copies the second block into your local Maven repository and
+++ then creates the necessary files to allow you to import the block as a project
+++ in Eclipse.</p>
    <h1>Connect two blocks</h1>
(161 equal lines skipped)

View raw message