kie-addons-persistence-postgresql
Used in: 2 components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
Overview
Description
PostgreSQL based persistence for KIE
Snippets
<dependency> <groupId>org.kie</groupId> <artifactId>kie-addons-persistence-postgresql</artifactId> <version>10.0.0</version> </dependency>
Maven POM File
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.kie</groupId> <artifactId>kie-addons-persistence-parent</artifactId> <version>10.0.0</version> </parent> <artifactId>kie-addons-persistence-postgresql</artifactId> <name>KIE :: Add-Ons :: Persistence :: PostgreSQL</name> <description>PostgreSQL based persistence for KIE</description> <properties> <path.to.jdbc.addon>../jdbc</path.to.jdbc.addon> <path.to.script.folder>src/main/resources/db</path.to.script.folder> <path.to.migration.scripts.from>${path.to.jdbc.addon}/${path.to.script.folder}/postgresql</path.to.migration.scripts.from> <path.to.migration.scripts.to>${path.to.script.folder}/migration</path.to.migration.scripts.to> <java.module.name>org.kie.kogito.persistence.postgresql</java.module.name> </properties> <dependencies> <dependency> <groupId>org.kie.kogito</groupId> <artifactId>kogito-api</artifactId> </dependency> <!-- PostgreSQL --> <dependency> <groupId>io.vertx</groupId> <artifactId>vertx-pg-client</artifactId> </dependency> <dependency> <groupId>org.kie.kogito</groupId> <artifactId>process-serialization-protobuf</artifactId> </dependency> <!-- test dependencies --> <dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-core</artifactId> <version>${version.org.flywaydb}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>${version.org.postgresql}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.kie.kogito</groupId> <artifactId>kogito-test-utils</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.kie.kogito</groupId> <artifactId>jbpm-flow-builder</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.kie.kogito</groupId> <artifactId>jbpm-bpmn2</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/resources</directory> </resource> </resources> <plugins> <plugin> <groupId>io.smallrye</groupId> <artifactId>jandex-maven-plugin</artifactId> <executions> <execution> <id>make-index</id> <goals> <goal>jandex</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <configuration> <filesets> <fileset> <directory>${path.to.script.folder}</directory> </fileset> </filesets> </configuration> </plugin> <!-- The cleanest way would be to use the maven-dependency-plugin to unpack and copy scripts from the built artifact `kie-addons-persistence-jdbc` but there's a limitation to using this only in the `package` phase whereas we need that into the `generate-sources` phase. See also https://issues.apache.org/jira/browse/MDEP-98 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-resource-one</id> <phase>generate-sources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${path.to.migration.scripts.to}</outputDirectory> <resources> <resource> <directory>${path.to.migration.scripts.from}</directory> </resource> </resources> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>