...
Code Block |
---|
mvn archetype:create \ -DarchetypeGroupId=org.apache.servicemix.tooling \ -DarchetypeArtifactId=servicemix-archetype-name \ -DgroupId=org.apache.servicemix.samples.embedded \ -DartifactId=servicemix-embedded-example \ -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository |
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.Also, you can omit the -DremoteRepositories parameter if you have previously configured the repository as explained
If you are using an *-incubating
version of ServiceMix (e.g. 3.1.1-incubating), you have to either:
- add an additional parameter (
-DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository
) to the command above - or you can configure the additional repository as desribed in 2.1. Beginner - Configuring Maven
...
smx-arch
ServiceMix also ships with smx-arch
(or smx-arch.bat
for Windows), available in the bin
directory of the distribution. It provides a more convenient way for using the archetypes:
...