Jump to: navigation, search

Difference between revisions of "Lyo/BuildRIO"

< Lyo
m
Line 40: Line 40:
 
You should now be able to point a local web browser at '''http://localhost:8080/rio-cm''' and start working with the reference implementation.
 
You should now be able to point a local web browser at '''http://localhost:8080/rio-cm''' and start working with the reference implementation.
  
= Building and Running the Lyo RIO project using Git and Maven
+
= Building and Running the Lyo RIO project using Git and Maven =
 +
== Prerequistes ==
 +
* [http://git-scm.com/download git command line package]
 +
* [http://maven.apache.org/download.html Apache Maven]
 
== Clone the RIO git repository
 
== Clone the RIO git repository
 
* git clone -b master git://git.eclipse.org/gitroot/lyo/org.eclipse.lyo.rio.git
 
* git clone -b master git://git.eclipse.org/gitroot/lyo/org.eclipse.lyo.rio.git
 +
== Build the projects ==
 +
* Build Core
 +
** cd to org.eclipse.lyo.rio.core in git repository
 +
** mvn install
 +
** cd to org.eclipse.lyo.rio.template-webapp in git repository
 +
** mvn install
 +
* Build CM RIO (for example)
 +
** cd to org.eclipse.lyo.rio.cm
 +
** mvn install
 +
== Run the RIO web application
 +
** cd to the desired RIO directory (am/cm/rm)
 +
** mvn jetty:run-exploded
 +
 +
You should now be able to point a local web browser at '''http://localhost:8080/rio-cm''' and start working with the reference implementation.

Revision as of 14:47, 19 October 2011

Building and Running Lyo reference implementations (RIOs) in Eclipse

Prerequisites

Clone the Lyo RIO git repository

This example assumes EGit is being used

Lyo-rio-git-repo.png

  • On the Branch Selection page, select the master branch
  • On the Local Destination page, specify a location or accept the default and click Finish

The repository should now show up in your Git Repositories view

Import Eclipse projects from the git repository

  • In the Git Repositories view, right click org.eclipse.lyo.rio and select Import Projects
  • Select the Import Existing Projects wizard and click next
  • Select all components of RIO

Lyo-rio-import-projects.png

Build the projects

  • In the Eclipse Package Explorer view, select all RIO projects, right click and select Maven->Update Project Configuration and click OK
  • Build each project starting with org.eclipse.lyo.rio.core
    • Expand the project
    • Right click pom.xml and select Run As->Maven install. Depending on what plugins are in your Eclipse install, Maven might have to download dependencies
    • After org.eclipse.lyo.rio.core, build org.eclipse.lyo.rio.template-webabb followed by the three reference webapps (CM, RM, AM) in any order.
  • If org.eclipse.lyo.rio.core still shows an error, right click the project and select Maven->Update Project Configuration again.

Run a reference implementation

This example is for the CM provider.

  • Select Run->Run Configurations and double click Maven Build
  • Give the configuration a name
  • Specify a base directory of ${workspace_loc:/org.eclipse.lyo.rio.cm} and a goal of jetty:run-exploded and Click Run

Lyo-rio-launch-config-2.png

You should now be able to point a local web browser at http://localhost:8080/rio-cm and start working with the reference implementation.

Building and Running the Lyo RIO project using Git and Maven

Prerequistes

== Clone the RIO git repository

Build the projects

  • Build Core
    • cd to org.eclipse.lyo.rio.core in git repository
    • mvn install
    • cd to org.eclipse.lyo.rio.template-webapp in git repository
    • mvn install
  • Build CM RIO (for example)
    • cd to org.eclipse.lyo.rio.cm
    • mvn install

== Run the RIO web application

    • cd to the desired RIO directory (am/cm/rm)
    • mvn jetty:run-exploded

You should now be able to point a local web browser at http://localhost:8080/rio-cm and start working with the reference implementation.