<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>pl.fhframework</groupId>
  <artifactId>fh-boot-bom</artifactId>
  <version>4.8.14</version>
  <packaging>pom</packaging>
  <url>https://github.com/assecopl/fh</url>
  <name>fh-boot</name>
  <description>Boot dependencies information set</description>
  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.1.0.RELEASE</version>
  </parent>
  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>Gabriel Kurzac</name>
      <email>gabriel.kurzac@asseco.pl</email>
      <organization>Asseco Poland S.A.</organization>
      <organizationUrl>https://pl.asseco.com</organizationUrl>
    </developer>
  </developers>
  <distributionManagement>
    <snapshotRepository>
      <id>nexus-snapshots</id>
      <url>http://172.25.107.188:8081/repository/icdts-snapshots/</url>
    </snapshotRepository>
    <repository>
      <id>nexus-releases</id>
      <url>http://172.25.107.188:8081/repository/icdts-releases/</url>
    </repository>
  </distributionManagement>
  <scm>
    <connection>scm:git:https://crkz.poland.asseco.corp/par/luna/luna-4-8</connection>
    <developerConnection>scm:git:https://crkz.poland.asseco.corp/par/luna/luna-4-8</developerConnection>
    <url>https://crkz.poland.asseco.corp/par/luna/luna-4-8</url>
  </scm>
  <properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <java.version>1.8</java.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <cxf.version>3.1.6</cxf.version>
    <version.infinispan.starter>2.0.0.Final</version.infinispan.starter>
    <version.roaster>2.20.0.Final</version.roaster>
    <fh.version>4.8.14</fh.version>
    <fh.version.display>${fh.version}</fh.version.display>
    <springboot.version>2.1.0.RELEASE</springboot.version>
    <hibernate.version>5.4.1.Final</hibernate.version>
    <aspectj.version>1.9.4</aspectj.version>
    <bom.dir>${user.dir}/BOM</bom.dir>
    <config.dir.name>config</config.dir.name>
    <config.dir>${project.build.sourceDirectory}/../resources/${config.dir.name}/</config.dir>
  </properties>
  <profiles>
    <profile>
      <id>release</id>
      <properties>
        <packaging.type>jar</packaging.type>
        <application.properties.file>
                    springboot-application.properties
                </application.properties.file>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>2.2.1</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.9.1</version>
            <configuration/>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.7</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.5</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>springboot</id>
      <activation>
        <property>
          <name>!skip-springboot</name>
        </property>
      </activation>
      <properties>
        <packaging.type>jar</packaging.type>
        <application.properties.file>
                    springboot-application.properties
                </application.properties.file>
      </properties>
      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>pl.fhframework</groupId>
            <artifactId>fh-springboot-bom</artifactId>
            <version>4.8.14</version>
            <scope>import</scope>
            <type>pom</type>
          </dependency>
        </dependencies>
      </dependencyManagement>
      <dependencies>
        <dependency>
          <groupId>org.hibernate</groupId>
          <artifactId>hibernate-core</artifactId>
          <version>${hibernate.version}</version>
        </dependency>
        <dependency>
          <groupId>org.hibernate</groupId>
          <artifactId>hibernate-entitymanager</artifactId>
          <version>${hibernate.version}</version>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-aop</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-thymeleaf</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-jta-atomikos</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-tomcat</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-websocket</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-test</artifactId>
          <scope>test</scope>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>fh-standalone</id>
      <activation>
        <property>
          <name>!skip-fh-standalone</name>
        </property>
      </activation>
      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>pl.fhframework</groupId>
            <artifactId>fh-springboot-bom</artifactId>
            <version>4.8.14</version>
            <scope>import</scope>
            <type>pom</type>
          </dependency>
        </dependencies>
      </dependencyManagement>
      <dependencies>
        <dependency>
          <groupId>pl.fhframework</groupId>
          <artifactId>fhJpa-standalone</artifactId>
        </dependency>
        <dependency>
          <groupId>pl.fhframework</groupId>
          <artifactId>cache-standalone</artifactId>
        </dependency>
        <dependency>
          <groupId>pl.fhframework</groupId>
          <artifactId>pubsub-standalone</artifactId>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>fh-tomcat</id>
      <activation>
        <property>
          <name>!skip-fh-tomcat</name>
        </property>
      </activation>
      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>pl.fhframework</groupId>
            <artifactId>fh-springboot-bom</artifactId>
            <version>4.8.14</version>
            <scope>import</scope>
            <type>pom</type>
          </dependency>
        </dependencies>
      </dependencyManagement>
      <dependencies>
        <dependency>
          <groupId>pl.fhframework</groupId>
          <artifactId>fhTomcat-config</artifactId>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>fh-h2</id>
      <activation>
        <property>
          <name>!skip-fh-h2</name>
        </property>
      </activation>
      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>pl.fhframework</groupId>
            <artifactId>fh-springboot-bom</artifactId>
            <version>4.8.14</version>
            <scope>import</scope>
            <type>pom</type>
          </dependency>
        </dependencies>
      </dependencyManagement>
      <dependencies>
        <dependency>
          <groupId>com.h2database</groupId>
          <artifactId>h2</artifactId>
        </dependency>
        <dependency>
          <groupId>org.orbisgis</groupId>
          <artifactId>h2gis-functions</artifactId>
          <version>1.3.2</version>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>jboss-eap6.4</id>
      <properties>
        <packaging.type>war</packaging.type>
        <application.properties.file>
                    jboss-eap6.4-application.properties
                </application.properties.file>
      </properties>
      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>pl.fhframework</groupId>
            <artifactId>fh-jboss-eap6.4-bom</artifactId>
            <version>4.8.14</version>
            <scope>import</scope>
            <type>pom</type>
          </dependency>
        </dependencies>
      </dependencyManagement>
      <dependencies>
        <dependency>
          <groupId>pl.fhframework</groupId>
          <artifactId>fhJpa-jee</artifactId>
          <version>${fh.version}</version>
        </dependency>
        <dependency>
          <groupId>org.springframework.security</groupId>
          <artifactId>spring-security-config</artifactId>
        </dependency>
      </dependencies>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.8</version>
            <executions>
              <execution>
                <phase>validate</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks>
                    <echoproperties/>
                  </tasks>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <version>3.1.0</version>
            <configuration>
              <webXml>
                                ${config.dir}/jboss-eap6.4-web.xml
                            </webXml>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>jboss-eap7.2</id>
      <properties>
        <packaging.type>war</packaging.type>
      </properties>
      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>pl.fhframework</groupId>
            <artifactId>fh-jboss-eap7.2-bom</artifactId>
            <version>4.1.4</version>
            <scope>import</scope>
            <type>pom</type>
          </dependency>
        </dependencies>
      </dependencyManagement>
      <dependencies>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-tomcat</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>pl.fhframework</groupId>
          <artifactId>fhJpa-jee</artifactId>
          <version>${fh.version}</version>
        </dependency>
        <dependency>
          <groupId>javax</groupId>
          <artifactId>javaee-api</artifactId>
          <version>7.0</version>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.hibernate</groupId>
          <artifactId>hibernate-core</artifactId>
          <version>5.3.7.Final-redhat-00001</version>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.infinispan</groupId>
          <artifactId>infinispan-core</artifactId>
          <version>${infinispan.version}</version>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.infinispan</groupId>
          <artifactId>infinispan-commons</artifactId>
          <version>${infinispan.version}</version>
          <scope>provided</scope>
        </dependency>
      </dependencies>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.8</version>
            <executions>
              <execution>
                <phase>validate</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks>
                    <echoproperties/>
                  </tasks>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <version>3.1.0</version>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <repositories>
    <repository>
      <id>osgeo</id>
      <name>Open Source Geospatial Foundation Repository</name>
      <url>https://repo.osgeo.org/repository/release/</url>
    </repository>
  </repositories>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.12</version>
        <executions>
          <execution>
            <id>timestamp-property</id>
            <goals>
              <goal>timestamp-property</goal>
            </goals>
            <phase>validate</phase>
            <configuration>
              <name>defaultRevision</name>
              <pattern>yyMMddHHmm</pattern>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>buildnumber-maven-plugin</artifactId>
        <version>1.4</version>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>create</goal>
              <goal>create-timestamp</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <doCheck>false</doCheck>
          <doUpdate>false</doUpdate>
          <timestampPropertyName>buildTimestamp</timestampPropertyName>
          <timestampFormat>{0,date,yyyy-MM-dd HH:mm:ss}</timestampFormat>
          <revisionOnScmFailure>${fh.version.display}.${defaultRevision}</revisionOnScmFailure>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
