Skip to content
Benjamin Paillereau edited this page Jul 19, 2013 · 2 revisions

Step 1 : Build

Step 1a : Maven

Prerequisite : install Maven 3.

Step 1b : Source

Clone the demo-extension repo :

git clone https://github.com/exo-addons/demo-extension.git
cd demo-extension

Step 1c : Build

Finally, build the project with maven :

mvn clean install

If you have a problem of dependency during the building, try adding eXo Mirror in your Maven settings :

<mirrors>
  <mirror>
    <id>exo-central-server</id>
    <name>eXo Central Server</name>
    <url>http://repository.exoplatform.org/public/</url>
    <mirrorOf>central</mirrorOf>
  </mirror>
</mirrors>

In order to use SnakeYAML, you will need to add a new repository as well :

<repositories>
  <repository>
    <id>Sonatype-public</id>
    <name>SnakeYAML repository</name>
    <url>http://oss.sonatype.org/content/groups/public/</url>
  </repository>
</repositories>

Step 2 : Install

Prerequisite : install eXo Platform 4 and rename it tomcat/

Inside the project you just build :

cp exo-addons-demo-extension-pkg/target/exo-addons-demo-extension-pkg-XXX.zip <PATH-TO-PLATFORM-TOMCAT>/extensions/

Note : XXX in the jar stands for its version (i.e. 0.1.0 or 0.1.0-SNAPSHOT).

Go into your Platform 4 Tomcat folder :

cd tomcat
unzip extensions/exo-addons-demo-extension-pkg-XXX.zip -d extensions/
./extension.sh -i demo

If you don't have MongoDB running on port 27017 (needed for eXo Chat), add this step :

cp extensions/demo/conf/chat.properties conf/

Step 3 : Start eXo Platform 4

Use eXo start script:

cd tomcat 
./start_eXo.sh

Now, point your browser to http://localhost:8080/portal/ and login with the predefined administrator (login:john ; password:gtngtn)

To stop the server, use eXo stop script: cd tomcat ./stop_eXo.sh #or CTRL+C in your terminal

You should have a link to data-management page on the right of the homescreen.

Clone this wiki locally