<?xml version="1.0" encoding="UTF-8"?>
<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>
    <groupId>com.kohlschutter</groupId>
    <artifactId>kohlschutter-parent</artifactId>
    <!-- IMPORTANT: After updating with "mvn versions:set -DnewVersion=",
     also change the property "kohlschutter.parent.version" below -->
    <version>1.7.4</version>
    <packaging>pom</packaging>
    <name>kohlschutter-parent</name>
    <inceptionYear>2014</inceptionYear>
    <description>The parent POM for Kohlschütter projects.</description>
    <url>https://github.com/kohlschutter/kohlschutter-parent</url>
    <organization>
        <name>Kohlschütter Search Intelligence</name>
        <url>https://www.kohlschutter.com/</url>
    </organization>
    <developers>
        <developer>
            <name>Christian Kohlschütter</name>
            <email>christian@kohlschutter.com</email>
        </developer>
    </developers>
    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <scm>
        <url>https://github.com/kohlschutter/kohlschutter-parent</url>
        <connection>scm:git:git@github.com:kohlschutter/kohlschutter-parent.git</connection>
        <developerConnection>scm:git:git@github.com:kohlschutter/kohlschutter-parent.git</developerConnection>
        <tag>HEAD</tag>
    </scm>
    <distributionManagement>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
    </distributionManagement>
    <issueManagement>
        <system>GitHub</system>
        <url>https://github.com/kohlschutter/kohlschutter-parent/issues</url>
    </issueManagement>
    <properties>
        <!-- Please keep this version in lockstep with the version declared above -->
        <kohlschutter.parent.version>1.7.4</kohlschutter.parent.version>
        <kohlschutter.sources.classifier>sources</kohlschutter.sources.classifier>
        <project.build.outputTimestamp>${git.commit.time}</project.build.outputTimestamp>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
        <file.encoding>UTF-8</file.encoding>
        <maven.compile.encoding>UTF-8</maven.compile.encoding>
        <kohlschutter.java.release>1.8</kohlschutter.java.release>
        <maven.compiler.source>${kohlschutter.java.release}</maven.compiler.source>
        <maven.compiler.target>${kohlschutter.java.release}</maven.compiler.target>
        <forbiddenapis.releaseVersion>${kohlschutter.java.release}</forbiddenapis.releaseVersion>
        <!-- Projects must define the following property -->
        <kohlschutter.project.base.directory>${project.basedir}</kohlschutter.project.base.directory>
        <kohlschutter.parent.directory>${project.basedir}</kohlschutter.parent.directory>
        <kohlschutter.project.notice.file>${kohlschutter.project.base.directory}/NOTICE</kohlschutter.project.notice.file>
        <kohlschutter.project.source.dir>${basedir}/src/main/java</kohlschutter.project.source.dir>
        <kohlschutter.maven.version.min>3.8.8</kohlschutter.maven.version.min>
        <kohlschutter.maven.java-version.min>11</kohlschutter.maven.java-version.min>
        <kohlschutter.target.name>target</kohlschutter.target.name>
        <kohlschutter.custom.package.folder>org/newsclub</kohlschutter.custom.package.folder>
        <coding.style.version>1.2.14</coding.style.version>
        <coding.style.dirname>coding-style/${coding.style.version}</coding.style.dirname>
        <coding.style.eclipse.dir>${kohlschutter.project.base.directory}/${coding.style.dirname}/eclipse</coding.style.eclipse.dir>
        <eclipse.jdt.core.prefs>${coding.style.eclipse.dir}/java7-strict-org.eclipse.jdt.core.prefs</eclipse.jdt.core.prefs>
        <eclipse.formatter.config>${coding.style.eclipse.dir}/eclipse-formatter-config.xml</eclipse.formatter.config>
        <eclipse.formatter.js.config>${coding.style.eclipse.dir}/eclipse-formatter-config-js.xml</eclipse.formatter.js.config>
        <eclipse.checkstyle.config>${coding.style.eclipse.dir}/checkstyle-configuration.xml</eclipse.checkstyle.config>
        <kohlschutter.surefire.patch.args></kohlschutter.surefire.patch.args>
        <checkstyle.version>10.17.0</checkstyle.version>
        <checkstyle.disabled>false</checkstyle.disabled>
        <checkstyle.strict>false</checkstyle.strict>
        <spotbugs.exclude.file>${coding.style.eclipse.dir}/spotbugs-exclude.xml</spotbugs.exclude.file>
        <spotbugs.disabled>false</spotbugs.disabled>
        <spotbugs.strict>false</spotbugs.strict>
        <!--<spotbugs.version>4.8.5-SNAPSHOT</spotbugs.version>-->
        <spotbugs.plugin.version>4.8.6.2</spotbugs.plugin.version>
        <forbiddenapis.version>3.7</forbiddenapis.version>
        <forbiddenapis.strict>false</forbiddenapis.strict>
        <jacoco.disabled>false</jacoco.disabled>
        <jacoco.strict>false</jacoco.strict>
        <jacoco.coverage.min>0.0</jacoco.coverage.min>
        <jacoco.exec.name-extra></jacoco.exec.name-extra>
        <javadoc.strict>false</javadoc.strict>
        <license.strict>false</license.strict>
        <license.skip>false</license.skip>
        <pmd.strict>false</pmd.strict>
        <impsort.skip>false</impsort.skip>
        <formatter.skip>false</formatter.skip>
        <!-- Only upgrade to the latest version you can have in Eclipse, no later
      versions; otherwise, you may not be able to run checks in Eclipse -->
        <pmdVersion>7.4.0</pmdVersion>
        <pmd.plugin.version>3.24.0</pmd.plugin.version>
        <xlint.compiler.arg>-Xlint:all,-classfile,-try,-module,-requires-automatic,-requires-transitive-automatic,-exports</xlint.compiler.arg>
        <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
        <eclipsejdt.annotations.version>2.3.0</eclipsejdt.annotations.version>
        <errorprone.version>2.30.0</errorprone.version>
        <errorprone.annotations.version>${errorprone.version}</errorprone.annotations.version>
        <errorprone.args></errorprone.args>
        <junit.version>5.11.0</junit.version>

        <slf4j.version>2.0.16</slf4j.version>
        <graal.plugin.version>0.10.2</graal.plugin.version>
    </properties>
    <profiles>
        <profile>
            <id>use-snapshots</id>
            <activation>
                <property>
                    <name>use-snapshots</name>
                </property>
            </activation>
            <repositories>
                <repository>
                    <id>snapshots-repo</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>apache.snapshots</id>
                    <url>https://repository.apache.org/snapshots/</url>
                </pluginRepository>
                <pluginRepository>
                    <id>sonatype.snapshots</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                </pluginRepository>
            </pluginRepositories>
        </profile>
        <profile>
            <id>use-staging</id>
            <activation>
                <property>
                    <name>use-staging</name>
                </property>
            </activation>
            <repositories>
                <repository>
                    <id>staging-repo</id>
                    <url>https://oss.sonatype.org/content/groups/staging/</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
        </profile>
        <profile>
            <id>strict</id>
            <activation>
                <property>
                    <name>strict</name>
                </property>
            </activation>
            <properties>
                <checkstyle.strict>true</checkstyle.strict>
                <spotbugs.strict>true</spotbugs.strict>
                <forbiddenapis.strict>true</forbiddenapis.strict>
                <jacoco.strict>true</jacoco.strict>
                <pmd.strict>true</pmd.strict>
                <license.strict>true</license.strict>
                <javadoc.strict>true</javadoc.strict>
                <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
            </properties>
            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-javadoc-plugin</artifactId>
                            <configuration>
                                <failOnError>true</failOnError>
                            </configuration>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>
        <profile>
            <!-- Reuse the project's README.md as the site's index.html file -->
            <id>copy-README-to-site</id>
            <activation>
                <file>
                    <exists>${basedir}/README.md</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.kohlschutter.mavenplugins</groupId>
                        <artifactId>copy-rename-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>copy-readme</id>
                                <phase>pre-site</phase>
                                <goals>
                                    <goal>copy</goal>
                                </goals>
                                <configuration>
                                    <overWrite>true</overWrite>
                                    <sourceFile>${basedir}/README.md</sourceFile>
                                    <destinationFile>${project.build.directory}/generated-site/markdown/index.md</destinationFile>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>echoproperties</id>
            <activation>
                <property>
                    <name>echoproperties</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>validate</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
                                        <echoproperties />
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>eclipse</id>
            <activation>
                <property>
                    <name>m2e.version</name>
                </property>
            </activation>
            <properties>
                <!-- Ignore Eclipse's nar-maven-plugin integration -->
                <nar.skip>true</nar.skip>
                <kohlschutter.target.name>target-eclipse</kohlschutter.target.name>
            </properties>
            <build>
                <directory>target-eclipse</directory>
            </build>
        </profile>
        <profile>
            <id>eclipse-m2e</id>
            <activation>
                <property>
                    <name>m2e.version</name>
                </property>
            </activation>
            <properties>
                <spotbugs.disabled>true</spotbugs.disabled>
            </properties>
            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <!--This plugin's configuration is used to store Eclipse m2e
                settings only. It has no influence on the Maven build itself. -->
                            <groupId>org.eclipse.m2e</groupId>
                            <artifactId>lifecycle-mapping</artifactId>
                            <version>1.0.0</version>
                            <configuration>
                                <lifecycleMappingMetadata>
                                    <pluginExecutions>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-dependency-plugin</artifactId>
                                                <versionRange>[2.9,)</versionRange>
                                                <goals>
                                                    <goal>unpack</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <ignore />
                                            </action>
                                        </pluginExecution>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>de.thetaphi</groupId>
                                                <artifactId>forbiddenapis</artifactId>
                                                <versionRange>[1.7,)</versionRange>
                                                <goals>
                                                    <goal>check</goal>
                                                    <goal>testCheck</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <ignore></ignore>
                                            </action>
                                        </pluginExecution>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-checkstyle-plugin</artifactId>
                                                <versionRange>[3.0.0,)</versionRange>
                                                <goals>
                                                    <goal>check</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <ignore></ignore>
                                            </action>
                                        </pluginExecution>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-antrun-plugin</artifactId>
                                                <versionRange>[1.7,)</versionRange>
                                                <goals>
                                                    <goal>run</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <execute />
                                            </action>
                                        </pluginExecution>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-invoker-plugin</artifactId>
                                                <versionRange>[3.1.0,)</versionRange>
                                                <goals>
                                                    <goal>install</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <ignore></ignore>
                                            </action>
                                        </pluginExecution>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>io.github.git-commit-id</groupId>
                                                <artifactId>git-commit-id-maven-plugin</artifactId>
                                                <versionRange>[5.0.0,)</versionRange>
                                                <goals>
                                                    <goal>revision</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <ignore></ignore>
                                            </action>
                                        </pluginExecution>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-dependency-plugin</artifactId>
                                                <versionRange>[3.3.0,)</versionRange>
                                                <goals>
                                                    <goal>build-classpath</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <ignore></ignore>
                                            </action>
                                        </pluginExecution>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>com.github.spotbugs</groupId>
                                                <artifactId>spotbugs-maven-plugin</artifactId>
                                                <versionRange>[4.7.3.4,)</versionRange>
                                                <goals>
                                                    <goal>check</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <ignore></ignore>
                                            </action>
                                        </pluginExecution>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-plugin-plugin</artifactId>
                                                <versionRange>[3.2,)</versionRange>
                                                <goals>
                                                    <goal>descriptor</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <ignore></ignore>
                                            </action>
                                        </pluginExecution>
                                    </pluginExecutions>
                                </lifecycleMappingMetadata>
                            </configuration>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>
        <profile>
            <id>debug-info</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>validate</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
                                        <echoproperties />
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>signed</id>
            <activation>
                <property>
                    <name>signed</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                                <configuration>
                                    <useAgent>true</useAgent>
                                    <keyname>${gpgkeyname}</keyname>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <!-- BEGIN: coding-style specific profiles -->
        <!-- Unless you have the "coding-style" project in your eclipse workspace,
      we will download and unpack that artifact's contents to the top-level
      project.
      All Eclipse-specific formatting files will be in the "eclipse" directory. -->
        <profile>
            <id>coding-style-unpack</id>
            <activation>
                <file>
                    <missing>${kohlschutter.project.base.directory}/${coding.style.dirname}/eclipse/eclipse-formatter-config.xml</missing>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>unpack-coding-style</id>
                                <phase>generate-resources</phase>
                                <goals>
                                    <goal>unpack</goal>
                                </goals>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>com.kohlschutter</groupId>
                                            <artifactId>coding-style</artifactId>
                                            <version>${coding.style.version}</version>
                                            <classifier>files</classifier>
                                            <type>zip</type>
                                            <outputDirectory>${kohlschutter.project.base.directory}/${coding.style.dirname}/</outputDirectory>
                                        </artifactItem>
                                    </artifactItems>
                                    <skip>${coding.style.skip.unpack}</skip>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>coding-style-in-project</id>
            <activation>
                <file>
                    <exists>${basedir}/${coding.style.dirname}/eclipse/eclipse-formatter-config.xml</exists>
                </file>
            </activation>
            <properties>
                <coding.style.skip.unpack>true</coding.style.skip.unpack>
                <coding.style.eclipse.dir>${kohlschutter.project.base.directory}/${coding.style.dirname}/eclipse</coding.style.eclipse.dir>
                <eclipse.jdt.core.prefs>${coding.style.eclipse.dir}/java7-strict-org.eclipse.jdt.core.prefs</eclipse.jdt.core.prefs>
                <eclipse.formatter.config>${coding.style.eclipse.dir}/eclipse-formatter-config.xml</eclipse.formatter.config>
                <eclipse.formatter.js.config>${coding.style.eclipse.dir}/eclipse-formatter-config-js.xml</eclipse.formatter.js.config>
                <eclipse.checkstyle.config>${coding.style.eclipse.dir}/checkstyle-configuration.xml</eclipse.checkstyle.config>
            </properties>
        </profile>
        <profile>
            <id>coding-style-in-workspace-parent1</id>
            <activation>
                <file>
                    <exists>${basedir}/../coding-style/eclipse/eclipse-formatter-config.xml</exists>
                </file>
            </activation>
            <properties>
                <coding.style.skip.unpack>true</coding.style.skip.unpack>
                <coding.style.eclipse.dir>${basedir}/../coding-style/eclipse</coding.style.eclipse.dir>
                <eclipse.jdt.core.prefs>${coding.style.eclipse.dir}/java7-strict-org.eclipse.jdt.core.prefs</eclipse.jdt.core.prefs>
                <eclipse.formatter.config>${coding.style.eclipse.dir}/eclipse-formatter-config.xml</eclipse.formatter.config>
                <eclipse.formatter.js.config>${coding.style.eclipse.dir}/eclipse-formatter-config-js.xml</eclipse.formatter.js.config>
                <eclipse.checkstyle.config>${coding.style.eclipse.dir}/checkstyle-configuration.xml</eclipse.checkstyle.config>
            </properties>
        </profile>
        <profile>
            <id>coding-style-in-workspace-parent2</id>
            <activation>
                <file>
                    <exists>${basedir}/../../coding-style/eclipse/eclipse-formatter-config.xml</exists>
                </file>
            </activation>
            <properties>
                <coding.style.skip.unpack>true</coding.style.skip.unpack>
                <coding.style.eclipse.dir>${basedir}/../../coding-style/eclipse</coding.style.eclipse.dir>
                <eclipse.jdt.core.prefs>${coding.style.eclipse.dir}/java7-strict-org.eclipse.jdt.core.prefs</eclipse.jdt.core.prefs>
                <eclipse.formatter.config>${coding.style.eclipse.dir}/eclipse-formatter-config.xml</eclipse.formatter.config>
                <eclipse.formatter.js.config>${coding.style.eclipse.dir}/eclipse-formatter-config-js.xml</eclipse.formatter.js.config>
                <eclipse.checkstyle.config>${coding.style.eclipse.dir}/checkstyle-configuration.xml</eclipse.checkstyle.config>
            </properties>
        </profile>
        <profile>
            <id>eclipse-compiler-checks</id>
            <activation>
                <property>
                    <name>eclipse-compiler-checks</name>
                </property>
            </activation>
            <!-- invoke with: mvn clean integration-test -Declipse-compiler-checks -->
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <configuration>
                            <compilerId>eclipse</compilerId>
                            <compilerArguments>
                                <!-- prefs should contain "org.eclipse.jdt.core.compiler.doc.comment.support=enabled" -->
                                <properties>${eclipse.jdt.core.prefs}</properties>
                            </compilerArguments>
                            <fork>true</fork>
                        </configuration>
                        <dependencies>
                            <dependency>
                                <groupId>org.codehaus.plexus</groupId>
                                <artifactId>plexus-compiler-eclipse</artifactId>
                                <version>2.8.5</version>
                                <exclusions>
                                    <exclusion>
                                        <groupId>org.eclipse.tycho</groupId>
                                        <artifactId>org.eclipse.jdt.core</artifactId>
                                    </exclusion>
                                </exclusions>
                            </dependency>
                            <dependency>
                                <groupId>org.eclipse.jdt</groupId>
                                <artifactId>ecj</artifactId>
                                <version>3.16.0</version>
                            </dependency>
                        </dependencies>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-enforcer-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>enforce</id>
                                <!-- Prevents installation of ECJ-compiled classes -->
                                <goals>
                                    <goal>enforce</goal>
                                </goals>
                                <phase>install</phase>
                                <configuration>
                                    <rules>
                                        <AlwaysFail />
                                    </rules>
                                    <fail>true</fail>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <!-- END: coding-style specific profiles -->
        <profile>
            <id>unit-tests</id>
            <activation>
                <property>
                    <name>ignorant</name>
                    <value>!true</value>
                </property>
                <file>
                    <exists>src/test</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>default-prepare-agent</id>
                                <goals>
                                    <goal>prepare-agent</goal>
                                </goals>
                                <configuration>
                                    <propertyName>surefireJacocoArgLine</propertyName>
                                    <destFile>${project.build.directory}/jacoco${jacoco.exec.name-extra}.exec</destFile>
                                </configuration>
                            </execution>
                            <execution>
                                <id>default-check</id>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                                <configuration>
                                    <rules>
                                        <rule>
                                            <element>BUNDLE</element>
                                            <limits>
                                                <limit>
                                                    <counter>COMPLEXITY</counter>
                                                    <value>COVEREDRATIO</value>
                                                    <minimum>${jacoco.coverage.min}</minimum>
                                                </limit>
                                            </limits>
                                        </rule>
                                    </rules>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <argLine>${surefireJacocoArgLine} -Dfile.encoding=UTF-8
                -XX:+TieredCompilation -XX:TieredStopAtLevel=1 ${kohlschutter.surefire.patch.args}</argLine>
                            <detail>true</detail>
                        </configuration>
                        <executions>
                            <execution>
                                <id>default-test</id>
                                <phase>test</phase>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                        <reportSets>
                            <reportSet>
                                <reports>
                                    <report>report</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
        <profile>
            <id>code-quality</id>
            <activation>
                <property>
                    <name>ignorant</name>
                    <value>!true</value>
                </property>
                <file>
                    <exists>src/main/java</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.github.spotbugs</groupId>
                        <artifactId>spotbugs-maven-plugin</artifactId>
                        <configuration>
                            <excludeFilterFile>${spotbugs.exclude.file}</excludeFilterFile>
                        </configuration>
                        <executions>
                            <execution>
                                <id>spotbugs-during-install</id>
                                <phase>install</phase>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                                <configuration>
                                    <skip>${spotbugs.disabled}</skip>
                                    <failOnError>${spotbugs.strict}</failOnError>
                                    <jvmArgs>-XX:+TieredCompilation
                    -XX:TieredStopAtLevel=1</jvmArgs>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>de.thetaphi</groupId>
                        <artifactId>forbiddenapis</artifactId>
                        <configuration>
                            <!-- if the used Java version is too new, don't fail, just
                do nothing -->
                            <failOnUnsupportedJava>false</failOnUnsupportedJava>
                            <releaseVersion>${forbiddenapis.releaseVersion}</releaseVersion>
                            <excludes>
                                <exclude>**/module-info.class</exclude>
                            </excludes>
                            <bundledSignatures>
                                <bundledSignature>jdk-unsafe</bundledSignature>
                                <bundledSignature>jdk-deprecated</bundledSignature>
                                <bundledSignature>jdk-non-portable</bundledSignature>
                            </bundledSignatures>
                            <!-- <signaturesFiles> <signaturesFile>./rel/path/to/signatures.txt</signaturesFile>
                </signaturesFiles> -->
                        </configuration>
                        <executions>
                            <execution>
                                <id>default</id>
                                <goals>
                                    <goal>check</goal>
                                    <goal>testCheck</goal>
                                </goals>
                                <configuration>
                                    <failOnViolation>${forbiddenapis.strict}</failOnViolation>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-checkstyle-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>checkstyle-during-compile</id>
                                <phase>compile</phase>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                                <configuration>
                                    <consoleOutput>true</consoleOutput>
                                    <skip>${checkstyle.disabled}</skip>
                                    <failOnViolation>${checkstyle.strict}</failOnViolation>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-pmd-plugin</artifactId>
                        <configuration>
                            <rulesets>
                                <ruleset>${coding.style.eclipse.dir}/pmd-ruleset.xml</ruleset>
                            </rulesets>
                            <failOnViolation>${pmd.strict}</failOnViolation>
                            <printFailingErrors>true</printFailingErrors>
                            <targetJdk>${kohlschutter.java.release}</targetJdk>
                        </configuration>
                        <executions>
                            <execution>
                                <id>default-check</id>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>default-cpd-check</id>
                                <goals>
                                    <goal>cpd-check</goal>
                                </goals>
                            </execution>
                        </executions>
                        <dependencies>
                            <dependency>
                                <groupId>net.sourceforge.pmd</groupId>
                                <artifactId>pmd-core</artifactId>
                                <version>${pmdVersion}</version>
                            </dependency>
                            <dependency>
                                <groupId>net.sourceforge.pmd</groupId>
                                <artifactId>pmd-java</artifactId>
                                <version>${pmdVersion}</version>
                            </dependency>
                            <dependency>
                                <groupId>net.sourceforge.pmd</groupId>
                                <artifactId>pmd-javascript</artifactId>
                                <version>${pmdVersion}</version>
                            </dependency>
                            <dependency>
                                <groupId>net.sourceforge.pmd</groupId>
                                <artifactId>pmd-jsp</artifactId>
                                <version>${pmdVersion}</version>
                            </dependency>
                        </dependencies>
                    </plugin>
                    <plugin>
                        <groupId>com.mycila</groupId>
                        <artifactId>license-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>check-license-headers</id>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>com.github.spotbugs</groupId>
                        <artifactId>spotbugs-maven-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-checkstyle-plugin</artifactId>
                        <reportSets>
                            <reportSet>
                                <reports>
                                    <report>checkstyle</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-pmd-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>versions-maven-plugin</artifactId>
                        <reportSets>
                            <reportSet>
                                <reports>
                                    <report>dependency-updates-report</report>
                                    <report>plugin-updates-report</report>
                                    <report>property-updates-report</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                        <configuration>
                            <updateBuildOutputTimestampPolicy>never</updateBuildOutputTimestampPolicy>
                        </configuration>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
        <profile>
            <id>javadoc</id>
            <activation>
                <property>
                    <name>ignorant</name>
                    <value>!true</value>
                </property>
                <file>
                    <exists>src/main/java</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                                <configuration>
                                    <!-- work-around for error message: -->
                                    <!-- Error while generating Javadoc: Aggregator report contains named and unnamed modules -->
                                    <!-- <sourceFileExcludes>**/module-info.java</sourceFileExcludes> -->
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <reportSets>
                            <reportSet>
                                <id>aggregate</id>
                                <inherited>false</inherited>
                                <reports>
                                    <report>aggregate</report>
                                </reports>
                            </reportSet>
                            <reportSet>
                                <id>default</id>
                                <reports>
                                    <report>javadoc</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
        <profile>
            <id>sources</id>
            <activation>
                <property>
                    <name>ignorant</name>
                    <value>!true</value>
                </property>
                <file>
                    <exists>src</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                                <configuration>
                                    <classifier>
                                        ${kohlschutter.sources.classifier}</classifier>
                                </configuration>
                            </execution>
                        </executions>
                        <inherited>true</inherited>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>deploy-javadoc</id>
            <activation>
                <property>
                    <name>deploy</name>
                    <value>true</value>
                </property>
                <file>
                    <exists>src/main/java</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                                <configuration>
                                    <!-- work-around for error message: -->
                                    <!-- Error while generating Javadoc: Aggregator report contains named and unnamed modules -->
                                    <!-- <sourceFileExcludes>**/module-info.java</sourceFileExcludes> -->
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>deploy-sources</id>
            <activation>
                <property>
                    <name>deploy</name>
                    <value>true</value>
                </property>
                <file>
                    <exists>src</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                                <configuration>
                                    <classifier>${kohlschutter.sources.classifier}</classifier>
                                </configuration>
                            </execution>
                        </executions>
                        <inherited>true</inherited>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>release</id>
            <activation>
                <property>
                    <name>release</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.sonatype.plugins</groupId>
                        <artifactId>nexus-staging-maven-plugin</artifactId>
                        <extensions>true</extensions>
                        <configuration>
                            <serverId>ossrh</serverId>
                            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                            <autoReleaseAfterClose>false</autoReleaseAfterClose>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-scm-publish-plugin</artifactId>
                        <configuration>
                            <scmBranch>gh-pages</scmBranch>
                            <pubScmUrl>${project.scm.developerConnection}</pubScmUrl>
                            <checkinComment>Site checkin for ${project.version}</checkinComment>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <!-- src/main/java-overlay: Code that should be used when building with Maven, but not in Eclipse -->
            <id>source-java-overlay</id>
            <activation>
                <file>
                    <exists>${basedir}/src/main/java-overlay</exists>
                </file>
                <property>
                    <name>!m2e.version</name>
                </property>
            </activation>
            <properties>
                <kohlschutter.project.source.dir>${project.build.directory}/sources-java-overlay</kohlschutter.project.source.dir>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-resources-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>copy-java-overlay-sources</id>
                                <phase>generate-sources</phase>
                                <goals>
                                    <goal>copy-resources</goal>
                                </goals>
                                <configuration>
                                    <outputDirectory>${project.build.directory}/sources-java-overlay</outputDirectory>
                                    <includeEmptyDirs>true</includeEmptyDirs>
                                    <resources>
                                        <resource>
                                            <directory>${project.basedir}/src/main/java</directory>
                                            <includes>
                                                <include>**</include>
                                            </includes>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/java-overlay</directory>
                                            <includes>
                                                <include>**</include>
                                            </includes>
                                        </resource>
                                    </resources>
                                    <overwrite>true</overwrite>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <!-- Reformat code, organize imports -->
        <profile>
            <id>reformat</id>
            <activation>
                <property>
                    <name>reformat</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.mycila</groupId>
                        <artifactId>license-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>reformat-license-headers</id>
                                <phase>process-sources</phase>
                                <goals>
                                    <goal>format</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>net.revelc.code</groupId>
                        <artifactId>impsort-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sort-imports</id>
                                <configuration>
                                    <skip>${impsort.skip}</skip>
                                </configuration>
                                <goals>
                                    <goal>sort</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>net.revelc.code.formatter</groupId>
                        <artifactId>formatter-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>format-sourcecode</id>
                                <configuration>
                                    <skip>${formatter.skip}</skip>
                                </configuration>
                                <goals>
                                    <goal>format</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <!-- Resolve Maven property templates in files defined under src/main/java-unresolved-properties -->
        <profile>
            <id>java-template-not-eclipse</id>
            <activation>
                <property>
                    <name>!m2e.version</name>
                </property>
                <file>
                    <exists>src/main/java-unresolved-properties</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>templating-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>filter-src</id>
                                <phase>generate-sources</phase>
                                <goals>
                                    <goal>filter-sources</goal>
                                </goals>
                                <configuration>
                                    <sourceDirectory>${basedir}/src/main/java-unresolved-properties</sourceDirectory>
                                    <outputDirectory>${project.build.directory}/generated-sources/java-resolved-properties</outputDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <!-- For performance reasons, we won't replace templates when running from within Eclipse -->
        <profile>
            <id>java-template-eclipse</id>
            <activation>
                <property>
                    <name>m2e.version</name>
                </property>
                <file>
                    <exists>src/main/java-unresolved-properties</exists>
                </file>
            </activation>
            <build>
                <plugins>
                     <plugin>
                         <groupId>org.codehaus.mojo</groupId>
                         <artifactId>build-helper-maven-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>add-source</id>
                                 <phase>generate-sources</phase>
                                 <goals>
                                     <goal>add-source</goal>
                                 </goals>
                                 <configuration>
                                     <sources>
                                         <source>src/main/java-unresolved-properties</source>
                                     </sources>
                                 </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>errorprone</id>
            <activation>
                <property>
                    <name>errorprone</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <configuration>
                            <showWarnings>true</showWarnings>
                            <compilerArgs>
                                <arg>-XDcompilePolicy=simple</arg>
                                <arg>-Xplugin:ErrorProne -Xep:UnnecessaryParentheses:OFF -Xep:ObjectToString:OFF -Xep:StringSplitter:OFF -Xep:MissingOverride:OFF -Xep:EqualsGetClass:OFF -Xep:ReferenceEquality:OFF -Xep:MixedMutabilityReturnType:OFF -Xep:InlineMeSuggester:OFF ${errorprone.args}</arg>
                            </compilerArgs>
                            <annotationProcessorPaths>
                                <annotationProcessorPath>
                                    <groupId>com.google.errorprone</groupId>
                                    <artifactId>error_prone_core</artifactId>
                                    <version>${errorprone.version}</version>
                                </annotationProcessorPath>
                            </annotationProcessorPaths>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <!-- The main build tag -->
    <build>
        <sourceDirectory>${kohlschutter.project.source.dir}</sourceDirectory>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>properties-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>set-default-site-properties</id>
                        <phase>pre-site</phase>
                        <goals>
                            <goal>read-project-properties</goal>
                        </goals>
                        <configuration>
                            <urls>classpath:/com/kohlschutter/site.properties</urls>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>com.kohlschutter</groupId>
                        <artifactId>kohlschutter-parent-buildconfig</artifactId>
                        <version>1.0.0</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>io.github.git-commit-id</groupId>
                <artifactId>git-commit-id-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>get-the-git-infos</id>
                        <goals>
                            <goal>revision</goal>
                        </goals>
                        <phase>initialize</phase>
                    </execution>
                </executions>
                <configuration>
                    <failOnNoGitDirectory>false</failOnNoGitDirectory>
                    <failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>
                    <generateGitPropertiesFile>true</generateGitPropertiesFile>
                    <generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/maven/${project.groupId}/${project.artifactId}/git.properties</generateGitPropertiesFilename>
                    <includeOnlyProperties>
                        <includeOnlyProperty>^git.build.version$</includeOnlyProperty>
                        <includeOnlyProperty>^git.commit.id.(abbrev|full|describe)$</includeOnlyProperty>
                        <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
                        <includeOnlyProperty>^git.dirty$</includeOnlyProperty>
                    </includeOnlyProperties>
                    <commitIdGenerationMode>full</commitIdGenerationMode>
                    <dateFormat>yyyy-MM-dd'T'HH:mm:ssXXX</dateFormat>
                    <gitDescribe>
                        <dirty>-dirty</dirty>
                        <tags>true</tags>
                    </gitDescribe>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>enforce-maven</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireMavenVersion>
                                    <version>${kohlschutter.maven.version.min}</version>
                                </requireMavenVersion>
                                <requireJavaVersion>
                                    <version>${kohlschutter.maven.java-version.min}</version>
                                </requireJavaVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>mkdir-target-annotations</id>
                        <phase>clean</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <target>
                                <mkdir dir="${project.build.sourceDirectory}" />
                                <mkdir dir="${project.build.sourceDirectory}/../resources" />
                                <mkdir dir="${project.build.testSourceDirectory}" />
                                <mkdir dir="${project.build.testSourceDirectory}/../resources" />
                                <mkdir dir="${project.build.directory}/generated-test-sources/test-annotations" />
                                <mkdir dir="${project.build.directory}/generated-sources/annotations" />
                                <mkdir dir="${project.build.directory}/generated-test-sources/test-annotations" />
                            </target>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>${maven.compiler.source}</source>
                    <target>${maven.compiler.target}</target>
                    <compilerArgs>
                        <!-- Prevent recompilation due to "Stale source detected: .../package-info.java" -->
                        <arg>-Xpkginfo:always</arg>
                        <arg>${xlint.compiler.arg}</arg>
                    </compilerArgs>
                </configuration>
                <executions>
                    <execution>
                        <id>default-testCompile</id>
                        <configuration>
                            <!-- don't use module path during testing: lots of false positive warnings -->
                            <useModulePath>false</useModulePath>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default-test</id>
                        <phase>none</phase>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>versions-maven-plugin</artifactId>
                <configuration>
                    <generateBackupPoms>false</generateBackupPoms>
                    <updateBuildOutputTimestampPolicy>never</updateBuildOutputTimestampPolicy>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-scm-plugin</artifactId>
                <configuration>
                    <tag>${project.artifactId}-${project.version}</tag>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
            </plugin>
        </plugins>
        <!-- the main "pluginManagement" section -->
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>io.github.git-commit-id</groupId>
                    <artifactId>git-commit-id-maven-plugin</artifactId>
                    <version>9.0.1</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>properties-maven-plugin</artifactId>
                    <version>1.2.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-checkstyle-plugin</artifactId>
                    <version>3.4.0</version>
                    <dependencies>
                        <dependency>
                            <!-- We should use the same checkstyle version as in eclipse-cs -->
                            <groupId>com.puppycrawl.tools</groupId>
                            <artifactId>checkstyle</artifactId>
                            <version>${checkstyle.version}</version>
                        </dependency>
                    </dependencies>
                    <configuration>
                        <configLocation>${eclipse.checkstyle.config}</configLocation>
                        <violationSeverity>info</violationSeverity>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>4.0.0-M11</version>
                    <dependencies>
                        <dependency>
                            <groupId>org.apache.maven.skins</groupId>
                            <artifactId>maven-fluido-skin</artifactId>
                            <version>2.0.0-M8</version>
                        </dependency>
                    </dependencies>
                </plugin>
                <plugin>
                    <groupId>com.github.spotbugs</groupId>
                    <artifactId>spotbugs-maven-plugin</artifactId>
                    <version>${spotbugs.plugin.version}</version>
                    <dependencies>
                        <!--
                        <dependency>
                            <groupId>com.github.spotbugs</groupId>
                            <artifactId>spotbugs</artifactId>
                            <version>${spotbugs.version}</version>
                        </dependency>
                        -->
                    </dependencies>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <version>3.5.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>3.7.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>3.3.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>3.1.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>3.3.1</version>
                    <configuration>
                        <propertiesEncoding>UTF-8</propertiesEncoding>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-invoker-plugin</artifactId>
                    <version>3.7.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-project-info-reports-plugin</artifactId>
                    <version>3.6.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <!-- https://bugs.openjdk.java.net/browse/JDK-8240169
            If you get an error like "The code being documented uses modules
            but the packages defined in ... are in the unnamed module", then
            update your Java SDK -->
                    <version>3.8.0</version>
                    <configuration>
                        <detectOfflineLinks>false</detectOfflineLinks>
                        <detectJavaApiLink>false</detectJavaApiLink>
                        <quiet>true</quiet>
                        <failOnWarnings>${javadoc.strict}</failOnWarnings>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.13.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>3.3.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>3.4.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>3.1.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.4.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>3.1.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>3.2.5</version>
                </plugin>
                <plugin>
                    <groupId>com.mycila</groupId>
                    <artifactId>license-maven-plugin</artifactId>
                    <version>4.5</version>
                    <configuration>
                        <skip>${license.skip}</skip>
                        <failIfMissing>${license.strict}</failIfMissing>
                        <licenseSets>
                            <licenseSet>
                                <header>${kohlschutter.project.notice.file}</header>
                                <includes>
                                    <include>src/main/java*/${kohlschutter.custom.package.folder}/**/*.java</include>
                                    <include>src/test/java*/${kohlschutter.custom.package.folder}/**/*.java</include>
                                    <include>src/main/java*/com/kohlschutter/**/*.java</include>
                                    <include>src/test/java*/com/kohlschutter/**/*.java</include>
                                </includes>
                                <excludes>
                                    <exclude>**/package-info.java</exclude>
                                </excludes>
                            </licenseSet>
                        </licenseSets>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.sonatype.plugins</groupId>
                    <artifactId>nexus-staging-maven-plugin</artifactId>
                    <version>1.7.0</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>versions-maven-plugin</artifactId>
                    <version>2.17.1</version>
                    <configuration>
                        <generateBackupPoms>false</generateBackupPoms>
                        <rulesUri>classpath:///com/kohlschutter/maven-version-rules.xml</rulesUri>
                    </configuration>
                    <dependencies>
                        <dependency>
                            <groupId>com.kohlschutter</groupId>
                            <artifactId>maven-plugin-config</artifactId>
                            <version>${kohlschutter.parent.version}</version>
                        </dependency>
                    </dependencies>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-scm-plugin</artifactId>
                    <version>2.1.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>3.1.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-pmd-plugin</artifactId>
                    <version>${pmd.plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.jacoco</groupId>
                    <artifactId>jacoco-maven-plugin</artifactId>
                    <version>0.8.12</version>
                    <configuration>
                        <skip>${jacoco.disabled}</skip>
                        <excludes>
                            <!-- Do not instrument classes that are outside of our control -->
                            <exclude>org/apache/maven/**</exclude>
                            <exclude>org/junit/**</exclude>
                            <exclude>org/apiguardian/**</exclude>
                            <exclude>sun/**</exclude>
                        </excludes>
                    </configuration>
                    <dependencies>
                        <!--
                        <dependency>
                            <groupId>org.jacoco</groupId>
                            <artifactId>org.jacoco.core</artifactId>
                            <version>0.8.10</version>
                        </dependency>
                        -->

                        <!-- Fix "Unsupported api 589824" error -->
                        <!--
                        <dependency>
                            <groupId>org.apache.bcel</groupId>
                            <artifactId>bcel</artifactId>
                            <version>6.7.0</version>
                        </dependency>
                        -->
                    </dependencies>
                </plugin>
                <plugin>
                    <groupId>com.kohlschutter.mavenplugins</groupId>
                    <artifactId>copy-rename-maven-plugin</artifactId>
                    <version>2.0.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-scm-publish-plugin</artifactId>
                    <version>3.3.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>3.7.1</version>
                </plugin>
                <plugin>
                    <groupId>de.thetaphi</groupId>
                    <artifactId>forbiddenapis</artifactId>
                    <version>${forbiddenapis.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>3.6.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-shade-plugin</artifactId>
                    <version>3.6.0</version>
                </plugin>
                <plugin>
                    <groupId>net.revelc.code.formatter</groupId>
                    <artifactId>formatter-maven-plugin</artifactId>
                    <version>2.24.1</version>
                    <configuration>
                        <compilerCompliance>${maven.compiler.target}</compilerCompliance>
                        <compilerSource>${maven.compiler.source}</compilerSource>
                        <compilerTargetPlatform>${maven.compiler.target}</compilerTargetPlatform>
                        <lineEnding>LF</lineEnding>
                        <configFile>${eclipse.formatter.config}</configFile>
                        <configJsFile>${eclipse.formatter.js.config}</configJsFile>
                        <includes>
                            <include>com/kohlschutter/**/*.java</include>
                            <include>org/kohlschutter/**/*.java</include>
                            <include>${kohlschutter.custom.package.folder}/**/*.java</include>
                            <!--
                                <include>com/kohlschutter/**/*.js</include>
                                <include>org/kohlschutter/**/*.js</include>
                                -->
                        </includes>
                        <excludes>
                            <exclude>**/*.min.js</exclude>
                        </excludes>
                        <directories>
                            <directory>src/main/java</directory>
                            <directory>src/main/java-overlay</directory>
                            <directory>src/test/java</directory>
                            <directory>src/main/java8</directory>
                            <directory>src/test/java8</directory>
                            <directory>src/main/java9</directory>
                            <directory>src/test/java9</directory>
                            <directory>src/main/java10</directory>
                            <directory>src/test/java10</directory>
                            <directory>src/main/java11</directory>
                            <directory>src/test/java11</directory>
                            <directory>src/main/java12</directory>
                            <directory>src/test/java12</directory>
                            <directory>src/main/java13</directory>
                            <directory>src/test/java13</directory>
                            <directory>src/main/java14</directory>
                            <directory>src/test/java14</directory>
                            <directory>src/main/java15</directory>
                            <directory>src/test/java15</directory>
                            <directory>src/main/java16</directory>
                            <directory>src/test/java16</directory>
                            <directory>src/main/java17</directory>
                            <directory>src/test/java17</directory>
                            <directory>src/main/java18</directory>
                            <directory>src/test/java18</directory>
                            <directory>src/main/java19</directory>
                            <directory>src/test/java19</directory>
                            <directory>src/main/java20</directory>
                            <directory>src/test/java20</directory>
                            <directory>src/main/java21</directory>
                            <directory>src/test/java21</directory>
                            <directory>src/main/java22</directory>
                            <directory>src/test/java22</directory>
                            <!--
                                <directory>src/main/resources</directory>
                                <directory>src/test/resources</directory>
                                -->
                        </directories>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>net.revelc.code</groupId>
                    <artifactId>impsort-maven-plugin</artifactId>
                    <version>1.11.0</version>
                    <configuration>
                        <groups>java.,javax.,org.,com.</groups>
                        <staticGroups>java,*</staticGroups>
                        <excludes>
                            <exclude>**/thrift/*.java</exclude>
                            <exclude>**/*generated*/*.java</exclude>
                        </excludes>
                        <includes>
                            <include>com/kohlschutter/**/*.java</include>
                            <include>org/kohlschutter/**/*.java</include>
                            <include>${kohlschutter.custom.package.folder}/**/*.java</include>
                        </includes>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>templating-maven-plugin</artifactId>
                    <version>3.0.0</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>exec-maven-plugin</artifactId>
                    <version>3.4.1</version>
                </plugin>
                <plugin>
                    <groupId>org.graalvm.buildtools</groupId>
                    <artifactId>native-maven-plugin</artifactId>
                    <version>${graal.plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>io.helidon.build-tools</groupId>
                    <artifactId>helidon-services-plugin</artifactId>
                    <version>4.0.9</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.kohlschutter</groupId>
                <artifactId>maven-plugin-config</artifactId>
                <version>${kohlschutter.parent.version}</version>
            </dependency>
            <dependency>
                <groupId>com.kohlschutter</groupId>
                <artifactId>compiler-annotations</artifactId>
                <version>${kohlschutter.parent.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.kohlschutter</groupId>
                <artifactId>kohlschutter-util</artifactId>
                <version>${kohlschutter.parent.version}</version>
            </dependency>
            <dependency>
                <groupId>com.kohlschutter</groupId>
                <artifactId>kohlschutter-test-util</artifactId>
                <version>${kohlschutter.parent.version}</version>
            </dependency>
            <dependency>
                <groupId>org.junit</groupId>
                <artifactId>junit-bom</artifactId>
                <version>${junit.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jdt</groupId>
                <artifactId>org.eclipse.jdt.annotation</artifactId>
                <version>${eclipsejdt.annotations.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.errorprone</groupId>
                <artifactId>error_prone_core</artifactId>
                <version>${errorprone.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.errorprone</groupId>
                <artifactId>error_prone_annotations</artifactId>
                <version>${errorprone.annotations.version}</version>
            </dependency>
            <dependency>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>animal-sniffer-annotations</artifactId>
                <version>1.24</version>
            </dependency>

            <!-- Below are dependencies commonly used by kohlschutter projects -->
            <!-- We want to keep these versions as up-to-date as possible -->
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-simple</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>3.4.0</version>
                <!--
          using "jxr-no-fork" prevents "module not found" errors:
          https://maven.apache.org/components/jxr-archives/jxr-LATEST/maven-jxr-plugin/examples/nofork.html
        -->
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>jxr-no-fork</report>
                            <report>test-jxr-no-fork</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
        </plugins>
    </reporting>
    <modules>
        <module>maven-plugin-config</module>
        <module>kohlschutter-parent-multirelease</module>
        <module>compiler-annotations</module>
        <module>kohlschutter-util</module>
        <module>kohlschutter-test-util</module>
    </modules>
</project>
