<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2015-2017 floragunn 
	GmbH 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>com.floragunn</groupId>
    <artifactId>search-guard-suite-parent</artifactId>
    <version>7.11.2-50.3.0</version>
  </parent>
  <groupId>com.floragunn</groupId>
  <artifactId>search-guard-suite-plugin</artifactId>
  <version>7.11.2-50.3.0</version>
  <packaging>pom</packaging>
  <name>Search Guard Suite - Plugin</name>
  <properties>
    <elasticsearch.assembly.descriptor>${basedir}/src/main/assemblies/plugin.xml</elasticsearch.assembly.descriptor>
    <veracode.descriptor>${basedir}/src/main/assemblies/veracode.xml</veracode.descriptor>
    <sgstandalone.descriptor>${basedir}/src/main/assemblies/sgadmin-standalone.xml</sgstandalone.descriptor>
  </properties>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-resources</id>
            <phase>package</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${basedir}</outputDirectory>
              <resources>
                <resource>
                  <directory>src/main/descriptor</directory>
                  <filtering>true</filtering>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <configuration>
          <filesets>
            <fileset>
              <directory>${project.basedir}</directory>
              <includes>
                <include>plugin-descriptor.properties</include>
              </includes>
            </fileset>
          </filesets>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>dlic</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>3.1.1</version>
            <executions>
              <execution>
                <id>plugin</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <appendAssemblyId>false</appendAssemblyId>
                  <tarLongFileMode>posix</tarLongFileMode>
                  <outputDirectory>/builds/floragunncom/devops/release-support/search-guard-suite/plugin/target/releases/</outputDirectory>
                  <descriptors>
                    <descriptor>/builds/floragunncom/devops/release-support/search-guard-suite/plugin/src/main/assemblies/plugin.xml</descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>com.floragunn</groupId>
            <artifactId>checksum-maven-plugin</artifactId>
            <version>1.7.1</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>files</goal>
                </goals>
                <configuration>
                  <fileSets>
                    <fileSet>
                      <directory>/builds/floragunncom/devops/release-support/search-guard-suite/plugin/target/releases/</directory>
                      <includes>
                        <include>*.zip</include>
                      </includes>
                      <excludes>
                        <exclude>*sgadmin*</exclude>
                      </excludes>
                    </fileSet>
                  </fileSets>
                  <algorithms>
                    <algorithm>SHA-512</algorithm>
                  </algorithms>
                  <individualFiles>true</individualFiles>
                  <appendFilename>true</appendFilename>
                  <attachChecksums>true</attachChecksums>
                  <csvSummary>false</csvSummary>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <fileSets>
                <fileSet>
                  <directory>/builds/floragunncom/devops/release-support/search-guard-suite/plugin/target/releases/</directory>
                  <includes>
                    <include>*.zip</include>
                  </includes>
                  <excludes>
                    <exclude>*sgadmin*</exclude>
                  </excludes>
                </fileSet>
              </fileSets>
              <algorithms>
                <algorithm>SHA-512</algorithm>
              </algorithms>
              <individualFiles>true</individualFiles>
              <appendFilename>true</appendFilename>
              <attachChecksums>true</attachChecksums>
              <csvSummary>false</csvSummary>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <os.detected.arch>x86_64</os.detected.arch>
        <os.detected.release.like.debian>true</os.detected.release.like.debian>
        <os.detected.classifier>linux-x86_64</os.detected.classifier>
        <os.detected.release>debian</os.detected.release>
        <os.detected.release.version>10</os.detected.release.version>
        <os.detected.name>linux</os.detected.name>
      </properties>
      <dependencies>
        <dependency>
          <groupId>com.floragunn</groupId>
          <artifactId>search-guard-suite-security</artifactId>
          <version>7.11.2-50.3.0</version>
          <scope>compile</scope>
        </dependency>
        <dependency>
          <groupId>com.floragunn</groupId>
          <artifactId>search-guard-suite-scheduler</artifactId>
          <version>7.11.2-50.3.0</version>
          <scope>compile</scope>
        </dependency>
        <dependency>
          <groupId>com.floragunn</groupId>
          <artifactId>search-guard-suite-signals</artifactId>
          <version>7.11.2-50.3.0</version>
          <scope>compile</scope>
        </dependency>
        <dependency>
          <groupId>com.floragunn</groupId>
          <artifactId>search-guard-suite-support</artifactId>
          <version>7.11.2-50.3.0</version>
          <scope>compile</scope>
        </dependency>
        <dependency>
          <groupId>com.floragunn</groupId>
          <artifactId>dlic-search-guard-suite-security</artifactId>
          <version>7.11.2-50.3.0</version>
          <scope>compile</scope>
        </dependency>
        <dependency>
          <groupId>com.floragunn</groupId>
          <artifactId>dlic-search-guard-suite-signals</artifactId>
          <version>7.11.2-50.3.0</version>
          <scope>compile</scope>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>veracode</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
              <execution>
                <id>veracode</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <appendAssemblyId>true</appendAssemblyId>
                  <tarLongFileMode>posix</tarLongFileMode>
                  <outputDirectory>${project.build.directory}/veracode/</outputDirectory>
                  <descriptors>
                    <descriptor>${veracode.descriptor}</descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <dependencies>
        <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>search-guard-suite-security</artifactId>
          <version>${project.version}</version>
        </dependency>
        <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>search-guard-suite-scheduler</artifactId>
          <version>${project.version}</version>
        </dependency>
        <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>search-guard-suite-signals</artifactId>
          <version>${project.version}</version>
        </dependency>
        <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>search-guard-suite-support</artifactId>
          <version>${project.version}</version>
        </dependency>
        <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>dlic-search-guard-suite-security</artifactId>
          <version>${project.version}</version>
        </dependency>
        <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>dlic-search-guard-suite-signals</artifactId>
          <version>${project.version}</version>
        </dependency>
      </dependencies>
    </profile>
  </profiles>
</project>
