此内容没有您所选择的语言版本。

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:
  1. In Project Explorer, select the root of the project .
  2. 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:
      1. 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.
      2. In the Goals: field, enter camel:run.
      3. 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 10.3.2, “Editing a Maven runtime profile”
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.