| <?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>4.0.0-SNAPSHOT</version> |
| </parent> |
| |
| <name>Apache Syncope Core Spring Boot Self Keymaster</name> |
| <description>Apache Syncope Core Spring Boot Self Keymaster</description> |
| <groupId>org.apache.syncope.core</groupId> |
| <artifactId>syncope-core-self-keymaster-starter</artifactId> |
| <packaging>jar</packaging> |
| |
| <properties> |
| <rootpom.basedir>${basedir}/../..</rootpom.basedir> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.syncope.core</groupId> |
| <artifactId>syncope-core-starter</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.syncope.common.keymaster.self</groupId> |
| <artifactId>syncope-common-keymaster-self-rest-api</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.syncope.common.keymaster.self</groupId> |
| <artifactId>syncope-common-keymaster-self-rest-api</artifactId> |
| <version>${project.version}</version> |
| <classifier>javadoc</classifier> |
| </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>${rootpom.basedir}/core/persistence-jpa/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> |
| </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>debug</id> |
| |
| <properties> |
| <maven.build.cache.skipCache>true</maven.build.cache.skipCache> |
| <skipTests>true</skipTests> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-undertow</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.h2database</groupId> |
| <artifactId>h2</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <defaultGoal>clean package</defaultGoal> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| <configuration> |
| <mainClass>org.apache.syncope.core.starter.SyncopeCoreApplication</mainClass> |
| <jvmArguments> |
| -Dsyncope.connid.location=file:${basedir}/../provisioning-java/target/bundles |
| -XX:HotswapAgent=fatjar |
| -Xdebug -Xrunjdwp:transport=dt_socket,address=8002,server=y,suspend=n |
| </jvmArguments> |
| <profiles> |
| <profile>debug</profile> |
| </profiles> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| |
| <resources> |
| <resource> |
| <directory>${basedir}/src/test/resources</directory> |
| <filtering>true</filtering> |
| <includes> |
| <include>*.properties</include> |
| </includes> |
| </resource> |
| </resources> |
| </build> |
| </profile> |
| </profiles> |
| </project> |