<?xml version="1.0" encoding="UTF-8"?>
<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>
  <groupId>de.bund.bva.isyfact</groupId>
  <artifactId>isyfact-standards</artifactId>
  <version>2.4.2</version>
  <packaging>pom</packaging>
  <name>IsyFact-Standards (Module- &amp; Parent-POM)</name>
  <description>Die IsyFact-Standards bilden das architektonische, technologische und methodische
        Fundament der IsyFact. Sie umfassen allgemeingültige und wiederverwendbare Konzepte und
        Komponenten, die für die Entwicklung beliebiger Fachanwendungen relevant sind.</description>
  <url>http://isyfact.de</url>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>IsyFact-Team</name>
      <email>isyfact@bva.bund.de</email>
      <organization>Bundesverwaltungsamt (BVA)</organization>
      <organizationUrl>https://www.bva.bund.de</organizationUrl>
    </developer>
  </developers>
  <modules>
    <module>isyfact-standards-bom</module>
    <module>isyfact-products-bom</module>
    <module>isy-aufrufkontext</module>
    <module>isy-batchrahmen</module>
    <module>isy-datetime</module>
    <module>isy-exception-core</module>
    <module>isy-exception-sst</module>
    <module>isy-konfiguration</module>
    <module>isy-logging</module>
    <module>isy-persistence</module>
    <module>isy-polling</module>
    <module>isy-service-rest</module>
    <module>isy-serviceapi-core</module>
    <module>isy-serviceapi-sst</module>
    <module>isy-sicherheit</module>
    <module>isy-sst-bridge</module>
    <module>isy-task</module>
    <module>isy-ueberwachung</module>
    <module>isy-util</module>
    <module>isy-sonderzeichen</module>
  </modules>
  <scm>
    <connection>scm:git:git://github.com/IsyFact/isyfact-standards.git</connection>
    <developerConnection>scm:git:ssh://github.com:IsyFact/isyfact-standards.git</developerConnection>
    <url>https://github.com/IsyFact/isyfact-standards</url>
  </scm>
  <properties>
    <maven.build.timestamp.format>dd.MM.yyyy</maven.build.timestamp.format>
    <isy.doku.standards.bausteine>10_IsyFact-Standards/20_Bausteine</isy.doku.standards.bausteine>
    <isy.asciidoctor.extensions.version>2.3.0</isy.asciidoctor.extensions.version>
    <asciidoctorj.pdf.version>1.5.3</asciidoctorj.pdf.version>
    <maven.enforcer.plugin.version>3.0.0</maven.enforcer.plugin.version>
    <maven.jacoco.argLine></maven.jacoco.argLine>
    <maven.surefire.argline>-Xmx1g -Dfile.encoding=${project.build.sourceEncoding} @{maven.jacoco.argLine}</maven.surefire.argline>
    <enforced.maven.version>[3.1.1,4)</enforced.maven.version>
    <java.compile.version>1.8</java.compile.version>
    <enforced.jdk.version>[1.8,1.9)</enforced.jdk.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.javadoc.plugin.version>3.3.2</maven.javadoc.plugin.version>
    <asciidoctor.maven.plugin.version>2.0.0</asciidoctor.maven.plugin.version>
  </properties>
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
      <resource>
        <directory>license</directory>
      </resource>
    </resources>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-enforcer-plugin</artifactId>
          <version>${maven.enforcer.plugin.version}</version>
          <executions>
            <execution>
              <id>enforce-maven</id>
              <goals>
                <goal>enforce</goal>
              </goals>
              <configuration>
                <rules>
                  <requireJavaVersion>
                    <version>${enforced.jdk.version}</version>
                  </requireJavaVersion>
                  <requireMavenVersion>
                    <version>${enforced.maven.version}</version>
                  </requireMavenVersion>
                </rules>
              </configuration>
            </execution>
            <execution>
              <id>enforce-dependency-convergence</id>
              <goals>
                <goal>enforce</goal>
              </goals>
              <configuration>
                <rules>
                  <dependencyConvergence />
                </rules>
                <fail>true</fail>
              </configuration>
            </execution>
            <execution>
              <id>enforce-banned-dependencies</id>
              <goals>
                <goal>enforce</goal>
              </goals>
              <configuration>
                <rules>
                  <bannedDependencies>
                    <excludes>
                      <exclude>de.bund.bva.pliscommon:plis-*</exclude>
                      <exclude>log4j:log4j</exclude>
                    </excludes>
                    <message>Verbotene Abhängigkeiten gefunden, für die neuere Entsprechungen
                                            (Group-ID: de.bund.bva.isyfact) existieren.
                                            Bitte dependency:tree prüfen und entsprechend exkludieren.</message>
                  </bannedDependencies>
                </rules>
                <fail>true</fail>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>3.1.2</version>
          <executions>
            <execution>
              <id>validate</id>
              <phase>validate</phase>
              <goals>
                <goal>check</goal>
              </goals>
            </execution>
          </executions>
          <dependencies>
            <dependency>
              <groupId>de.bund.bva.isyfact</groupId>
              <artifactId>isy-checkstyle-config</artifactId>
              <version>0.1.0</version>
            </dependency>
          </dependencies>
          <configuration>
            <configLocation>checkstyle.config.xml</configLocation>
            <encoding>UTF-8</encoding>
            <consoleOutput>true</consoleOutput>
            <failsOnError>true</failsOnError>
            <linkXRef>false</linkXRef>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>tidy-maven-plugin</artifactId>
          <version>1.1.0</version>
          <executions>
            <execution>
              <id>check-pom-style</id>
              <phase>process-resources</phase>
              <goals>
                <goal>check</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.jacoco</groupId>
          <artifactId>jacoco-maven-plugin</artifactId>
          <version>0.8.7</version>
          <executions>
            <execution>
              <goals>
                <goal>prepare-agent</goal>
              </goals>
              <configuration>
                <propertyName>maven.jacoco.argLine</propertyName>
              </configuration>
            </execution>
            <execution>
              <id>report</id>
              <phase>test</phase>
              <goals>
                <goal>report</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.22.2</version>
          <configuration>
            <argLine>${maven.surefire.argline}</argLine>
            <systemPropertyVariables>
              <user.language>de</user.language>
              <user.country>DE</user.country>
            </systemPropertyVariables>
          </configuration>
        </plugin>
        <plugin>
          <groupId>com.github.spotbugs</groupId>
          <artifactId>spotbugs-maven-plugin</artifactId>
          <version>4.5.3.0</version>
          <executions>
            <execution>
              <id>execute-spot-bugs</id>
              <phase>verify</phase>
              <goals>
                <goal>check</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <effort>Max</effort>
            <threshold>high</threshold>
            <xmlOutput>true</xmlOutput>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.asciidoctor</groupId>
          <artifactId>asciidoctor-maven-plugin</artifactId>
          <version>${asciidoctor.maven.plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>org.asciidoctor</groupId>
              <artifactId>asciidoctorj-pdf</artifactId>
              <version>${asciidoctorj.pdf.version}</version>
            </dependency>
            <dependency>
              <groupId>de.bund.bva.isyfact</groupId>
              <artifactId>isy-asciidoctorj-extensions</artifactId>
              <version>${isy.asciidoctor.extensions.version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <outputDirectory>${project.build.directory}</outputDirectory>
            <attributes>
              <revnumber>IF-${project.version}</revnumber>
              <revdate>${maven.build.timestamp}</revdate>
            </attributes>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>${maven.javadoc.plugin.version}</version>
          <configuration>
            <encoding>${project.build.sourceEncoding}</encoding>
            <charset>${project.build.sourceEncoding}</charset>
            <doclint>none</doclint>
            <quiet>true</quiet>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>flatten-maven-plugin</artifactId>
          <version>1.2.7</version>
          <executions>
            <execution>
              <id>flatten</id>
              <phase>process-resources</phase>
              <goals>
                <goal>flatten</goal>
              </goals>
            </execution>
            <execution>
              <id>flatten.clean</id>
              <phase>clean</phase>
              <goals>
                <goal>clean</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <updatePomFile>true</updatePomFile>
            <flattenMode>resolveCiFriendliesOnly</flattenMode>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>3.2.0</version>
        <configuration>
          <encoding>${project.build.sourceEncoding}</encoding>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.9.0</version>
        <configuration>
          <source>${java.compile.version}</source>
          <target>${java.compile.version}</target>
          <encoding>${project.build.sourceEncoding}</encoding>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.2.2</version>
        <configuration>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.2.1</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>versions-maven-plugin</artifactId>
        <version>2.8.1</version>
      </plugin>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>3.3.2</version>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>3.2.0</version>
      </plugin>
      <plugin>
        <artifactId>maven-install-plugin</artifactId>
        <version>2.5.2</version>
      </plugin>
      <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.8.2</version>
      </plugin>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <version>3.1.0</version>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>3.0.0</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>javancss-maven-plugin</artifactId>
        <version>2.1</version>
      </plugin>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.10.0</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>tidy-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-checkstyle-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>com.github.spotbugs</groupId>
        <artifactId>spotbugs-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
  <reporting>
    <plugins>
      <plugin>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>3.0.0</version>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>2.19.1</version>
      </plugin>
      <plugin>
        <artifactId>maven-checkstyle-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-jxr-plugin</artifactId>
        <version>2.5</version>
      </plugin>
      <plugin>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>3.6</version>
        <configuration>
          <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
          <targetJdk>${java.compile.version}</targetJdk>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>3.0.4</version>
      </plugin>
    </plugins>
  </reporting>
  <profiles>
    <profile>
      <id>copyReleaseConfiguration</id>
      <activation>
        <file>
          <exists>src/main/resources/config/release/</exists>
        </file>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <id>process-resources</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <target>
                    <echo message="Kopiere Release-Konfigurationen aus config/release nach config/..." />
                    <move todir="${project.build.directory}/classes/config/" failonerror="true" overwrite="true">
                      <fileset dir="${project.build.directory}/classes/config/release" />
                    </move>
                  </target>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-enforcer-plugin</artifactId>
            <executions>
              <execution>
                <id>enforce-no-snapshots</id>
                <goals>
                  <goal>enforce</goal>
                </goals>
                <configuration>
                  <rules>
                    <requireReleaseDeps>
                      <message>Keine SNAPSHOT-Abhängigkeiten erlaubt!</message>
                    </requireReleaseDeps>
                    <requireReleaseVersion>
                      <message>Keine SNAPSHOT-Versionen erlaubt!</message>
                    </requireReleaseVersion>
                  </rules>
                  <fail>true</fail>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>copyLicenseFiles</id>
      <activation>
        <file>
          <exists>license</exists>
        </file>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <id>license-to-apidoc</id>
                <phase>generate-sources</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <target>
                    <copy todir="${project.build.directory}/apidocs">
                      <fileset includes="*" dir="${basedir}/license" />
                    </copy>
                  </target>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>centralRelease</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.8</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>false</autoReleaseAfterClose>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>JARsigning</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-jarsigner-plugin</artifactId>
            <version>1.4</version>
            <executions>
              <execution>
                <id>sign</id>
                <phase>deploy</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
              <execution>
                <id>verify</id>
                <goals>
                  <goal>verify</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <keystore>${sign.keystore}</keystore>
              <alias>${sign.alias}</alias>
              <storepass>${sign.storepass}</storepass>
              <tsa>http://timestamp.digicert.com</tsa>
              <arguments>
                <argument>${sign.proxyhost}</argument>
                <argument>${sign.proxyport}</argument>
              </arguments>
              <verbose>true</verbose>
              <certs>true</certs>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>GPGsigning</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <keyname>${gpg.keyname}</keyname>
              <passphrase>${gpg.passphrase}</passphrase>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>centralmavenrepo</id>
      <activation>
        <property>
          <name>centraldeploy</name>
          <value>true</value>
        </property>
      </activation>
      <distributionManagement>
        <repository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <snapshotRepository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
    <profile>
      <id>internalmavenrepo</id>
      <activation>
        <property>
          <name>!centraldeploy</name>
        </property>
      </activation>
      <distributionManagement>
        <repository>
          <id>repository</id>
          <name>Repository</name>
          <url>${deploy-url-release}</url>
        </repository>
        <snapshotRepository>
          <id>repository</id>
          <name>Repository</name>
          <url>${deploy-url-snapshot}</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
    <profile>
      <id>JDK-11-for-8</id>
      <activation>
        <jdk>[11,12)</jdk>
        <property>
          <name>!for11</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <source>8</source>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <enforced.jdk.version>[11,12)</enforced.jdk.version>
      </properties>
    </profile>
    <profile>
      <id>JDK-11-for-11</id>
      <activation>
        <jdk>[11,12)</jdk>
        <property>
          <name>for11</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <source>11</source>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <enforced.jdk.version>[11,12)</enforced.jdk.version>
        <java.compile.version>11</java.compile.version>
      </properties>
    </profile>
  </profiles>
</project>
