<?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>de.horstgernhardt</groupId>
    <artifactId>parentPom</artifactId>
    <version>1.0.0</version>
    <packaging>pom</packaging>


    <name>Parent POM</name>
    <description>
        This is the parent POM for all Java related artifacts from de.horstgernhardt.
        It's optimized to work together with the Hottbox Build Pipeline.
    </description>


    <!--
    Die SCM-URLs wirken sich wie folgt auch auf die Maven-Site (scm.html) aus:
    - connection          => Anonymous Access
    - developerConnection => Developer Access
    - url                 => Web Browser Access
-->
    <scm>
        <connection>scm:git:https://bitbucket.org/hottbox/parentpom.git</connection>
        <developerConnection>scm:git:https://bitbucket.org/hottbox/parentpom.git</developerConnection>
        <url>https://bitbucket.org/hottbox/parentpom</url>
        <tag>HEAD</tag>
    </scm>


    <!--
        Project's Homepage; in den Kindern wird die artifactId angehängt oder der Wert der Property project.directory,
                            wenn im Kind nicht überschrieben.

        In der Maven-Site zu finden unter
        - summary.html:           Project Information -> Homepage
        - dependencies.html:      Dependency Tree -> Glühbirne auf Artefakt
        - plugin-management.html: Project Plugin Management -> Artefakt 'buildTools-maven-plugin'
    -->
    <url>https://hottbox.bitbucket.io/${project.artifactId}</url>


    <organization>
        <name>Horst Gernhardt</name>
        <url>https://hottbox.bitbucket.io</url>
    </organization>

    <developers>
        <developer>
            <name>Horst Gernhardt</name>
            <email>hottbox.development@gmx.de</email>
            <url>https://hottbox.bitbucket.io</url>
            <roles>
                <role>Lead Developer</role>
            </roles>
        </developer>
    </developers>


    <!--
        https://choosealicense.com/appendix/
        https://opensource.stackexchange.com/questions/1579/when-is-my-project-a-derivative-work-in-an-interpreted-language
        -->
    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <comments>
                This software comes "as is".
                Use it at your own risk.
                No warranty or liability is given.
                The software developer/s is/are not responsible for any damage that might be caused by using this software!
            </comments>
            <distribution>repo</distribution>
        </license>
    </licenses>


    <distributionManagement>
        <snapshotRepository>
            <id>ossrh</id>  <!-- same as in Maven's settings.xml: settings/servers/server/id -->
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <!-- Release-Repository ist im nexus-staging-maven-plugin konfiguriert -->
    </distributionManagement>


    <issueManagement>
        <system>Bitbucket Cloud Issue Tracker or E-Mail (see Team/Lead Developer)</system>
        <url>https://bitbucket.org/hottbox/${project.artifactId}/issues</url>
    </issueManagement>



    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

        <buildSettings.dir>${project.basedir}/buildSettings</buildSettings.dir>
        <owasp.suppressions.file>${buildSettings.dir}/owasp-suppressions.xml</owasp.suppressions.file>
    </properties>



    <profiles>
        <!-- Profile to skip OWASP dependency checks during build -->
        <profile>
            <id>skipOwasp</id>
            <activation>
                <property>
                    <name>skipOwasp</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.owasp</groupId>
                        <artifactId>dependency-check-maven</artifactId>
                        <configuration>
                            <skip>true</skip>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>


        <!-- Profile to skip Surefire tests during build -->
        <profile>
            <id>skipTests</id>
            <activation>
                <property>
                    <name>skipTests</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <skip>true</skip>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>


        <!--
            maven-enforcer-plugin
            =====================
            - requireSnapshotVersion:
              Artefakt-Version muss eine SNAPSHOT-Version sein muss, die der ParentPOM aber nicht
            - requireReleaseDeps:
              es drürfen keine SNAPSHOT-Abhängigkeiten vorhanden sein
            - requirePluginVersions:
              für alle Plugins muss eine eine gültige Version angegeben sein
        -->
        <profile>
            <id>checkDependencyAndPluginVersions</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-enforcer-plugin</artifactId>
                        <configuration>
                            <rules>
                                <requireSnapshotVersion>
                                    <failWhenParentIsRelease>false</failWhenParentIsRelease>
                                    <message>The current version must be a SNAPSHOT version, but it isn't: ${project.version}</message>
                                </requireSnapshotVersion>
                                <requireReleaseDeps>
                                    <message>The project's dependencies must not contain SNAPSHOT versions.</message>
                                </requireReleaseDeps>
                                <requirePluginVersions>
                                    <message>To fix it, generate the Maven site and have a look at 'Project Plugin Management' to see the plugin versions...</message>
                                    <banLatest>true</banLatest>
                                    <banRelease>true</banRelease>
                                    <banSnapshots>true</banSnapshots>
                                    <!-- do not check maven default plugins -->
                                    <unCheckedPluginList>
                                        org.apache.maven.plugins:maven-resources-plugin,
                                        org.apache.maven.plugins:maven-compiler-plugin,
                                        org.apache.maven.plugins:maven-clean-plugin,
                                        org.apache.maven.plugins:maven-install-plugin,
                                        org.apache.maven.plugins:maven-deploy-plugin
                                    </unCheckedPluginList>
                                </requirePluginVersions>
                            </rules>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>


        <!--
        maven-enforcer-plugin
        =====================
        - banDuplicateClasses:
        Keine doppelten Klassen im Classpath/den Abhängigkeiten, die sich unterscheiden.
        Siehe auch https://www.mojohaus.org/extra-enforcer-rules/banDuplicateClasses.html
        (Alternative (vmtl. mächtiger, aber nicht gut dokumentiert): https://github.com/basepom/duplicate-finder-maven-plugin)
        -->
        <profile>
            <id>duplicateClasses</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-enforcer-plugin</artifactId>
                        <configuration>
                            <rules>
                                <banDuplicateClasses>
                                    <scopes>
                                        <scope>compile</scope>
                                        <scope>provided</scope>
                                    </scopes>
                                    <findAllDuplicates>true</findAllDuplicates>
                                    <ignoreWhenIdentical>true</ignoreWhenIdentical>
                                </banDuplicateClasses>
                            </rules>
                            <fail>true</fail>
                        </configuration>
                        <dependencies>
                            <dependency>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>extra-enforcer-rules</artifactId>
                                <version>1.6.2</version>
                            </dependency>
                        </dependencies>
                    </plugin>
                </plugins>
            </build>
        </profile>


        <!-- Create checksum files -->
        <profile>
            <id>createChecksumFiles</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>de.horstgernhardt</groupId>
                        <artifactId>buildTools-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>createChecksumFiles</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>checksum-createFiles</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>


    <build>
        <pluginManagement>
            <plugins>
                <!--
                    Das versions-plugin wird in der Build-Pipeline verwendet,
                    um die Version zu manipulieren:
                    - die SNAPSHOT- in die entsprechende Release-Version ändern
                    - die Release- in die nächst höhere SNAPSHOT-Version ändern
                    Dazu ist mind. version 2.6 notwendig, frühere Versionen sind diesbezüglich buggy!
                -->
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>versions-maven-plugin</artifactId>
                    <version>2.15.0</version>
                </plugin>

                <!-- Für die Erstellung der Properties scmBranch und buildNumber, die im MANIFEST landen -->
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>buildnumber-maven-plugin</artifactId>
                    <version>3.1.0</version>
                </plugin>

                <!-- Für die Erstellung des Build-Timestamps im gewünschten Format -->
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>3.4.0</version>
                </plugin>

                <!-- OWASP-Dependecy-Checker -->
                <plugin>
                    <groupId>org.owasp</groupId>
                    <artifactId>dependency-check-maven</artifactId>
                    <version>8.2.1</version>
                </plugin>

                <!-- Für die Signierung der Artefakte -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>3.1.0</version>
                    <!-- Keyname und Passwort sind in der ~/.m2/settings.xml (Profil 'signArtifacts') konfiguriert -->
                </plugin>

                <!-- Konfiguration u. a. der MANIFEST-Inhalte von JARs -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.3.0</version>
                    <configuration>
                        <archive>
                            <addMavenDescriptor>false</addMavenDescriptor>
                            <manifest>
                                <!-- Doku s. http://maven.apache.org/shared/maven-archiver/index.html#class_manifest -->
                                <!--
                                        Manifest-Version: 1.0
                                    addDefaultEntries
                                        Created-By: Maven Jar Plugin 3.2.0
                                        Build-Jdk-Spec: 1.8
                                    addDefaultSpecificationEntries
                                        Specification-Title: topSecret
                                        Specification-Version: 1.0
                                        Specification-Vendor: Horst Gernhardt
                                    addDefaultImplementationEntries
                                        Implementation-Title: topSecret
                                        Implementation-Version: 1.0.0-SNAPSHOT
                                        Implementation-Vendor: Horst Gernhardt
                                    addBuildEnvironmentEntries
                                        Build-Tool: Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb659418193
                                         3e; 2014-06-17T15:51:42+02:00)
                                        Build-Jdk: 1.8.0_202 (Oracle Corporation)
                                        Build-Os: Windows 10 (10.0; amd64)
                                -->
                                <addDefaultEntries>false</addDefaultEntries>
                                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                            </manifest>
                            <manifestEntries>
                                <Project-URL>${project.url}</Project-URL>
                                <SCM-URL>${project.scm.url}</SCM-URL>
                                <SCM-Branch>${scmBranch}</SCM-Branch>      <!-- buildnumber-maven-plugin / scmBranchPropertyName-Default -->
                                <SCM-Commit>${buildNumber}</SCM-Commit>    <!-- buildnumber-maven-plugin; ist der aktuelle LOKALE Commit-Hash -->
                                <JRE-required>${maven.compiler.target}+</JRE-required>
                                <MVN-GroupID>${project.groupId}</MVN-GroupID>
                                <MVN-ArtifactID>${project.artifactId}</MVN-ArtifactID>
                                <MVN-Version>${project.version}</MVN-Version>
                                <Build-Date>${current.timestamp}</Build-Date>   <!-- build-helper-maven-plugin -->
                            </manifestEntries>
                        </archive>
                    </configuration>
                </plugin>

                <!-- Konfiguration u. a. der MANIFEST-Inhalte von source-JARs -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>3.2.1</version>
                    <configuration>
                        <archive>
                            <addMavenDescriptor>false</addMavenDescriptor>
                            <manifest>
                                <addDefaultEntries>false</addDefaultEntries>
                                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                            </manifest>
                            <manifestEntries>
                                <Project-URL>${project.url}</Project-URL>
                                <SCM-URL>${project.scm.url}</SCM-URL>
                                <SCM-Branch>${scmBranch}</SCM-Branch>      <!-- buildnumber-maven-plugin / scmBranchPropertyName-Default -->
                                <SCM-Commit>${buildNumber}</SCM-Commit>    <!-- buildnumber-maven-plugin; ist der aktuelle LOKALE Commit-Hash -->
                                <JRE-required>${maven.compiler.source}+</JRE-required>
                                <MVN-GroupID>${project.groupId}</MVN-GroupID>
                                <MVN-ArtifactID>${project.artifactId}</MVN-ArtifactID>
                                <MVN-Version>${project.version}</MVN-Version>
                                <Build-Date>${current.timestamp}</Build-Date>   <!-- build-helper-maven-plugin -->
                            </manifestEntries>
                        </archive>
                    </configuration>
                </plugin>

                <!-- Konfiguration der Javadoc -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>3.5.0</version>
                    <configuration>
                        <stylesheet>java</stylesheet>
                        <doctitle><![CDATA[${project.artifactId} (${project.name}) ${project.version}<br />API Specification]]></doctitle>
                        <header><![CDATA[<b>${project.artifactId}<br />${project.version}</b>]]></header>
                        <footer><![CDATA[<b>${project.name}<br />${project.version}</b>]]></footer>
                        <bottom><![CDATA[Copyright &#169; Horst Gernhardt {currentYear}, Contact: ${project.developers[0].email}<br>License: ${project.licenses[0].name}]]></bottom>
                        <overview>src/main/javadoc/overview.html</overview>
                        <failOnError>true</failOnError>
                        <detectJavaApiLink>true</detectJavaApiLink>
<!--                    <links>-->
<!--                        <link>http://docs.oracle.com/javase/8/docs/api/</link>-->
<!--                    </links>-->
                        <docfilessubdirs>true</docfilessubdirs>
                        <show>protected</show>  <!-- public, protected, package, private -->
                        <archive>
                            <addMavenDescriptor>false</addMavenDescriptor>
                            <manifest>
                                <addDefaultEntries>false</addDefaultEntries>
                                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                            </manifest>
                            <manifestEntries>
                                <Project-URL>${project.url}</Project-URL>
                                <SCM-URL>${project.scm.url}</SCM-URL>
                                <SCM-Branch>${scmBranch}</SCM-Branch>      <!-- buildnumber-maven-plugin / scmBranchPropertyName-Default -->
                                <SCM-Commit>${buildNumber}</SCM-Commit>    <!-- buildnumber-maven-plugin; ist der aktuelle LOKALE Commit-Hash -->
                                <JRE-required>${maven.compiler.target}+</JRE-required>
                                <MVN-GroupID>${project.groupId}</MVN-GroupID>
                                <MVN-ArtifactID>${project.artifactId}</MVN-ArtifactID>
                                <MVN-Version>${project.version}</MVN-Version>
                                <Build-Date>${current.timestamp}</Build-Date>   <!-- build-helper-maven-plugin -->
                            </manifestEntries>
                        </archive>
                    </configuration>
                </plugin>

                <!-- Konfiguration der Site-Reports -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-project-info-reports-plugin</artifactId>
                    <version>3.4.3</version>
                    <configuration>
                        <showAvatarImages>false</showAvatarImages>
                        <!--
                            Kann man explizit setzen, wenn die parentPom da mit einfließt.
                            Auswirkungen in der Maven-Site:
                            - scm.html: Web Browser Access
                        -->
<!--                        <webAccessUrl>https://bitbucket.org/hottbox/${project.artifactId}</webAccessUrl>-->
                    </configuration>
                </plugin>

                <!-- Berücksichtigung des Maven-Site-Descriptors site.xml -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>3.12.1</version>
                    <configuration>
                        <locales>en</locales>   <!-- ist zwar default, aber manchmal muss man sicher gehen! -->
                        <relativizeDecorationLinks>false</relativizeDecorationLinks>
                        <archive>
                            <addMavenDescriptor>false</addMavenDescriptor>
                            <manifest>
                                <addDefaultEntries>false</addDefaultEntries>
                                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                            </manifest>
                            <manifestEntries>
                                <Project-URL>${project.url}</Project-URL>
                                <SCM-URL>${project.scm.url}</SCM-URL>
                                <SCM-Branch>${scmBranch}</SCM-Branch>      <!-- buildnumber-maven-plugin / scmBranchPropertyName-Default -->
                                <SCM-Commit>${buildNumber}</SCM-Commit>    <!-- buildnumber-maven-plugin; ist der aktuelle LOKALE Commit-Hash -->
                                <JRE-required>${maven.compiler.target}+</JRE-required>
                                <MVN-GroupID>${project.groupId}</MVN-GroupID>
                                <MVN-ArtifactID>${project.artifactId}</MVN-ArtifactID>
                                <MVN-Version>${project.version}</MVN-Version>
                                <Build-Date>${current.timestamp}</Build-Date>   <!-- build-helper-maven-plugin -->
                            </manifestEntries>
                        </archive>
                    </configuration>
                    <executions>
                        <execution>
                            <id>attachDescriptor</id>
                            <phase>package</phase>
                            <goals>
                                <goal>attach-descriptor</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

                <!-- Konfiguration des Surefire-Plugins -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>3.1.0</version>
                    <configuration>
                        <!-- Damit die Tests mit Umlauten auch unter Windows laufen -->
                        <argLine>-Dfile.encoding=UTF-8</argLine>
                    </configuration>
                </plugin>

                <!-- Plugin wird in der Build-Pipeline genutzt -->
                <plugin>
                    <groupId>de.horstgernhardt</groupId>
                    <artifactId>buildTools-maven-plugin</artifactId>
                    <version>1.0.0</version>
                </plugin>

                <!--Prüfung, damit keine Snapshots in Release-Builds enthalten sind -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <version>3.3.0</version>
                </plugin>

                <!-- Nexus-Deploy -->
                <plugin>
                    <groupId>org.sonatype.plugins</groupId>
                    <artifactId>nexus-staging-maven-plugin</artifactId>
                    <version>1.6.13</version>
                </plugin>
            </plugins>
        </pluginManagement>


        <plugins>
            <!-- für die Erstellung der Properties scmBranch und buildNumber, die im MANIFEST landen -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>buildnumber-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>create</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
<!--                    <getRevisionOnlyOnce>true</getRevisionOnlyOnce>-->
                    <shortRevisionLength>0</shortRevisionLength>
                </configuration>
            </plugin>

            <!-- für den lokalisierten Build-Zeitpunkt in der MANIFEST.MF -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>localTimestamp</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>timestamp-property</goal>
                        </goals>
                        <configuration>
                            <name>current.timestamp</name>
                            <pattern>yyyy-MM-dd HH:mm:ss Z</pattern>
                            <locale>de_DE</locale>
                            <timeZone>Europe/Berlin</timeZone>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <!-- immer auch ein sources-jar erstellen -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>createSourcesJar</id>
                        <phase>package</phase>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- immer auch ein javadoc-jar erstellen -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <executions>
                    <execution>
                        <id>createJavadocJar</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- gewisse Tests beim Build ausschließen -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>**/*Manual*.java</exclude>
                        <exclude>**/*Manuell*.java</exclude>
                        <exclude>**/manualTest/**/*.java</exclude>
                        <exclude>**/manuell/**</exclude>
                        <exclude>**/*Ausprobierer.java</exclude>
                    </excludes>
                </configuration>
            </plugin>

            <!-- OWASP-Dependency-Check -->
            <plugin>
                <groupId>org.owasp</groupId>
                <artifactId>dependency-check-maven</artifactId>
                <configuration>
                    <failBuildOnCVSS>7</failBuildOnCVSS>
                    <suppressionFiles>
                        <suppressionFile>${owasp.suppressions.file}</suppressionFile>
                    </suppressionFiles>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- Artefakte signieren -->
            <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>
                    </execution>
                </executions>
            </plugin>

            <!-- nexus-staging-maven-plugin ersetzt das maven-deploy-plugin -->
            <plugin>
                <groupId>org.sonatype.plugins</groupId>
                <artifactId>nexus-staging-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <serverId>ossrh</serverId>  <!-- same as in Maven's settings.xml: settings/servers/server/id -->
                    <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                    <!-- FIXME evtl auf true setzen, wenn alles bis ins zentrale Maven-Repository automatisch gehen soll, asonsten Doko, wie man das manuell macht: https://central.sonatype.org/publish/publish-maven/#nexus-staging-maven-plugin-for-deployment-and-release => mvn nexus-staging:release -->
                    <autoReleaseAfterClose>false</autoReleaseAfterClose>
                </configuration>
            </plugin>

        </plugins>
    </build>


    <reporting>
        <excludeDefaults>false</excludeDefaults>
        <plugins>
            <!-- In der Maven-Site nur einen Link auf die Lizenz aufnehmen -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <configuration>
                    <linkOnly>true</linkOnly>
                    <skipEmptyReport>true</skipEmptyReport>
                </configuration>
                <!-- alle Reports (Default) in geänderter Reihenfolge, außer distribution-management (macht keinen Sinn) -->
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>index</report>
                            <report>summary</report>
                            <report>licenses</report>
                            <report>dependency-info</report>
                            <report>dependencies</report>
                            <report>dependency-management</report>
                            <report>scm</report>
                            <report>ci-management</report>
                            <report>issue-management</report>
                            <report>plugin-management</report>
                            <report>plugins</report>
                            <report>modules</report>
                            <report>team</report>
                            <report>mailing-lists</report>
<!--                            <report>distribution-management</report>-->
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <reportSets>
                    <reportSet>
                        <id>javadoc-report</id>
                        <reports>
                            <report>javadoc-no-fork</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
        </plugins>
    </reporting>

</project>