Date: Fri, 29 Mar 2024 15:02:24 +0100 (CET) Message-ID: <1838091118.194.1711720944070@unibw-confluence-pub.va.smhss.de> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_193_1077527869.1711720944070" ------=_Part_193_1077527869.1711720944070 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This set of pages describes how to develop for the CommunityMash= up core.
Attention: Currently, generating classes from the models only wo= rks in a Windows environment - When trying to do so in a Mac environment, e= rrors in the models are reported and the generation fails (creates wrong co= de).
We are using Eclipse as (Java) development environment.
Just install a clean version of the newest release of Eclipse and add th= e 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 c= ore 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=C3=B6sung des CommunityMashup baut im wesentlichen auf = OSGi und EMF auf.
Das CommunityMashup wird in einfache unabh=C3=A4ngige Komponenten zerleg=
t, die sich einzeln konfigurieren, deployen, starten und stopen lassen. Die=
se Komponenten werden als OSGi Services realisiert.
F=C3=BCr einen Einstieg in die Entwicklung von OSGi Services mit Eclipse un=
d Java bietet sich das OSGI Tutorial von La=
rs Vogel an.
EMF stellt die Basis des modellbasierten Entwicklungsansatzes des Commun=
ityMashup dar. Mit ihm werden das interne Datenmodell sowie Datenmodelle de=
r einzelnen Quellen modelliert. Des weiteren dient es auch zur Meta-Modelli=
erung von CommunityMashup Konfigurationen.
Als Einstiegspunkt kann das EMF Tutor=
ial von Lars Vogel verwendet werden.
=C3=9Cber das CommuntiyMashup Meta-Modell lassen sich unterschiedlichste= einfache und komplexe Mashup-Konfigurationen beschreiben die sich wiederum= in unterschiedlichen Deployment-Szenarien wiederfinden k=C3=B6nnen.
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 existi= ng 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 clas= ses in CommunityMashupCore/src
Now you can check in the edited model and the newly generated data class= es.
Nach einer =C3=84nderung des Datenmodells oder allgemein der Core-Klasse= n m=C3=BCssen folgende beiden OSGi-Bundles neu erzeugt und auf den Server h= ochgeladen werden:
Dazu in Eclipse: Export -> Pl= ugin Development -> Deployable Plugins and Fragments
Content from Atlassian Wiki: