2.3. 运行 Quarkus 应用程序


您可以按照以下步骤将 HawtIO 附加到 Quarkus 应用程序。

流程

  1. io.hawt:hawtio-quarkus 和支持的 Camel Quarkus 扩展添加到 pom.xml 中的依赖项:

    <dependencyManagement>
      <dependencies>
        <dependency>
          <groupId>io.hawt</groupId>
          <artifactId>hawtio-bom</artifactId>
          <version>4.1.0.redhat-00015</version>
          <type>pom</type>
          <scope>import</scope>
        </dependency>
      </dependencies>
      <!-- ... other BOMs or dependencies ... -->
    </dependencyManagement>
    
    <dependencies>
      <dependency>
        <groupId>io.hawt</groupId>
        <artifactId>hawtio-quarkus</artifactId>
      </dependency>
    
       <!-- Mandatory for enabling Camel management via JMX / HawtIO -->
      <dependency>
        <groupId>org.apache.camel.quarkus</groupId>
        <artifactId>camel-quarkus-management</artifactId>
      </dependency>
    
      <!-- (Optional) Required for HawtIO Camel route diagram tab -->
      <dependency>
        <groupId>org.apache.camel.quarkus</groupId>
        <artifactId>camel-quarkus-jaxb</artifactId>
      </dependency>
    
      <!-- ... other dependencies ... -->
    </dependencies>
    Copy to Clipboard Toggle word wrap
  2. 通过将以下配置添加到 application.properties 来禁用身份验证:

    quarkus.hawtio.authenticationEnabled = false
    Copy to Clipboard Toggle word wrap
    1. 您还可以配置身份验证。请参阅"Quarkus 身份验证机制"。
  3. 在开发模式下运行带有 Quarkus 应用程序的 HawtIO,如下所示:

    mvn compile quarkus:dev
    Copy to Clipboard Toggle word wrap
  4. 打开 http://localhost:8080/hawtio/ 以查看 HawtIO 控制台。
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat