| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.syncope</groupId> |
| <artifactId>syncope-core</artifactId> |
| <version>5.0.0-SNAPSHOT</version> |
| </parent> |
| |
| <name>Apache Syncope Core Persistence JPA</name> |
| <description>Apache Syncope Core Persistence JPA</description> |
| <groupId>org.apache.syncope.core</groupId> |
| <artifactId>syncope-core-persistence-jpa</artifactId> |
| <packaging>jar</packaging> |
| |
| <properties> |
| <syncope.connid.location>file:${bundles.directory}/</syncope.connid.location> |
| |
| <DB_TYPE>POSTGRESQL</DB_TYPE> |
| <jdbcdriver.groupId>org.postgresql</jdbcdriver.groupId> |
| <jdbcdriver.artifactId>postgresql</jdbcdriver.artifactId> |
| |
| <rootpom.basedir>${basedir}/../..</rootpom.basedir> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-data-jpa</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.hibernate.orm</groupId> |
| <artifactId>hibernate-jcache</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.syncope.core</groupId> |
| <artifactId>syncope-core-persistence-common</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <!-- TEST --> |
| <dependency> |
| <groupId>com.github.ben-manes.caffeine</groupId> |
| <artifactId>jcache</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>${jdbcdriver.groupId}</groupId> |
| <artifactId>${jdbcdriver.artifactId}</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.bouncycastle</groupId> |
| <artifactId>bcpkix-jdk18on</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.bouncycastle</groupId> |
| <artifactId>bcprov-jdk18on</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.servlet</groupId> |
| <artifactId>jakarta.servlet-api</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-simple</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jcl-over-slf4j</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-validation</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.zonky.test</groupId> |
| <artifactId>embedded-postgres</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>testcontainers-mysql</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>testcontainers-mariadb</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>testcontainers-oracle-free</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.hibernate.orm</groupId> |
| <artifactId>hibernate-maven-plugin</artifactId> |
| <configuration> |
| <fileSets> |
| <fileset> |
| <directory>${project.build.outputDirectory}/org/apache/syncope/core/persistence/jpa/entity/</directory> |
| </fileset> |
| </fileSets> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.syncope.core</groupId> |
| <artifactId>syncope-core-persistence-common</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| <executions> |
| <execution> |
| <id>enhance</id> |
| <goals> |
| <goal>enhance</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <systemPropertyVariables> |
| <syncope.connid.location>${syncope.connid.location}</syncope.connid.location> |
| <TESTCONTAINERS_REUSE_ENABLE>true</TESTCONTAINERS_REUSE_ENABLE> |
| <org.jboss.logging.provider>slf4j</org.jboss.logging.provider> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| </plugin> |
| </plugins> |
| |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| <testResources> |
| <testResource> |
| <directory>src/test/resources</directory> |
| <filtering>true</filtering> |
| </testResource> |
| </testResources> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>mysql</id> |
| |
| <properties> |
| <DB_TYPE>MYSQL</DB_TYPE> |
| <jdbcdriver.groupId>com.mysql</jdbcdriver.groupId> |
| <jdbcdriver.artifactId>mysql-connector-j</jdbcdriver.artifactId> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>mariadb</id> |
| |
| <properties> |
| <DB_TYPE>MARIADB</DB_TYPE> |
| <jdbcdriver.groupId>org.mariadb.jdbc</jdbcdriver.groupId> |
| <jdbcdriver.artifactId>mariadb-java-client</jdbcdriver.artifactId> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>oracle</id> |
| |
| <properties> |
| <DB_TYPE>ORACLE</DB_TYPE> |
| <jdbcdriver.groupId>com.oracle.database.jdbc</jdbcdriver.groupId> |
| <jdbcdriver.artifactId>ojdbc11</jdbcdriver.artifactId> |
| </properties> |
| </profile> |
| </profiles> |
| |
| </project> |