Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Using a Maven archetype, we will create a simple project whose job is to simply bundle up other project. Below is the command to create the SA Maven project. You may replace the -DarchetypeVersion with whatever ServiceMix version you are using:

No Format
$ mvn archetype:create \
  -DarchetypeGroupId=org.apache.servicemix.tooling \
  -DarchetypeArtifactId=servicemix-service-assembly \
  -DarchetypeVersion=3.2.1 \
  -[SMX_HOME]/bin/mvn-arch sa
  -DgroupId=com.mycompany \
  -DartifactId=my-sa \
  -DremoteRepositories=http://repo1.maven.org/maven2

The command above utilizes the servicemix-service-assembly Maven archetype to create a Maven project named my-sa. This command creates a directory named my-sa that contains a Maven project skeleton meaning all the necessary files are in place, you simply need to enter the correct values for the configuration. Below is the directory structure created by this archetype:

...