Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 2.4 KB

README.md

File metadata and controls

46 lines (30 loc) · 2.4 KB

Lyo Domains

This repository contains Java implemenations of the OSLC Domain Specifications as defined by the OASIS OSLC Lifecycle Integration for Domains (OSLC Domains) Technical Committee.

There are 2 projects:

  • oslc-domains is a maven project that contains a set of Java classes that implement a set of OSLC Domain Specifications. The classes are annotated using OSLC4J, and are hence ready to use using the Lyo SDK.

  • org.eclipse.lyo.tools.domainmodels contains a graphical model of the OSLC Domains. The model is defined using Lyo Designer, and from which the above Java classes are generated.

Usage

Depending on your needs, there are 3 different ways to use these domain implementations in your project:

Use the Java class implementations

Simply add the following dependency to your project, and you are ready to create instances of the Java classes:

<dependency>
  <groupId>org.eclipse.lyo</groupId>
  <artifactId>oslc-domains</artifactId>
  <version>${version.lyo}</version>
</dependency>

NOTE! Make sure you configure the pom.xml as for any OSLC project, as described here

Use the Java classes with some modifications

If you need to extend or modify these reference implementations.

  1. Clone this repository
  2. import the oslc-domains project to Eclipse (or any other IDE) and modify its content as desired.
  3. run mvn install on the oslc-domains project.
  4. Add the maven dependency to your project as instructed above.

Graphically modify and extend the OSLC domains

You can also augument and modify the classes graphically using Lyo Designer.

  1. Clone this repository
  2. import both the oslc-domains and org.eclipse.lyo.tools.domainmodels projects to Eclipse (Lyo Designer is an Eclipse plugin)
  3. Modify the model as instructed under use Lyo Designer to model domain specifications.
  4. generate the java classes, and make sure the generated classes reside under the oslc-domains project.
  5. Install the oslc-domains maven project and include it in your project as instructed above.