Before we can really get started, we have to create a SA project which contains our servicemix-camel SU
Creating the projects
We are going to create 3 Maven projects:
- a servicemix-camel SU project
- a servicemix SA project
- a parent project to hold the previous two
Create the parent project
Start by creating a new directory to hold your project. Add a pom.xml file to it:
Create the servicemix-camel SU project
Use the servicemix-camel-service-unit
Maven archetype to create a first SU project inside the parent directory:
Create the SA project and add the SU
Use the servicemix-service-assembly
Maven archetype to create the SA project:
Don't forget to add the SU as a dependency to the SA's pom.xml:
Cleaning up and doing a first build.
Just do a quick clean-up of the generated pom.xml files (e.g. changing the project names to get more comprehensible logging output) and build the entire project using the command mvn install
in the parent project directory. If everything is OK, the output should look like:
Now that we have created the necessary projects, it's time to really get started with camel
Further reading
- If you have any troubles with this page, be sure to check out 2. Beginner - Using Maven to develop JBI applications
- Maven archetypes gives you an overview of all available Maven archetypes