A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/1297.html

Document ID: 1297
Branch: main
Language: default
Name: Using the Reloading Classloader (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 5/2/07 11:02:51 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: 4809 bytes (previous version: 3974 bytes)
Content diff:
    <html>
    <body>
    
--- <p class="warn">The cocoon-rcl-plugin hasn't been released yet. For the time
+++ <p class="warn">The cocoon-maven-plugin hasn't been released yet. For the 
time
    being, you have to checkout Cocoon trunk
--- <tt>http://svn.apache.org/repos/asf/cocoon/trunk</tt>. Then build both by
--- invoking <tt>mvn install</tt>.<br/>
+++ <tt>http://svn.apache.org/repos/asf/cocoon/trunk</tt>. Then build it by 
invoking
+++ <tt>mvn install</tt>.<br/>
    Make also sure that you use recent SNAPSHOT versions of cocoon-core-2.2.0 
and
    cocoon-servlet-service-impl-1.0.0.</p>
    
(36 equal lines skipped)
    been released yet. For this you have to checkout Cocoon trunk and run 
<tt>mvn
    install</tt>.</p>
    
--- <h1>Step 3: Invoke the plugin</h1>
+++ <h1>Step 3: Configure the plugin</h1>
    
+++ <p>You can also provide configuration properties. Use the
+++ <a href="war-mojo.html">goal documentation</a> generated from the Javadoc
+++ comments to find out more.</p>
+++ 
+++ <h1>Step 4: Invoke the plugin</h1>
+++ 
    <p>The Maven 2 plugin can be invoked by calling</p>
    
    <pre>mvn cocoon:rcl</pre>
    
--- <p>This creates a web application into ./target/rcl/webapp for your 
block.</p>
+++ <p>This creates a web application into<tt> ./target/rcl/webapp</tt> for your
+++ block.</p>
    
--- <h1>Step 4: Create Eclipse project files</h1>
+++ <p>If you want to avoid this additional step, you can invoke it 
automatically,
+++ e.g. by</p>
    
+++ <p>If you want to invoke it automatically, add it to the execution section 
of
+++ your plugin definition, e.g.</p>
+++ 
+++ <pre>&lt;plugin&gt;
+++   &lt;groupId&gt;org.apache.cocoon&lt;/groupId&gt;
+++   &lt;artifactId&gt;cocoon-maven-plugin&lt;/artifactId&gt;
+++   &lt;version&gt;1.0.0-M1-SNAPSHOT&lt;/version&gt;
+++   &lt;executions&gt;
+++     &lt;execution&gt;
+++       &lt;phase&gt;compile&lt;/phase&gt;
+++       &lt;goals&gt;
+++         &lt;goal&gt;rcl&lt;/goal&gt;
+++       &lt;/goals&gt;
+++     &lt;/execution&gt;
+++   &lt;/executions&gt;       
+++ &lt;/plugin&gt;
+++ </pre>
+++ 
+++ <h1>Step 5: Create Eclipse project files</h1>
+++ 
    <p>Move to <tt>getting-started-app/ </tt>and invoke</p>
    
    <pre>mvn eclipse:eclipse</pre>
    
    <p>and import the new Eclipse project into your Eclipse workspace.</p>
    
--- <h1>Step 5: Start the servlet container</h1>
+++ <h1>Step 6: Start the servlet container</h1>
    
    <h2>Alternative A: The Maven Jetty plugin</h2>
    
(38 equal lines skipped)
    <p>There is a <a href="daisy:1301">tutorial</a> that describes how to debug
    Cocoon.</p>
    
--- <h1>Step 6: Change a class file</h1>
+++ <h1>Step 7: Change a class file</h1>
    
    <p>Now it's time to see the reloading classloader in action. Open
    <tt>getting-started-app/myBlock1/src/main/java/com/mycompany/???</tt> and 
change
(4 equal lines skipped)