Apache ServiceMix provides a set of Maven archetypes for many different purposes, such as for creation of JBI components, service assemblies or service units for particular ServiceMix components.
...
Code Block |
---|
mvn archetype:create \ -DarchetypeGroupId=org.apache.servicemix.tooling \ -DarchetypeArtifactId=servicemix-archetype-name \ -DarchetypeVersion=archetype-version \ -DgroupId=org.apache.servicemix.samples.embedded \ -DartifactId=servicemix-embedded-example \ -Dversion=1.0-SNAPSHOT |
You need to replace servicemix-archetype-name
by the name of the archetype you want to utilize.
This will use the latest released version of the archetype available in the repository. Optionally, you can also specify a specific version to use with the -DarchetypeVersion=VERSION parameter.
...
- add an additional parameter (
-DremoteRepositories=http://repository.apache.org/content/groups/public
) to the command above - or you can configure the additional repository as described in Configuring Maven (3.x-incubating versions only)
...
Here is a list of the ServiceMix archetypes that are available. You can also take a look at the current list of available archetypes at https://repository.apache.org/content/groups/public/ or in the archetypes
directory in a ServiceMix source distribution.
...