A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/1153.html
Document ID: 1153
Branch: main
Language: default
Name: Using Eclipse to run Cocoon 3.0 (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 5/12/06 4:25:54 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: 3870 bytes (previous version: 43 bytes)
Content diff:
<html>
<body>
--- <p>TODO</p>
+++ <h1>Technical prerequisites</h1>
+++ <ol>
+++ <li>
+++ <p>maven 2.0.2 or better</p>
+++ </li>
+++ <li>
+++ <p>eclipse 3.2RC1a or better</p>
+++ </li>
+++ </ol>
+++
+++ <h1>Necessary Steps</h1>
+++
+++ <ol>
+++ <li>
+++ <p>checkout the complete trunk</p>
+++ </li>
+++ <li>
+++ <p>from the <em>./trunk</em> run</p>
+++ </li>
+++ </ol>
+++
+++ <ul>
+++ <li>
+++ <pre> $mvn clean install -Dmaven.test.skip=true </pre>
+++
+++ <p>Call this until you get <strong>BUILD SUCCESSFUL</strong> - sometimes
+++ donwloads from maven repositories are temporarily unaccessible and cause the
+++ build to fail.</p>
+++ </li>
+++ </ul>
+++
+++ <h2>HOW TO START THE COCOON WEBAPP (CLASSIC MODE)</h2>
+++
+++ <p>This starts Cocoon as a servlet in jetty like the 2.X versions.</p>
+++
+++ <ol>
+++ <li>
+++ <p>go to <em>./trunk/core/cocoon-webapp</em> and run</p>
+++
+++ <pre> $ mvn cocoon:deploy
+++ $ mvn jetty6:run</pre>
+++ </li>
+++ <li>
+++ <p>point your browser to
+++ <a href="http://localhost:8888/"><img width="11" height="11"
src="http://wiki.apache.org/wiki/rightsidebar/img/moin-www.png"/>
+++ http://localhost:8888/</a> or
+++ <a href="http://localhost:8888/apps/cocoon-deployer-plugin-demo/test"><img
width="11" height="11"
src="http://wiki.apache.org/wiki/rightsidebar/img/moin-www.png"/>
+++ http://localhost:8888/apps/cocoon-deployer-plugin-demo/test</a></p>
+++ </li>
+++ </ol>
+++
+++ <h2>HOW TO START THE COCOON WEBAPP IN (OGSI MODE)</h2>
+++
+++ <ol>
+++ <li>
+++ <p>from <em>./trunk</em> run</p>
+++
+++ <pre> $mvn eclipse:clean </pre>
+++
+++ <p>first to remove any left over eclipse files. Then run</p>
+++
+++ <pre> $mvn eclipse:eclipse </pre>
+++ </li>
+++ <li>
+++ <p>Declare the <strong>M2_REPO</strong> classpath in your workspace. You
can do
+++ this by running the following command</p>
+++
+++ <pre> $mvn -Declipse.workspace=<path-to-eclipse-workspace>
eclipse:add-maven-repo </pre>
+++
+++ <p>or do this manually.</p>
+++ </li>
+++ <li>
+++ <p>go to <em>./trunk/core/cocoon-core</em> and run</p>
+++
+++ <pre> $mvn c-eclipse:eclipse -o. </pre>
+++
+++ <p>This makes the project an PDE project. This means that Eclipse offers
tools
+++ to support development based on OSGi.</p>
+++ </li>
+++ <li>
+++ <p>Go to Eclipse and make sure you haven't mounted the trunk as project
already.
+++ Do <em><strong>[File-Import]->[Existing projects into
+++ workspace]</strong></em>, then point to your <em>./trunk</em> directory.
<br/>
+++ Add following projects to your workspace:</p>
+++
+++ <ul>
+++ <li>
+++ <p>cocoon-core</p>
+++ </li>
+++ <li>
+++ <p>cocoon-blocks-fw-impl</p>
+++ </li>
+++ <li>
+++ <p>cocoon-licences</p>
+++ </li>
+++ </ul>
+++ </li>
+++ <li>
+++ <p>Add the Equinox target platform to your workspace:
+++ <em><strong>[Window]->[Preferences]->[Plug-In Development]->[Target
+++ Platform]</strong></em> and choose
+++ <em>./cocoon/trunk/tools/equinox-target-platform</em> as base directory for
the
+++ new target platform.</p>
+++ </li>
+++ <li>
+++ <p>Start Cocoon by <em><strong>[Run]->[Run]->[Equinox OSGI
+++ Framework]</strong></em> and create a new instance.</p>
+++ </li>
+++ <li>
+++ <p>Run it by hitting the <em><strong>[Run]</strong></em> button</p>
+++ </li>
+++ <li>
+++ <p>point your browser to
+++ <a href="http://localhost/sitemap-test/test"><img width="11" height="11"
src="http://wiki.apache.org/wiki/rightsidebar/img/moin-www.png"/>
+++ http://localhost/sitemap-test/test</a> (the first reponse produces an error
+++ because nothing is returned, but after a refresh, everything works
fine.)</p>
+++ </li>
+++ </ol>
+++
+++ <h1>Links to other information sources</h1>
+++
+++ <ul>
+++ <li> <a href="http://maven.apache.org/">http://maven.apache.org</a></li>
+++ <li> <a href="http://www.eclipse.org/">http://www.eclipse.org</a></li>
+++ <li>
+++ <a
href="http://cocoon.apache.org/community/contrib.html#svnhowto">http://cocoon.apache.org/community/contrib.html#svnhowto</a>
+++ </li>
+++ <li>
+++ <a
href="http://svn.apache.org/repos/asf/cocoon/trunk/README.txt">http://svn.apache.org/repos/asf/cocoon/trunk/README.txt</a>
+++ </li>
+++ <li>
+++ <a
href="http://maven.apache.org/plugins/maven-eclipse-plugin/">http://maven.apache.org/plugins/maven-eclipse-plugin/</a><a
href="http://wiki.apache.org/cocoon/OsgiTipsAndTricks">OsgiTipsAndTricks</a>
+++ </li>
+++ </ul>
+++
</body>
</html>
Fields
======
no changes
Links
=====
no changes
Custom Fields
=============
no changes
Collections
===========
no changes