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.
Depending on your needs, there are 3 different ways to use these domain implementations in your project:
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
If you need to extend or modify these reference implementations.
- Clone this repository
- import the oslc-domains project to Eclipse (or any other IDE) and modify its content as desired.
- run
mvn install
on the oslc-domains project. - Add the maven dependency to your project as instructed above.
You can also augument and modify the classes graphically using Lyo Designer.
- Clone this repository
- import both the oslc-domains and org.eclipse.lyo.tools.domainmodels projects to Eclipse (Lyo Designer is an Eclipse plugin)
- Modify the model as instructed under use Lyo Designer to model domain specifications.
- generate the java classes, and make sure the generated classes reside under the oslc-domains project.
- Install the oslc-domains maven project and include it in your project as instructed above.