This set of pages describes how to develop for the CommunityMashup core.
Attention: Currently, generating classes from the models only works in a Windows environment - When trying to do so in a Mac environment, errors in the models are reported and the generation fails (creates wrong code).
We are using Eclipse as (Java) development environment.
Just install a clean version of the newest release of Eclipse and add the following components (in the given order) - tested with Eclipse 2018-12 (4.10.0) with JDK11 on MacOS:
After having installed Eclipse, you have to import the CommunityMashup core from the GitHub repository:
Next screen(s)
Next screen (Local Destination):
Next screen (Select a wizard)
If there are problems compiling the sources, please check in the Eclipse Workspace Settings that the (Java) Compiler compliance level is set to "1.6" (or higher).
Die technische Lösung des CommunityMashup baut im wesentlichen auf OSGi und EMF auf.
Das CommunityMashup wird in einfache unabhängige Komponenten zerlegt, die sich einzeln konfigurieren, deployen, starten und stopen lassen. Diese Komponenten werden als OSGi Services realisiert.
Für einen Einstieg in die Entwicklung von OSGi Services mit Eclipse und Java bietet sich das OSGI Tutorial von Lars Vogel an.
EMF stellt die Basis des modellbasierten Entwicklungsansatzes des CommunityMashup dar. Mit ihm werden das interne Datenmodell sowie Datenmodelle der einzelnen Quellen modelliert. Des weiteren dient es auch zur Meta-Modellierung von CommunityMashup Konfigurationen.
Als Einstiegspunkt kann das EMF Tutorial von Lars Vogel verwendet werden.
Über das CommuntiyMashup Meta-Modell lassen sich unterschiedlichste einfache und komplexe Mashup-Konfigurationen beschreiben die sich wiederum in unterschiedlichen Deployment-Szenarien wiederfinden können.
For updating the data model, please follow this process:
1) The data model is stored in CommunityMashupCore/model/data.ecore
You may add new classes or add new attributes or functions to the existing classes as needed.
Then you have to save the changes.
2) Then change to CommunityMashupCore/model/mashup.genmodel (select the object)
In the editor you now should select (click on) Data
The do a right click and select "Generate Model Code"
This should generate the interfaces and implementations of the data classes in CommunityMashupCore/src
Now you can check in the edited model and the newly generated data classes.
Nach einer Änderung des Datenmodells oder allgemein der Core-Klassen müssen folgende beiden OSGi-Bundles neu erzeugt und auf den Server hochgeladen werden:
Dazu in Eclipse: Export -> Plugin Development -> Deployable Plugins and Fragments
Content from Atlassian Wiki: