If the project containing your route is a Maven project, you can use the m2eclipse plug-in to run your route. Using this option, you can execute any Maven goals that are required to execute before the route runs.
To run a route using Maven:
Select the root of the project in the Project Explorer.
From the context menu, select
| .The first time you run the project using Maven the Run Configurations editor opens so you can create a runtime profile.
To create the runtime profile:
Ensure that the route directory of your Apache Camel project is in the Base directory: field.
For example on Linux the root of your project will be similar to
~/workspace/simple-router
.Enter
camel:run
into the Goals: field.Click
.
The project runs using the profile used the previous time the project was run using Maven.