Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.此内容没有您所选择的语言版本。
10.2. 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
. - 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
. - Clickand then .
- 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 10.3.2, “Editing a Maven runtime profile” |