<?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>se.mdh</groupId>
  <artifactId>mdh-parent</artifactId>
  <version>49</version>
  <packaging>pom</packaging>

  <name>${project.groupId}:${project.artifactId}</name>
  <description>En maven-parent för MDH-produkter skrivna i Java.</description>
  <url>https://github.com/mdh-se/${project.artifactId}</url>
  <organization>
    <name>Mälardalens högskola</name>
    <url>https://www.mdh.se/</url>
  </organization>
  <licenses>
    <license>
      <name>The MIT License</name>
      <url>https://opensource.org/licenses/MIT</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <developers>
    <developer>
      <name>Dennis Lundberg</name>
    </developer>
    <developer>
      <name>Johan Nilsson</name>
    </developer>
  </developers>

  <scm>
    <connection>scm:git:https://github.com/mdh-se/${project.artifactId}.git</connection>
    <developerConnection>scm:git:https://github.com/mdh-se/${project.artifactId}.git</developerConnection>
    <tag>mdh-parent-49</tag>
    <url>https://github.com/mdh-se/${project.artifactId}</url>
  </scm>
  <distributionManagement>
    <repository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
    </repository>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>

  <properties>
    <!-- MDH-specific properties -->
    <mdh.animal-sniffer-maven-plugin.version>1.17</mdh.animal-sniffer-maven-plugin.version>
    <mdh.annotation-api.version>1.3.2</mdh.annotation-api.version>
    <mdh.appassembler-maven-plugin.version>1.9</mdh.appassembler-maven-plugin.version>
    <!-- This version is tied to cxf -->
    <mdh.brave.version>5.9.4</mdh.brave.version>
    <mdh.build-helper-maven-plugin.version>3.0.0</mdh.build-helper-maven-plugin.version>
    <mdh.checkstyle.version>8.31</mdh.checkstyle.version>
    <mdh.cxf.version>3.2.14</mdh.cxf.version>
    <mdh.cxf-xjc.version>3.2.3</mdh.cxf-xjc.version>
    <mdh.exec-maven-plugin.version>1.4.0</mdh.exec-maven-plugin.version>
    <mdh.extra-enforcer-rules.version>1.2</mdh.extra-enforcer-rules.version>
    <!-- This version is tied to spring-boot-test -->
    <mdh.hamcrest.version>2.1</mdh.hamcrest.version>
    <!-- This version is tied to spring-boot -->
    <mdh.jackson.version>2.10.2</mdh.jackson.version>
    <mdh.jacoco-maven-plugin.version>0.8.3</mdh.jacoco-maven-plugin.version>
    <mdh.java.version>1.8</mdh.java.version>
    <mdh.jaxb-api.version>2.2.8</mdh.jaxb-api.version>
    <mdh.jaxws-api.version>2.2.9</mdh.jaxws-api.version>
    <mdh.jms-api.version>2.0.1</mdh.jms-api.version>
    <mdh.jsp-api.version>2.1</mdh.jsp-api.version>
    <mdh.jsr181-api.version>1.0-MR1</mdh.jsr181-api.version>
    <mdh.jstl-api.version>1.2.1</mdh.jstl-api.version>
    <mdh.logging.email.level>off</mdh.logging.email.level>
    <mdh.logging.file.encoding>UTF-8</mdh.logging.file.encoding>
    <mdh.logging.file.level>debug</mdh.logging.file.level>
    <mdh.logging.product.level>debug</mdh.logging.product.level>
    <mdh.mail-api.version>1.4.7</mdh.mail-api.version>
    <mdh.maven.version>3.0</mdh.maven.version>
    <mdh.maven-antrun-plugin.version>1.8</mdh.maven-antrun-plugin.version>
    <mdh.maven-assembly-plugin.version>3.1.0</mdh.maven-assembly-plugin.version>
    <mdh.maven-bundle-plugin.version>2.3.7</mdh.maven-bundle-plugin.version>
    <mdh.maven-changes-plugin.templateEncoding>UTF-8</mdh.maven-changes-plugin.templateEncoding>
    <mdh.maven-changes-plugin.version>2.12.1</mdh.maven-changes-plugin.version>
    <mdh.maven-checkstyle-plugin.version>3.1.2</mdh.maven-checkstyle-plugin.version>
    <mdh.maven-clean-plugin.version>3.1.0</mdh.maven-clean-plugin.version>
    <mdh.maven-compiler-plugin.version>3.8.1</mdh.maven-compiler-plugin.version>
    <mdh.maven-dependency-plugin.version>3.1.2</mdh.maven-dependency-plugin.version>
    <mdh.maven-deploy-plugin.version>2.8.2</mdh.maven-deploy-plugin.version>
    <mdh.maven-ear-plugin.version>2.10.1</mdh.maven-ear-plugin.version>
    <mdh.maven-ejb-plugin.version>3.0.0</mdh.maven-ejb-plugin.version>
    <mdh.maven-enforcer-plugin.version>3.0.0-M3</mdh.maven-enforcer-plugin.version>
    <mdh.maven-gpg-plugin.version>1.6</mdh.maven-gpg-plugin.version>
    <mdh.maven-install-plugin.version>2.5.2</mdh.maven-install-plugin.version>
    <mdh.maven-jar-plugin.version>3.2.0</mdh.maven-jar-plugin.version>
    <mdh.maven-javadoc-plugin.version>3.2.0</mdh.maven-javadoc-plugin.version>
    <mdh.maven-jxr-plugin.version>3.1.1</mdh.maven-jxr-plugin.version>
    <mdh.maven-pdf-plugin.version>1.4</mdh.maven-pdf-plugin.version>
    <mdh.maven-plugin-plugin.version>3.5.2</mdh.maven-plugin-plugin.version>
    <mdh.maven-pmd-plugin.version>3.14.0</mdh.maven-pmd-plugin.version>
    <mdh.maven-project-info-reports-plugin.version>3.0.0</mdh.maven-project-info-reports-plugin.version>
    <mdh.maven-release-plugin.version>2.5.3</mdh.maven-release-plugin.version>
    <msh.maven-remote-resources-plugin.version>1.5</msh.maven-remote-resources-plugin.version>
    <mdh.maven-resources-plugin.version>3.2.0</mdh.maven-resources-plugin.version>
    <mdh.maven-scm-provider-jgit.version>1.9.5</mdh.maven-scm-provider-jgit.version>
    <mdh.maven-site-plugin.version>3.7.1</mdh.maven-site-plugin.version>
    <mdh.maven-source-plugin.version>3.2.1</mdh.maven-source-plugin.version>
    <mdh.maven-surefire-plugin.version>2.22.2</mdh.maven-surefire-plugin.version>
    <mdh.maven-toolchains-plugin.version>1.1</mdh.maven-toolchains-plugin.version>
    <mdh.maven-wagon.version>3.1.0</mdh.maven-wagon.version>
    <mdh.maven-war-plugin.version>3.2.2</mdh.maven-war-plugin.version>
    <mdh.mdh-maven-build-tools.version>32</mdh.mdh-maven-build-tools.version>
    <!-- This version is tied to spring-boot-test -->
    <mdh.mockito.version>3.9.0</mdh.mockito.version>
    <mdh.persistence-api.version>2.2</mdh.persistence-api.version>
    <!-- This version is tied to cxf -->
    <mdh.rs-api.version>2.1.1</mdh.rs-api.version>
    <mdh.servlet-api.version>2.5</mdh.servlet-api.version>
    <mdh.slf4j.version>1.7.25</mdh.slf4j.version>
    <mdh.sortpom-maven-plugin.version>2.10.0</mdh.sortpom-maven-plugin.version>
    <mdh.spotbugs-maven-plugin.version>3.1.12.2</mdh.spotbugs-maven-plugin.version>
    <mdh.spring.version>5.3.7</mdh.spring.version>
    <mdh.spring-boot.version>2.5.0</mdh.spring-boot.version>
    <mdh.spring-cloud.version>3.0.2</mdh.spring-cloud.version>
    <mdh.springfox.version>2.9.2</mdh.springfox.version>
    <mdh.sql-maven-plugin.version>1.5</mdh.sql-maven-plugin.version>
    <mdh.tidy-maven-plugin.version>1.1.0</mdh.tidy-maven-plugin.version>
    <!-- This version is tied to spring-boot -->
    <mdh.validation-api.version>2.0.1.Final</mdh.validation-api.version>
    <mdh.versions-maven-plugin.version>2.5</mdh.versions-maven-plugin.version>

    <!-- Standard Maven properties -->
    <maven.compiler.source>${mdh.java.version}</maven.compiler.source>
    <maven.compiler.target>${mdh.java.version}</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <project.scm.id>github</project.scm.id>
  </properties>

  <dependencyManagement>
    <dependencies>
      <!-- Implementation javax.mail -->
      <dependency>
        <groupId>com.sun.mail</groupId>
        <artifactId>javax.mail</artifactId>
        <version>${mdh.mail-api.version}</version>
      </dependency>
      <dependency>
        <groupId>io.zipkin.brave</groupId>
        <artifactId>brave</artifactId>
        <version>${mdh.brave.version}</version>
      </dependency>
      <dependency>
        <groupId>io.zipkin.brave</groupId>
        <artifactId>brave-context-log4j12</artifactId>
        <version>${mdh.brave.version}</version>
      </dependency>
      <dependency>
        <groupId>io.zipkin.brave</groupId>
        <artifactId>brave-instrumentation-servlet</artifactId>
        <version>${mdh.brave.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.annotation</groupId>
        <artifactId>javax.annotation-api</artifactId>
        <version>${mdh.annotation-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.jms</groupId>
        <artifactId>javax.jms-api</artifactId>
        <version>${mdh.jms-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>javax.mail-api</artifactId>
        <version>${mdh.mail-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.persistence</groupId>
        <artifactId>javax.persistence-api</artifactId>
        <version>${mdh.persistence-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>${mdh.servlet-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.servlet.jsp</groupId>
        <artifactId>jsp-api</artifactId>
        <version>${mdh.jsp-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.servlet.jsp.jstl</groupId>
        <artifactId>javax.servlet.jsp.jstl-api</artifactId>
        <version>${mdh.jstl-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.validation</groupId>
        <artifactId>validation-api</artifactId>
        <version>${mdh.validation-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.ws.rs</groupId>
        <artifactId>javax.ws.rs-api</artifactId>
        <version>${mdh.rs-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>${mdh.jaxb-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.xml.ws</groupId>
        <artifactId>jaxws-api</artifactId>
        <version>${mdh.jaxws-api.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-integration-tracing-brave</artifactId>
        <version>${mdh.cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-frontend-jaxrs</artifactId>
        <version>${mdh.cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-rs-client</artifactId>
        <version>${mdh.cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-ws-security</artifactId>
        <version>${mdh.cxf.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <filtering>true</filtering>
        <directory>src/test/resources</directory>
      </testResource>
    </testResources>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>com.github.ekryd.sortpom</groupId>
          <artifactId>sortpom-maven-plugin</artifactId>
          <version>${mdh.sortpom-maven-plugin.version}</version>
          <configuration>
            <predefinedSortOrder>default_1_0_0</predefinedSortOrder>
            <keepBlankLines>true</keepBlankLines>
            <sortDependencies>groupId,artifactId</sortDependencies>
            <verifyFail>Stop</verifyFail>
          </configuration>
        </plugin>
        <plugin>
          <groupId>com.github.spotbugs</groupId>
          <artifactId>spotbugs-maven-plugin</artifactId>
          <version>${mdh.spotbugs-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.cxf</groupId>
          <artifactId>cxf-codegen-plugin</artifactId>
          <version>${mdh.cxf.version}</version>
          <dependencies>
            <!-- Generera JSR-303 Bean Validation Annotations -->
            <dependency>
              <groupId>com.github.krasa</groupId>
              <artifactId>krasa-jaxb-tools</artifactId>
              <version>1.5</version>
            </dependency>
            <!-- Lägg till toString() metoder -->
            <dependency>
              <groupId>org.apache.cxf.xjcplugins</groupId>
              <artifactId>cxf-xjc-ts</artifactId>
              <version>${mdh.cxf-xjc.version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <defaultOptions>
              <!-- Lös automatiskt namnkonflikter utan att behöva använda binding customizations -->
              <autoNameResolution>true</autoNameResolution>
              <bindingFiles>
                <bindingFile>${project.basedir}/src/main/resources/bindings.xml</bindingFile>
              </bindingFiles>
              <extraargs>
                <!-- Generera JSR-303 Bean Validation Annotations -->
                <extraarg>-xjc-XJsr303Annotations</extraarg>
                <!-- Lägg till toString() metoder -->
                <extraarg>-xjc-Xts:style:org.apache.commons.lang3.builder.ToStringStyle.SHORT_PREFIX_STYLE</extraarg>
              </extraargs>
              <!-- Ta inte med header som innehåller datum - lättare att diffa -->
              <suppressGeneratedDate>true</suppressGeneratedDate>
            </defaultOptions>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.cxf</groupId>
          <artifactId>cxf-xjc-plugin</artifactId>
          <version>${mdh.cxf-xjc.version}</version>
          <dependencies>
            <!-- Generera JSR-303 Bean Validation Annotations -->
            <dependency>
              <groupId>com.github.krasa</groupId>
              <artifactId>krasa-jaxb-tools</artifactId>
              <version>1.5</version>
            </dependency>
            <!-- Lägg till toString() metoder -->
            <dependency>
              <groupId>org.apache.cxf.xjcplugins</groupId>
              <artifactId>cxf-xjc-ts</artifactId>
              <version>${mdh.cxf-xjc.version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <sourceRoot>${project.build.directory}/generated</sourceRoot>
            <xsdOptions>
              <xsdOption>
                <xsdDir>${project.basedir}/src/main/resources</xsdDir>
                <bindingFile>${project.basedir}/src/main/resources/bindings.xml</bindingFile>
                <extension>true</extension>
                <extensionArgs>
                  <!-- Ta inte med header som innehåller datum - lättare att diffa -->
                  <extensionArg>-no-header</extensionArg>
                  <!-- JSR-303 Bean Validation Annotations -->
                  <extensionArg>-XJsr303Annotations</extensionArg>
                  <!-- Insert toString() method -->
                  <extensionArg>-Xts:style:org.apache.commons.lang3.builder.ToStringStyle.SHORT_PREFIX_STYLE</extensionArg>
                </extensionArgs>
              </xsdOption>
            </xsdOptions>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.felix</groupId>
          <artifactId>maven-bundle-plugin</artifactId>
          <version>${mdh.maven-bundle-plugin.version}</version>
          <extensions>true</extensions>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>${mdh.maven-antrun-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>${mdh.maven-assembly-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>se.mdh</groupId>
              <artifactId>mdh-maven-build-tools</artifactId>
              <version>${mdh.mdh-maven-build-tools.version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <tarLongFileMode>gnu</tarLongFileMode>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-changes-plugin</artifactId>
          <version>${mdh.maven-changes-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>se.mdh</groupId>
              <artifactId>mdh-maven-build-tools</artifactId>
              <version>${mdh.mdh-maven-build-tools.version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <!-- Inheriting POMs need to specify mailSender, smtpHost and toAddresses -->
            <failOnError>true</failOnError>
            <mailContentType>text/plain; charset=${mdh.maven-changes-plugin.templateEncoding}</mailContentType>
            <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
            <subject>${project.artifactId}-${project.version} byggd av ${user.name}</subject>
            <templateDirectory>se/mdh/plugins/announcement</templateDirectory>
            <templateEncoding>${mdh.maven-changes-plugin.templateEncoding}</templateEncoding>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>${mdh.maven-checkstyle-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>com.puppycrawl.tools</groupId>
              <artifactId>checkstyle</artifactId>
              <version>${mdh.checkstyle.version}</version>
            </dependency>
            <dependency>
              <groupId>se.mdh</groupId>
              <artifactId>mdh-maven-build-tools</artifactId>
              <version>${mdh.mdh-maven-build-tools.version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <configLocation>mdh/checkstyle.xml</configLocation>
            <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-clean-plugin</artifactId>
          <version>${mdh.maven-clean-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>${mdh.maven-compiler-plugin.version}</version>
          <configuration>
            <compilerArgument>-Xlint:all,-serial,-dep-ann</compilerArgument>
            <showDeprecation>true</showDeprecation>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>${mdh.maven-dependency-plugin.version}</version>
          <configuration>
            <ignoreNonCompile>true</ignoreNonCompile>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>${mdh.maven-deploy-plugin.version}</version>
          <configuration>
            <retryFailedDeploymentCount>5</retryFailedDeploymentCount>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-ear-plugin</artifactId>
          <version>${mdh.maven-ear-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-ejb-plugin</artifactId>
          <version>${mdh.maven-ejb-plugin.version}</version>
          <configuration>
            <archive>
              <manifest>
                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
              </manifest>
            </archive>
            <clientExcludes>
              <clientExclude>META-INF/*.xml</clientExclude>
              <clientExclude>**/*Adapter.class</clientExclude>
              <clientExclude>**/*Bean.class</clientExclude>
              <clientExclude>**/*Local.class</clientExclude>
              <clientExclude>**/*LocalHome.class</clientExclude>
              <clientExclude>**/HomeFactory.class</clientExclude>
            </clientExcludes>
            <generateClient>true</generateClient>
            <filterDeploymentDescriptor>true</filterDeploymentDescriptor>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-enforcer-plugin</artifactId>
          <version>${mdh.maven-enforcer-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-failsafe-plugin</artifactId>
          <version>${mdh.maven-surefire-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>org.apache.maven.surefire</groupId>
              <artifactId>surefire-junit47</artifactId>
              <version>${mdh.maven-surefire-plugin.version}</version>
            </dependency>
          </dependencies>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-gpg-plugin</artifactId>
          <version>${mdh.maven-gpg-plugin.version}</version>
          <configuration>
            <!-- Required for GPG 2 -->
            <gpgArguments>
              <arg>--pinentry-mode</arg>
              <arg>loopback</arg>
            </gpgArguments>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-install-plugin</artifactId>
          <version>${mdh.maven-install-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jar-plugin</artifactId>
          <version>${mdh.maven-jar-plugin.version}</version>
          <configuration>
            <archive>
              <manifest>
                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
              </manifest>
            </archive>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>${mdh.maven-javadoc-plugin.version}</version>
          <configuration>
            <tags>
              <tag>
                <name>todo</name>
                <placement>X</placement>
                <head>To do:</head>
              </tag>
            </tags>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jxr-plugin</artifactId>
          <version>${mdh.maven-jxr-plugin.version}</version>
          <configuration>
            <linkJavadoc>false</linkJavadoc>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-pdf-plugin</artifactId>
          <version>${mdh.maven-pdf-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-plugin-plugin</artifactId>
          <version>${mdh.maven-plugin-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-pmd-plugin</artifactId>
          <version>${mdh.maven-pmd-plugin.version}</version>
          <configuration>
            <rulesets>
              <ruleset>rulesets/maven.xml</ruleset>
            </rulesets>
            <targetJdk>${maven.compiler.source}</targetJdk>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-release-plugin</artifactId>
          <version>${mdh.maven-release-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>org.apache.maven.scm</groupId>
              <artifactId>maven-scm-provider-jgit</artifactId>
              <version>${mdh.maven-scm-provider-jgit.version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <autoVersionSubmodules>true</autoVersionSubmodules>
            <providerImplementations>
              <git>jgit</git>
            </providerImplementations>
            <!-- Aktivera vår egen release-profil vid release -->
            <releaseProfiles>mdh-release</releaseProfiles>
            <!-- Deaktivera default profilen "release-profile" vid release -->
            <useReleaseProfile>false</useReleaseProfile>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-remote-resources-plugin</artifactId>
          <version>${msh.maven-remote-resources-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-resources-plugin</artifactId>
          <version>${mdh.maven-resources-plugin.version}</version>
          <configuration>
            <escapeString>\</escapeString>
            <nonFilteredFileExtensions>
              <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
            </nonFilteredFileExtensions>
            <propertiesEncoding>ISO-8859-1</propertiesEncoding>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-site-plugin</artifactId>
          <version>${mdh.maven-site-plugin.version}</version>
          <dependencies>
            <!-- Add support for ssh/scp, required by Maven 3 -->
            <dependency>
              <groupId>org.apache.maven.wagon</groupId>
              <artifactId>wagon-ssh</artifactId>
              <version>${mdh.maven-wagon.version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <locales>sv</locales>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-source-plugin</artifactId>
          <version>${mdh.maven-source-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>${mdh.maven-surefire-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>org.apache.maven.surefire</groupId>
              <artifactId>surefire-junit47</artifactId>
              <version>${mdh.maven-surefire-plugin.version}</version>
            </dependency>
          </dependencies>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-toolchains-plugin</artifactId>
          <version>${mdh.maven-toolchains-plugin.version}</version>
          <configuration>
            <toolchains>
              <jdk>
                <version>${mdh.java.version}</version>
              </jdk>
            </toolchains>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-war-plugin</artifactId>
          <version>${mdh.maven-war-plugin.version}</version>
          <configuration>
            <archive>
              <manifest>
                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
              </manifest>
            </archive>
            <archiveClasses>true</archiveClasses>
            <escapeString>\</escapeString>
            <filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
            <outputFileNameMapping>@{artifactId}@@{dashClassifier?}@.@{extension}@</outputFileNameMapping>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>animal-sniffer-maven-plugin</artifactId>
          <version>${mdh.animal-sniffer-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>appassembler-maven-plugin</artifactId>
          <version>${mdh.appassembler-maven-plugin.version}</version>
          <configuration>
            <configurationDirectory>conf</configurationDirectory>
            <configurationSourceDirectory>src/main/config</configurationSourceDirectory>
            <copyConfigurationDirectory>true</copyConfigurationDirectory>
            <escapeString>\</escapeString>
            <filterConfigurationDirectory>true</filterConfigurationDirectory>
            <outputFileNameMapping>@{artifactId}@@{dashClassifier?}@.@{extension}@</outputFileNameMapping>
            <repositoryLayout>flat</repositoryLayout>
            <repositoryName>lib</repositoryName>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>build-helper-maven-plugin</artifactId>
          <version>${mdh.build-helper-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
          <version>${mdh.exec-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>sql-maven-plugin</artifactId>
          <version>${mdh.sql-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>tidy-maven-plugin</artifactId>
          <version>${mdh.tidy-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>versions-maven-plugin</artifactId>
          <version>${mdh.versions-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.jacoco</groupId>
          <artifactId>jacoco-maven-plugin</artifactId>
          <version>${mdh.jacoco-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-maven-plugin</artifactId>
          <version>${mdh.spring-boot.version}</version>
          <configuration>
            <embeddedLaunchScriptProperties>
              <logFolder>$HOME/logs/${project.artifactId}</logFolder>
              <pidFolder>$HOME/pid</pidFolder>
            </embeddedLaunchScriptProperties>
            <executable>true</executable>
            <layout>ZIP</layout>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>com.github.ekryd.sortpom</groupId>
        <artifactId>sortpom-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>verify</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
            <id>enforce-versions</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireJavaVersion>
                  <version>${maven.compiler.source}</version>
                </requireJavaVersion>
                <requireMavenVersion>
                  <version>${mdh.maven.version}</version>
                </requireMavenVersion>
              </rules>
            </configuration>
          </execution>
          <execution>
            <id>enforce-bytecode-version</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <enforceBytecodeVersion>
                  <maxJdkVersion>${maven.compiler.target}</maxJdkVersion>
                  <excludes>
                    <exclude>mysql:mysql-connector-java</exclude>
                  </excludes>
                </enforceBytecodeVersion>
              </rules>
              <fail>true</fail>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>extra-enforcer-rules</artifactId>
            <version>${mdh.extra-enforcer-rules.version}</version>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>animal-sniffer-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>check-java-compatibility</id>
            <phase>process-classes</phase>
            <goals>
              <goal>check</goal>
            </goals>
            <configuration>
              <signature>
                <groupId>org.codehaus.mojo.signature</groupId>
                <artifactId>java${javaSignature.majorVersion}${javaSignature.minorVersion}</artifactId>
                <version>1.0</version>
              </signature>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <!--
            Make the version parts of the maven.compiler.target property
            available as separate properties, so that they can be used to define
            the java signature artifactId used by animal-sniffer-maven-plugin
          -->
          <execution>
            <id>parse-version</id>
            <goals>
              <goal>parse-version</goal>
            </goals>
            <configuration>
              <propertyPrefix>javaSignature</propertyPrefix>
              <versionString>${maven.compiler.target}</versionString>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <reporting>
    <excludeDefaults>true</excludeDefaults>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>${mdh.maven-project-info-reports-plugin.version}</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>index</report>
              <report>team</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>

  <profiles>
    <profile>
      <!-- Validate the changes.xml file automatically, but only if it exists -->
      <id>changes-validate</id>
      <activation>
        <file>
          <exists>src/changes/changes.xml</exists>
        </file>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-changes-plugin</artifactId>
            <executions>
              <execution>
                <id>changes-validate</id>
                <phase>validate</phase>
                <goals>
                  <goal>changes-validate</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>changes</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-changes-plugin</artifactId>
            <executions>
              <execution>
                <id>changes-check</id>
                <phase>validate</phase>
                <goals>
                  <goal>changes-check</goal>
                </goals>
              </execution>
              <execution>
                <id>announcement-generate</id>
                <phase>verify</phase>
                <goals>
                  <goal>announcement-generate</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-releaselog</id>
                <phase>verify</phase>
                <goals>
                  <goal>attach-artifact</goal>
                </goals>
                <configuration>
                  <artifacts>
                    <artifact>
                      <classifier>releaselog</classifier>
                      <file>${project.build.directory}/announcement/announcement.vm</file>
                      <type>txt</type>
                    </artifact>
                  </artifacts>
                  <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>code-coverage</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.jacoco</groupId>
            <artifactId>jacoco-maven-plugin</artifactId>
            <executions>
              <execution>
                <id>jacoco-prepare-agent</id>
                <goals>
                  <goal>prepare-agent</goal>
                </goals>
              </execution>
              <execution>
                <id>jacoco-prepare-agent-integration</id>
                <goals>
                  <goal>prepare-agent-integration</goal>
                </goals>
              </execution>
              <execution>
                <id>jacoco-report</id>
                <goals>
                  <goal>report</goal>
                </goals>
              </execution>
              <execution>
                <id>jacoco-report-integration</id>
                <goals>
                  <goal>report-integration</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>installation</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-installation</id>
                <phase>verify</phase>
                <goals>
                  <goal>attach-artifact</goal>
                </goals>
                <configuration>
                  <artifacts>
                    <artifact>
                      <classifier>installation</classifier>
                      <file>installation.txt</file>
                      <type>txt</type>
                    </artifact>
                  </artifacts>
                  <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>java-11</id>
      <!-- For plugins that require at least Java 11 to run, or are required to build with Java 11 -->
      <activation>
        <jdk>[1.11,)</jdk>
      </activation>
      <properties>
        <!-- MDH-specific properties -->
        <mdh.cxf.version>3.3.10</mdh.cxf.version>
        <mdh.cxf-xjc.version>3.3.1</mdh.cxf-xjc.version>
        <mdh.jaxb-api.version>2.4.0-b180830.0359</mdh.jaxb-api.version>
        <mdh.jaxb-impl.version>2.4.0-b180830.0438</mdh.jaxb-impl.version>

        <!-- Standard Maven properties -->
        <maven.compiler.release>8</maven.compiler.release>
      </properties>

      <dependencyManagement>
        <dependencies>
          <!-- Implementation javax.xml.bind -->
          <dependency>
            <groupId>org.glassfish.jaxb</groupId>
            <artifactId>jaxb-runtime</artifactId>
            <version>${mdh.jaxb-impl.version}</version>
          </dependency>
        </dependencies>
      </dependencyManagement>
    </profile>

    <profile>
      <id>maven-3</id>
      <activation>
        <file>
          <!--  This employs that the basedir expression is only recognized by Maven 3.x (see MNG-2363) -->
          <exists>${basedir}</exists>
        </file>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-site-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-descriptor</id>
                <goals>
                  <goal>attach-descriptor</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>mdh-release</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <executions>
              <execution>
                <id>sign-release-artifacts</id>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <properties>
        <mdh.logging.email.level>error</mdh.logging.email.level>
        <mdh.logging.file.level>info</mdh.logging.file.level>
        <mdh.logging.product.level>info</mdh.logging.product.level>
      </properties>
    </profile>

    <profile>
      <id>toolchains</id>
      <!-- Activate this profile to use Toolchains -->
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-toolchains-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>toolchain</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
