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 Fri, 26 Jan 2007 17:16:52 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: 1/20/07 2:17:26 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: 9994 bytes (previous version: 9957 bytes)
Content diff:
(3 equal lines skipped)
    <p>In this tutorial, you will:</p>
    
    <ol>
--- <li>Create two Maven modules: a Cocoon web application (the container), and a
--- Cocoon block (the application resources and logic)</li>
+++ <li>Create two Maven modules: a Cocoon web application (mounted in a servlet
+++ container), and a Cocoon block (the application resources and logic)</li>
    <li>Connect the block to the webapp and run it</li>
    <li>Create a parent Maven POM for the webapp and block (a convenience which
    allows you to trigger cascading builds of both maven modules from a single
(203 equal lines skipped)
    
    <p>You can mount your block at the root level in the application URI space, so
    that instead of using (for example) the URI
--- "http://localhost:8888/myBlock/foo/bar" to request a page, you would request it
--- at "http://localhost:8888/foo/bar".</p>
+++ <tt>http://localhost:8888/myBlock/foo/bar</tt> to request a page, you would
+++ request it at <tt>http://localhost:8888/foo/bar</tt>.</p>
    
    <p>To do this, edit myBlock/src/main/resources/META-INF/cocoon/spring/block.xml
    , and change the element</p>
(3 equal lines skipped)
    
    <p>to</p>
    
--- <pre>    &lt;property name="mountPath" value="/"/&gt;
+++ <pre>    &lt;property name="mountPath" value=""/&gt;
    </pre>
    
--- <p>and then do "mvn:install".</p>
+++ <p>and then do <tt>mvn:install</tt>.</p>
    
    <h1>Conclusion and further information</h1>
    
(41 equal lines skipped)


Mime
View raw message