Chapter 3. Installing the Quarkus Narayana JTA extension

You need to add the quarkus-narayana-jta extension as a dependency to your Quarkus project. If you are using Hibernate ORM, the quarkus-narayana-jta extension is already present in your project.

Prerequisites

  • Have a Quarkus Maven project.

Procedure

  1. Navigate to the root directory of your project.

    cd <directory_name>
  2. Use one of the following methods to add the quarkus-narayana-jta extension to your Quarkus project:

    1. Add the quarkus-narayana-jta extension to your pom.xml file:

      <dependency>
          <groupId>io.quarkus</groupId>
          <artifactId>quarkus-narayana-jta</artifactId>
      </dependency>
    2. Add the quarkus-narayana-jta extension using the command line:

      ./mvnw quarkus:add-extension -Dextensions="narayana-jta"