You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2006/04/24 19:59:01 UTC

svn commit: r396623 - /cocoon/trunk/README.txt

Author: reinhard
Date: Mon Apr 24 10:58:59 2006
New Revision: 396623

URL: http://svn.apache.org/viewcvs?rev=396623&view=rev
Log:
add instructions to run Cocoon in OSGi mode

Modified:
    cocoon/trunk/README.txt

Modified: cocoon/trunk/README.txt
URL: http://svn.apache.org/viewcvs/cocoon/trunk/README.txt?rev=396623&r1=396622&r2=396623&view=diff
==============================================================================
--- cocoon/trunk/README.txt (original)
+++ cocoon/trunk/README.txt Mon Apr 24 10:58:59 2006
@@ -43,7 +43,8 @@
 
 http://maven.apache.org/plugins/maven-eclipse-plugin/
 
-HOW TO START THE COCOON WEBAPP
+HOW TO START THE COCOON WEBAPP (NON OSGI MODE)
+----------------------------------------------
 
 0. checkout complete trunk and
   $ mvn clean install -Dmaven.test.skip=true
@@ -56,3 +57,36 @@
   $ mvn jetty6:run
 
 2. point your browser to http://localhost:8888/ or http://localhost:8888/apps/cocoon-deployer-plugin-demo/test
+
+HOW TO START THE COCOON WEBAPP (OSGI MODE)
+------------------------------------------
+0. checkout complete trunk and
+  $ mvn clean install -Dmaven.test.skip=true
+
+  Call this until you get "BUILD SUCCESSFUL" - sometimes donwloads from maven
+  repositories are temporarily unaccessible and cause the build to fail.
+  
+1. move to ./core/cocoon-core and call "mvn c-eclipse:eclipse -o". This makes the project
+   an PDE project. This means that Eclipse offers tools to support development based on
+   OSGi. 
+  
+2. Get the latest release of Eclipse 3.2 (I had some problems with Eclipse 3.1 but maybe
+   they are resolved in the latest 3.1.x release)
+
+3. Create a new Eclipse workspace and don't forget to set the M2_REPO classpath variable
+
+4. add following projects to your workspace
+   - cocoon-core
+   - cocoon-blocks-fw-impl
+   
+5. add the Equinox target platform to your workspace:
+   - [Window] - [Preferences] - [Plug-In Development] - [Target Platform] and choose
+     ./cocoon/trunk/tools/equinox-target-platform as base directory for the new target
+     platform
+     
+6. start Cocoon:
+   - [Run] - [Run ...] - [Equinox OSGI Framework] and create a new instance
+   
+7. Run it by hitting the "Run" button
+
+8. point your browser to http://localhost/sitemap-test/test
\ No newline at end of file