...
Now, we are going to excerptINLINE
create our first SU module in our project
...
Using a Maven archetype to create the service unit project
ServiceMix provides several Maven archetypes to help you create your projects more rapidly and reliably. We start off by using the servicemix-service-unit
archetype, which is used for creating a service unit project. The groupId for this archetype is org.apache.servicemix.tooling
.
From our tutorial project directory, where we already have the parent pom.xml, we run this command to create a service unit project named tutorial-file-su
:
...
...
Maven executes the archetype and reports BUILD SUCCESSFUL
when it's done.
...
...
What is being generated?
First of all, the archetype creates the project directory, containing:
...
- used the groupId from the parent pom.xml for our new service unit
- added a module to the parent pom.xml
xml xmlCode Block <modules> <module>tutorial-file-su</module> </modules>
Now, we will have to configure the service unit to provide the services we want.
Further reading
- Maven archetypes contains a list of Maven archetypes available with ServiceMix
...
...