How-to Guides

Creating a Bundle from an Archetype

  1. Navigate to the folder where the bundle should be generated. The folder must not contain a pom.xml file.

  2. Execute one of the commands below in the command line.

For a bundle with an endpoint:

mvn archetype:generate \
    -DarchetypeGroupId=ru.citeck.ecos.bundle \
    -DarchetypeArtifactId=ecos-web-endpoint-bundle-archetype \
    -DarchetypeVersion=1.0-SNAPSHOT \
    -DgroupId=<new_bundle_groupId> \
    -DartifactId=<new_bundle_artefactId>

For a simple bundle:

mvn archetype:generate \
    -DarchetypeGroupId=ru.citeck.ecos.bundle \
    -DarchetypeArtifactId=ecos-osgi-bundle-archetype \
    -DarchetypeVersion=1.0-SNAPSHOT \
    -DgroupId=<new_bundle_groupId> \
    -DartifactId=<new_bundle_artefactId>