| <?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>3.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> |
| <rootpom.basedir>${basedir}/../..</rootpom.basedir> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>jakarta.persistence</groupId> |
| <artifactId>jakarta.persistence-api</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-jdbc</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-persistence-jdbc</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.zaxxer</groupId> |
| <artifactId>HikariCP</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.bval</groupId> |
| <artifactId>bval-jsr</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-tx</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-jdbc</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-orm</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.aspectj</groupId> |
| <artifactId>aspectjweaver</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-jexl3</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.tika</groupId> |
| <artifactId>tika-core</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.syncope.core</groupId> |
| <artifactId>syncope-core-spring</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <!-- TEST --> |
| <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>com.h2database</groupId> |
| <artifactId>h2</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.bouncycastle</groupId> |
| <artifactId>bcpkix-jdk15on</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.bouncycastle</groupId> |
| <artifactId>bcprov-jdk15on</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-maven-plugin</artifactId> |
| <inherited>true</inherited> |
| <dependencies> |
| <dependency> |
| <groupId>com.h2database</groupId> |
| <artifactId>h2</artifactId> |
| <version>${h2.version}</version> |
| </dependency> |
| </dependencies> |
| <configuration> |
| <persistenceXmlFile>${project.basedir}/src/main/resources/persistence-enhance.xml</persistenceXmlFile> |
| <includes>org/apache/syncope/core/persistence/jpa/entity/**/*.class</includes> |
| <connectionDriverName>org.springframework.jdbc.datasource.DriverManagerDataSource</connectionDriverName> |
| <connectionProperties> |
| driverClassName=org.h2.Driver, |
| url=jdbc:h2:mem:syncopedb |
| username=sa, |
| password= |
| </connectionProperties> |
| </configuration> |
| <executions> |
| <execution> |
| <id>enhancer</id> |
| <phase>process-classes</phase> |
| <goals> |
| <goal>enhance</goal> |
| </goals> |
| </execution> |
| </executions> |
| </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>sqlgen</id> |
| |
| <properties> |
| <skipTests>true</skipTests> |
| </properties> |
| |
| <build> |
| <defaultGoal>clean verify</defaultGoal> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-maven-plugin</artifactId> |
| <inherited>true</inherited> |
| <executions> |
| <execution> |
| <id>sqlgen</id> |
| <phase>process-classes</phase> |
| <goals> |
| <goal>sql</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>schemagen</id> |
| |
| <properties> |
| <skipTests>true</skipTests> |
| </properties> |
| |
| <build> |
| <defaultGoal>clean verify</defaultGoal> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-maven-plugin</artifactId> |
| <inherited>true</inherited> |
| <executions> |
| <execution> |
| <id>schemagen</id> |
| <phase>process-classes</phase> |
| <goals> |
| <goal>schema</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |