With the tutorial-first-su ready, we are now ready to use a Maven archetype to create a service assembly
Just as we started our service unit with a Maven archetype, we are also going to use a Maven archetype (servicemix-service-assembly) to create the SA project. Run this command from the directory that holds your parent pom.xml:
A new service assembly project is generated in the tutorial-sa directory.
Again, to clean up the build output, we change the project's name
We want to add the service unit we created before to the service assembly. The Maven tooling will do this automatically if we add the correct dependency to our SA's pom.xml. We just use the groupId, artifactId and version we find in our service unit's pom.xml here:
Now, run mvn install from the parent directory to get this output:
Now, we are ready to deploy our service assembly. If you have followed the previous tutorial, you already know how to do this using the hot-deploy directory. In our next step, we are going to use the Maven tooling for deployment.
servicemix-service-assembly archetype to quickly create a Maven SA project.