Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.
Commentaire: Published by Scroll Versions from space DA and version BM-4.0

...

Sv translation
languageen

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
languagede

Um die Implementierung eines BlueMind-Plugin-Projekts zu vereinfachen, ist ein Maven-Archetyp im BlueMind-Repository verfügbar.

Das Projekt erstellen

Um das Projekt zu erstellen, führen Sie den folgenden Befehl aus:

Bloc de code
mvn archetype:generate -DarchetypeRepository=http://forge.blue-mind.net/nexus/service/local/repositories/snapshots/content/

Wählen Sie den Archetyp net.bluemind.sample.parent-archetype

Das Projekt wird dann im interaktiven Modus erstellt:

Bloc de code
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>

Um z. B. ein "Filehosting"-Plugin zu erstellen, das über das Dateisystem (filesystem) implementiert wird:

Bloc de code
groupId: net.bluemind
artifactId: net.bluemind.filehosting
version: 1.0-SNAPSHOT
package: net.bluemind.filehosting.filesystem
project-artifactId: filehosting.filesystem
Info

Dem ArtefaktId muss nicht "net.bluemind" vorangestellt werden

Aufbau des Projekts

Das 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:

Bloc de code
maven clean install