Historique de la page
...
Sv translation | ||
---|---|---|
| ||
To simplify the process of setting up a BlueMind plugin project, a Maven archetype is available in the BlueMind repository. Creating the project:To create the project you will need to execute following command: mvn archetype:generate -DarchetypeCatalog=http://forge.blue-mind.net/nexus-2.7.2-03/service/local/repositories/snapshots/content/ Choose the archetype "net.bluemind.sample.parent-archetype" which should be the only option available. The project will be created in interactive mode: groupId: net.bluemind artifactId: <the general artifactId of the plugin> version: 1.0-SNAPSHOT package: <the base java package> project-artifactId: <the specific artifactId of the plugin implementation> If, for example, you want to develop a "filehosting" plugin which will be implemented using the filesystem, you would answer the questions as follows: groupId: net.bluemind artifactId: net.bluemind.filehosting version: 1.0-SNAPSHOT package: net.bluemind.filehosting.filesystem project-artifactId: filehosting.filesystem Notice, that you don't need to prefix the project-artifactId with "net.bluemind" Building the project:The created project will contain a parent maven project with 2 sub-modules, one for the implementation, the other for unit- and integration tests. All necessary dependencies to BlueMind and 3-party libraries are automatically added to the OSGI Manifest. To build the project execute following command in the root folder of your newly created project: maven clean install |
Sv translation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
Um die Implementierung eines BlueMind-Plugin-Projekts zu vereinfachen, ist ein Maven-Archetyp im BlueMind-Repository verfügbar. Das Projekt erstellenUm das Projekt zu erstellen, führen Sie den folgenden Befehl aus:
Wählen Sie den Archetyp Das Projekt wird dann im interaktiven Modus erstellt:
Um z. B. ein "Filehosting"-Plugin zu erstellen, das über das Dateisystem (filesystem) implementiert wird:
Aufbau des ProjektsDas erstellte Projekt enthält ein übergeordnetes Maven-Projekt, das wiederum 2 Untermodule enthält: eines für die Implementierung, das andere für Unit- und Integrationstests. Alle erforderlichen BlueMind-Abhängigkeiten und Bibliotheken von Drittanbietern werden dem Manifest automatisch hinzugefügt. Um das Projekt zu erstellen, führen Sie den folgenden Befehl aus dem Stammverzeichnis Ihres neuen Projekts aus:
|