<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (C) 2015 The Gravitee team (http://gravitee.io)

    Licensed 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 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>io.gravitee.apim.distribution</groupId>
    <artifactId>gravitee-apim-distribution</artifactId>
    <version>3.18.2</version>
    <relativePath>../../../gravitee-apim-distribution/pom.xml</relativePath>
  </parent>
  <groupId>io.gravitee.apim.gateway.standalone.distribution</groupId>
  <artifactId>gravitee-apim-gateway-standalone-distribution</artifactId>
  <version>3.18.2</version>
  <packaging>pom</packaging>
  <name>Gravitee.io APIM - Gateway - Standalone - Distribution</name>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
      <comments>A business-friendly OSS license</comments>
    </license>
  </licenses>
  <modules>
    <module>gravitee-apim-gateway-standalone-distribution-zip</module>
  </modules>
  <properties>
    <gravitee.gateway.log.dir>${gravitee.home}/logs</gravitee.gateway.log.dir>
    <packaging.gravitee.gateway.conf.dir>/etc/gravitee-gateway</packaging.gravitee.gateway.conf.dir>
    <packaging.gravitee.gateway.log.dir>/var/log/gravitee-gateway</packaging.gravitee.gateway.log.dir>
    <packaging.gravitee.gateway.group>gravitee</packaging.gravitee.gateway.group>
    <packaging.gravitee.gateway.bin.dir>${packaging.gravitee.gateway.home.dir}/bin</packaging.gravitee.gateway.bin.dir>
    <packaging.gravitee.gateway.services.dir>/etc/init.d</packaging.gravitee.gateway.services.dir>
    <packaging.gravitee.gateway.user>gravitee</packaging.gravitee.gateway.user>
    <packaging.gravitee.gateway.home.dir>/usr/share/gravitee-gateway</packaging.gravitee.gateway.home.dir>
    <packaging.gravitee.gateway.pid.dir>/var/run/gravitee-gateway</packaging.gravitee.gateway.pid.dir>
    <packaging.gravitee.gateway.plugins.dir>${packaging.gravitee.gateway.home.dir}/plugins</packaging.gravitee.gateway.plugins.dir>
    <packaging.gravitee.gateway.apis.dir>${packaging.gravitee.gateway.home.dir}/apis</packaging.gravitee.gateway.apis.dir>
  </properties>
  <dependencies>
    <dependency>
      <groupId>io.gravitee.apim.gateway.standalone</groupId>
      <artifactId>gravitee-apim-gateway-standalone-bootstrap</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.gateway.standalone</groupId>
      <artifactId>gravitee-apim-gateway-standalone-container</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.gateway.services</groupId>
      <artifactId>gravitee-apim-gateway-services-healthcheck</artifactId>
      <version>${project.version}</version>
      <type>zip</type>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.gateway.services</groupId>
      <artifactId>gravitee-apim-gateway-services-sync</artifactId>
      <version>${project.version}</version>
      <type>zip</type>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.gateway.services</groupId>
      <artifactId>gravitee-apim-gateway-services-localregistry</artifactId>
      <version>${project.version}</version>
      <type>zip</type>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.gateway.services</groupId>
      <artifactId>gravitee-apim-gateway-services-heartbeat</artifactId>
      <version>${project.version}</version>
      <type>zip</type>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.gateway.services</groupId>
      <artifactId>gravitee-apim-gateway-services-endpoint-discovery</artifactId>
      <version>${project.version}</version>
      <type>zip</type>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.gateway.services</groupId>
      <artifactId>gravitee-apim-gateway-services-debug</artifactId>
      <version>${project.version}</version>
      <type>zip</type>
      <scope>runtime</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>default-jar</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <id>make-plugin-assembly</id>
            <phase>none</phase>
          </execution>
          <execution>
            <id>make-distribution</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
            <configuration>
              <attach>false</attach>
              <finalName>distribution</finalName>
              <appendAssemblyId>false</appendAssemblyId>
              <descriptors>
                <descriptor>src/main/assembly/plugin-assembly-distribution.xml</descriptor>
              </descriptors>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
