| <?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 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.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> |
| <executions> |
| <execution> |
| <id>enhance</id> |
| <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>debug</id> |
| |
| <properties> |
| <maven.build.cache.skipCache>true</maven.build.cache.skipCache> |
| <skipTests>true</skipTests> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.syncope.core</groupId> |
| <artifactId>syncope-core-metrics-starter</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.syncope.core.idm</groupId> |
| <artifactId>syncope-core-idm-rest-cxf</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.syncope.core.am</groupId> |
| <artifactId>syncope-core-am-rest-cxf</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.postgresql</groupId> |
| <artifactId>postgresql</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <defaultGoal>clean io.fabric8:docker-maven-plugin:start package</defaultGoal> |
| |
| <plugins> |
| <plugin> |
| <groupId>io.fabric8</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <configuration> |
| <images> |
| <image> |
| <alias>postgres</alias> |
| <name>postgres:${docker.postgresql.version}</name> |
| <run> |
| <env> |
| <POSTGRES_DB>syncope</POSTGRES_DB> |
| <POSTGRES_USER>syncope</POSTGRES_USER> |
| <POSTGRES_PASSWORD>syncope</POSTGRES_PASSWORD> |
| </env> |
| <wait> |
| <log>database system is ready to accept connections</log> |
| <time>30000</time> |
| </wait> |
| <tmpfs> |
| <mount>/var/lib/postgresql/docker:rw</mount> |
| </tmpfs> |
| </run> |
| </image> |
| </images> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| <configuration> |
| <mainClass>org.apache.syncope.core.starter.SyncopeCoreApplication</mainClass> |
| <environmentVariables> |
| <DB_CONTAINER_IP>${docker.container.postgres.ip}</DB_CONTAINER_IP> |
| </environmentVariables> |
| <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> |