-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat Fuse
Chapter 7. Running routes inside Red Hat JBoss Fuse Tooling
There are two basic ways to run your routes using the tooling:
7.1. Running routes using Maven
Overview
If the project containing your route is a Maven project, you can use the m2e plug-in to run your route. Using this option, you can execute any Maven goals, before the route runs.
Procedure
To run a route using Maven:
- In Project Explorer, select the root of the project .
- Right-click it to open the context menu, and then select Run As → Maven build.
- The first time you run the project using Maven the Edit Configuration and launch editor opens, so you can create a Maven runtime profile.To create the runtime profile:
- Make sure the route directory of your Apache Camel project appears in the Base directory: field.For example on Linux the root of your project will be similar to
~/workspace/simple-router
. - In the Goals: field, enter
camel:run
. - Click Apply and then Run.
- Subsequent Maven runs use this profile, unless you modify it between runs.
Results
The Console view displays the output from the Maven run.
Related topics
Section 7.3.2, “Editing a Maven runtime profile” |