process-outbox-mongodb-quarkus
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.kie.kogito.examples</groupId> <artifactId>process-outbox-mongodb-quarkus</artifactId> <version>1.25.0.Final</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.kie.kogito.examples</groupId> <artifactId>kogito-quarkus-examples</artifactId> <version>1.25.0.Final</version> </parent> <artifactId>process-outbox-mongodb-quarkus</artifactId> <name>Kogito Example :: Process Transactional Outbox :: MongoDB and Quarkus</name> <description>Process with Transactional Outbox - MongoDB and Quarkus</description> <properties> <DEBEZIUM_VERSION>1.7</DEBEZIUM_VERSION> <quarkus-plugin.version>2.11.0.Final</quarkus-plugin.version> <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id> <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id> <quarkus.platform.version>2.11.0.Final</quarkus.platform.version> <kogito.bom.group-id>org.kie.kogito</kogito.bom.group-id> <kogito.bom.artifact-id>kogito-bom</kogito.bom.artifact-id> <kogito.bom.version>${project.version}</kogito.bom.version> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>${quarkus.platform.group-id}</groupId> <artifactId>${quarkus.platform.artifact-id}</artifactId> <version>${quarkus.platform.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>${kogito.bom.group-id}</groupId> <artifactId>${kogito.bom.artifact-id}</artifactId> <version>${kogito.bom.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>org.kie.kogito</groupId> <artifactId>kogito-quarkus-processes</artifactId> </dependency> <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-resteasy</artifactId> </dependency> <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-resteasy-jackson</artifactId> </dependency> <dependency> <groupId>org.kie.kogito</groupId> <artifactId>kogito-addons-quarkus-persistence-mongodb</artifactId> </dependency> <dependency> <groupId>org.kie.kogito</groupId> <artifactId>kogito-addons-quarkus-events-mongodb</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.kie.kogito</groupId> <artifactId>kogito-quarkus-test-utils</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>io.rest-assured</groupId> <artifactId>rest-assured</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.awaitility</groupId> <artifactId>awaitility</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.jayway.jsonpath</groupId> <artifactId>json-path</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <finalName>${project.artifactId}</finalName> <plugins> <plugin> <artifactId>maven-clean-plugin</artifactId> <configuration> <filesets> <fileset> <directory>${project.basedir}/kogito/target</directory> </fileset> </filesets> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <configuration> <classpathDependencyExcludes> <classpathDependencyExclude>org.jboss.slf4j:slf4j-jboss-logmanager</classpathDependencyExclude> </classpathDependencyExcludes> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>default</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <KOGITO_DOCKERFILE>Dockerfile.jvm</KOGITO_DOCKERFILE> </properties> <build> <plugins> <plugin> <groupId>${quarkus.platform.group-id}</groupId> <artifactId>quarkus-maven-plugin</artifactId> <version>${quarkus-plugin.version}</version> <executions> <execution> <goals> <goal>build</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-quarkus-app</id> <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.basedir}/kogito/target/quarkus-app</outputDirectory> <resources> <resource> <directory>${project.basedir}/target/quarkus-app</directory> </resource> </resources> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <!-- profile for preparing the multistage native build of the kogito service in docker-compose.yml --> <profile> <id>native</id> <properties> <maven.main.skip>true</maven.main.skip> <maven.test.skip>true</maven.test.skip> <KOGITO_DOCKERFILE>Dockerfile.multistage</KOGITO_DOCKERFILE> </properties> <build> <plugins> <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-kogito-source</id> <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.basedir}/kogito/target</outputDirectory> <resources> <resource> <directory>${project.basedir}/../</directory> <targetPath>base</targetPath> <includes> <include>mvnw</include> <include>pom.xml</include> </includes> </resource> <resource> <directory>${project.basedir}/../.mvn</directory> <targetPath>base/.mvn</targetPath> </resource> <resource> <directory>${project.basedir}/</directory> <includes> <include>pom.xml</include> </includes> </resource> <resource> <directory>${project.basedir}/src</directory> <targetPath>src</targetPath> </resource> </resources> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <!-- profile for building the kogito service in docker-compose.yml with kogito/Dockerfile.multistage --> <profile> <id>multistage</id> <properties> <quarkus.package.type>native</quarkus.package.type> </properties> <build> <plugins> <plugin> <groupId>${quarkus.platform.group-id}</groupId> <artifactId>quarkus-maven-plugin</artifactId> <version>${quarkus-plugin.version}</version> <executions> <execution> <goals> <goal>build</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>