<?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>
  <packaging>pom</packaging>
  <modules>
    <module>polygenesis-abstractions</module>
    <module>polygenesis-commons</module>
    <module>polygenesis-commons-test</module>
    <module>polygenesis-core</module>
    <module>polygenesis-craftsman</module>
    <module>polygenesis-deducers</module>
    <module>polygenesis-exporters</module>
    <module>polygenesis-generators</module>
    <module>polygenesis-metamodels</module>
    <module>polygenesis-template-engines</module>
    <module>polygenesis-transformers</module>
  </modules>
  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.1.1.RELEASE</version>
    <relativePath /> <!-- lookup parent from repository -->
  </parent>
  <groupId>io.polygenesis</groupId>
  <artifactId>polygenesis-platform</artifactId>
  <version>0.0.3</version>
  <name>PolyGenesis Platform</name>
  <description>PolyGenesis is an Extensible &amp; Cross-language Automatic Programming Platform.
  </description>
  <url>https://www.polygenesis.io</url>

  <inceptionYear>2015</inceptionYear>

  <organization>
    <name>Christos Tsakostas, OREGOR LTD</name>
    <url>https://www.oregor.com</url>
  </organization>

  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>

  <developers>
    <developer>
      <name>Christos Tsakostas</name>
      <email>c.tsakostas@gmail.com</email>
      <organization>OREGOR LTD</organization>
      <organizationUrl>https://www.oregor.com</organizationUrl>
    </developer>
  </developers>

  <scm>
    <connection>scm:git:git://github.com/polygenesis-projects/polygenesis-platform.git</connection>
    <developerConnection>scm:git:git@github.com:polygenesis-projects/polygenesis-platform.git
    </developerConnection>
    <url>http://github.com/polygenesis-projects/polygenesis-platform/tree/master</url>
    <tag>v0.0.3</tag>
  </scm>

  <distributionManagement>
    <snapshotRepository>
      <id>ossrh-polygenesis</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
    <repository>
      <id>ossrh-polygenesis</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <java.version>11</java.version>

    <!--BUILD-->
    <oregor-build-tools-java.version>0.0.3</oregor-build-tools-java.version>
    <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
    <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
    <nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
    <maven-source-plugin.version>2.2.1</maven-source-plugin.version>
    <maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version>
    <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
    <nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
    <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
    <sonar-maven-plugin.version>3.5.0.1254</sonar-maven-plugin.version>
    <license-maven-plugin.version>1.14</license-maven-plugin.version>
    <fmt-maven-plugin.version>2.6.0</fmt-maven-plugin.version>
    <maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
    <checkstyle.version>8.22</checkstyle.version>
    <findbugs-maven-plugin.version>3.0.0</findbugs-maven-plugin.version>
    <maven-pmd-plugin.version>3.11.0</maven-pmd-plugin.version>
    <maven-jxr-plugin.version>2.4</maven-jxr-plugin.version>
    <maven-project-info-reports-plugin.version>2.7</maven-project-info-reports-plugin.version>
    <maven-site-plugin.version>3.7.1</maven-site-plugin.version>
    <taglist-maven-plugin.version>2.4</taglist-maven-plugin.version>
    <maven-dependency-plugin.version>2.9</maven-dependency-plugin.version>
    <cobertura-maven-plugin.version>2.6</cobertura-maven-plugin.version>
    <versions-maven-plugin.version>2.7</versions-maven-plugin.version>
    <maven-clean-plugin.version>3.1.0</maven-clean-plugin.version>

    <!--ASCIIDOCTORJ-->
    <asciidoctorj.version>1.6.0-alpha.6</asciidoctorj.version>
    <asciidoctorj-pdf.version>1.5.0-alpha.16</asciidoctorj-pdf.version>
    <asciidoctorj-pdf-maven-plugin.version>1.5.6</asciidoctorj-pdf-maven-plugin.version>
    <asciidoctorj-diagram.version>1.5.8</asciidoctorj-diagram.version>

    <!--APACHE-->
    <commons-lang3.version>3.5</commons-lang3.version>
    <commons-io-version>2.4</commons-io-version>
    <commons-validator.version>1.5.1</commons-validator.version>
    <apache-poi.version>4.1.2</apache-poi.version>

    <!--GUAVA-->
    <guava.version>26.0-jre</guava.version>

    <!--FREEMARKER-->
    <freemarker.version>2.3.28</freemarker.version>

    <!--REFLECTIONS-->
    <reflections.version>0.9.11</reflections.version>

    <!--INFLECTOR-->
    <evo-inflector.version>1.2.2</evo-inflector.version>

    <!--GOOGLE JAVA FORMAT-->
    <google-java-format.version>1.7</google-java-format.version>

    <!--TRINITY-->
    <trinity-scaffolder-java.version>0.0.7</trinity-scaffolder-java.version>

    <!--TEST-->
    <junit.version>4.12</junit.version>
    <mockito.version>2.23.4</mockito.version>
    <assertj.version>3.11.1</assertj.version>
  </properties>

  <dependencies>
  </dependencies>

  <dependencyManagement>
    <dependencies>
      <!--APACHE-->
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-lang3</artifactId>
        <version>${commons-lang3.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>${commons-io-version}</version>
      </dependency>
      <dependency>
        <groupId>commons-validator</groupId>
        <artifactId>commons-validator</artifactId>
        <version>${commons-validator.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi-ooxml</artifactId>
        <version>${apache-poi.version}</version>
      </dependency>

      <!--GUAVA-->
      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>${guava.version}</version>
      </dependency>

      <!--FREEMARKER-->
      <dependency>
        <groupId>org.freemarker</groupId>
        <artifactId>freemarker</artifactId>
        <version>${freemarker.version}</version>
      </dependency>

      <!--REFLECTIONS-->
      <dependency>
        <groupId>org.reflections</groupId>
        <artifactId>reflections</artifactId>
        <version>${reflections.version}</version>
      </dependency>

      <!--INFLECTOR-->
      <dependency>
        <groupId>org.atteo</groupId>
        <artifactId>evo-inflector</artifactId>
        <version>${evo-inflector.version}</version>
      </dependency>

      <!--GOOGLE JAVA FORMAT-->
      <dependency>
        <groupId>com.google.googlejavaformat</groupId>
        <artifactId>google-java-format</artifactId>
        <version>${google-java-format.version}</version>
      </dependency>

      <!--TRINITY-->
      <dependency>
        <groupId>com.oregor.trinity.scaffolder.java</groupId>
        <artifactId>trinity-scaffolder-java-core</artifactId>
        <version>${trinity-scaffolder-java.version}</version>
      </dependency>

      <!--TEST-->
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${junit.version}</version>
      </dependency>
      <dependency>
        <groupId>org.assertj</groupId>
        <artifactId>assertj-core</artifactId>
        <version>${assertj.version}</version>
      </dependency>
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>${mockito.version}</version>
      </dependency>

      <!--COMMONS-->
      <dependency>
        <groupId>io.polygenesis</groupId>
        <artifactId>polygenesis-commons</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!--COMMONS TEST-->
      <dependency>
        <groupId>io.polygenesis</groupId>
        <artifactId>polygenesis-commons-test</artifactId>
        <version>${project.version}</version>
        <scope>test</scope>
        <type>test-jar</type>
      </dependency>

      <!--CORE-->
      <dependency>
        <groupId>io.polygenesis</groupId>
        <artifactId>polygenesis-core</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!--ABSTRACTIONS-->
      <dependency>
        <groupId>io.polygenesis.abstractions</groupId>
        <artifactId>polygenesis-abstraction-code</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.abstractions</groupId>
        <artifactId>polygenesis-abstraction-thing</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!--METAMODELS-->
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-api</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-api-impl</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-app-angular</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-app-flutter</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-app-trinity</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-rest</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-domain</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-messaging</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-page-object</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-batch-process</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-scheduler</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-spreadsheet</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-sql</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-state-provider</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-state-redux</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.metamodels</groupId>
        <artifactId>polygenesis-metamodel-ui</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!--DEDUCERS-->
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-api</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-api-impl</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-rest</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-domain</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-messaging</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-page-object</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-batch-process</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-scheduler</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-spreadsheet</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-sql</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-state-provider</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-state-redux</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.deducers</groupId>
        <artifactId>polygenesis-deducer-ui</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!--TEMPLATE ENGINES-->
      <dependency>
        <groupId>io.polygenesis.template-engines</groupId>
        <artifactId>polygenesis-template-engine-freemarker</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!--EXPORTERS-->
      <dependency>
        <groupId>io.polygenesis.exporters</groupId>
        <artifactId>polygenesis-exporter-file</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!--TRANSFORMERS-->
      <dependency>
        <groupId>io.polygenesis.transformers</groupId>
        <artifactId>polygenesis-transformer-dart</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.transformers</groupId>
        <artifactId>polygenesis-transformer-dotnet</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.transformers</groupId>
        <artifactId>polygenesis-transformer-java</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.transformers</groupId>
        <artifactId>polygenesis-transformer-typescript</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.transformers</groupId>
        <artifactId>polygenesis-transformer-web</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!--GENERATORS-->
      <dependency>
        <groupId>io.polygenesis.generators</groupId>
        <artifactId>polygenesis-generator-angular</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.generators</groupId>
        <artifactId>polygenesis-generator-flutter</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.generators</groupId>
        <artifactId>polygenesis-generator-java</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.generators</groupId>
        <artifactId>polygenesis-generator-spreadsheet</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.polygenesis.generators</groupId>
        <artifactId>polygenesis-generator-sql</artifactId>
        <version>${project.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>


  <build>
    <!-- ===================================================================== -->
    <!-- Build Plugin Management                                               -->
    <!-- ===================================================================== -->
    <pluginManagement>
      <plugins>
        <!-- ===================================================================== -->
        <!-- Set the Java version (source and target)                              -->
        <!-- ===================================================================== -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>${maven-compiler-plugin.version}</version>
          <configuration>
            <source>${java.version}</source>
            <target>${java.version}</target>
            <encoding>${project.build.sourceEncoding}</encoding>
            <showWarnings>true</showWarnings>
            <compilerArgs>
              <arg>-Xlint:all</arg>
              <arg>-Werror</arg>
            </compilerArgs>
          </configuration>
        </plugin>
        <!-- ===================================================================== -->
        <!-- License management                                                    -->
        <!-- ===================================================================== -->
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>license-maven-plugin</artifactId>
          <version>${license-maven-plugin.version}</version>
          <configuration>
            <licenseName>apache_v2</licenseName>
            <projectName>PolyGenesis Platform</projectName>
            <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
            <emptyLineAfterHeader>true</emptyLineAfterHeader>
            <failOnMissingHeader>true</failOnMissingHeader>
            <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
            <processStartTag>
              ==========================LICENSE_START=================================
            </processStartTag>
            <processEndTag>===========================LICENSE_END==================================
            </processEndTag>
            <sectionDelimiter>
              ========================================================================
            </sectionDelimiter>
            <excludes>
              <exclude>**/package-info.java</exclude>
              <exclude>**/*.txt</exclude>
              <exclude>**/*.properties</exclude>
              <exclude>**/*.yml</exclude>
            </excludes>
          </configuration>
        </plugin>
        <!-- ===================================================================== -->
        <!-- CODE FORMAT                                                           -->
        <!-- ===================================================================== -->
        <plugin>
          <groupId>com.coveo</groupId>
          <artifactId>fmt-maven-plugin</artifactId>
          <version>${fmt-maven-plugin.version}</version>
          <configuration>
            <displayFiles>true</displayFiles>
            <style>google</style>
          </configuration>
        </plugin>
        <!-- ===================================================================== -->
        <!-- SCA: CHECKSTYLE                                                       -->
        <!-- ===================================================================== -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>${maven-checkstyle-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>com.puppycrawl.tools</groupId>
              <artifactId>checkstyle</artifactId>
              <version>${checkstyle.version}</version>
            </dependency>
            <dependency>
              <groupId>com.oregor</groupId>
              <artifactId>oregor-build-tools-java</artifactId>
              <version>${oregor-build-tools-java.version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <configLocation>oregor/build/tools/checkstyle/checkstyle.xml</configLocation>
            <suppressionsLocation>
              oregor/build/tools/checkstyle/checkstyle-suppressions.xml
            </suppressionsLocation>
            <consoleOutput>true</consoleOutput>
            <failsOnError>true</failsOnError>
            <failOnViolation>true</failOnViolation>
            <logViolationsToConsole>true</logViolationsToConsole>
            <excludes>**/module-info.java</excludes>
            <violationSeverity>warning</violationSeverity>
            <encoding>${project.build.sourceEncoding}</encoding>
          </configuration>
          <executions>
            <execution>
              <goals>
                <goal>check</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <!-- ===================================================================== -->
        <!-- SCA: Findbugs                                                         -->
        <!-- ===================================================================== -->
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>findbugs-maven-plugin</artifactId>
          <version>${findbugs-maven-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>com.oregor</groupId>
              <artifactId>oregor-build-tools-java</artifactId>
              <version>${oregor-build-tools-java.version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <xmlOutput>true</xmlOutput>
            <effort>Max</effort>
            <threshold>Low</threshold>
            <excludeFilterFile>oregor/build/tools/findbugs/findbugs-exclude.xml
            </excludeFilterFile>
            <failOnError>true</failOnError>
          </configuration>
        </plugin>
        <!-- ================================================================= -->
        <!-- SCA: PMD                                                          -->
        <!-- ================================================================= -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-pmd-plugin</artifactId>
          <version>${maven-pmd-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>com.oregor</groupId>
              <artifactId>oregor-build-tools-java</artifactId>
              <version>${oregor-build-tools-java.version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <linkXref>true</linkXref>
            <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
            <minimumTokens>100</minimumTokens>
            <targetJdk>${java.version}</targetJdk>
            <excludes>
              <exclude>**/*Bean.java</exclude>
              <exclude>**/generated/*.java</exclude>
            </excludes>
            <excludeRoots>
              <excludeRoot>target/generated-sources/stubs</excludeRoot>
            </excludeRoots>
            <rulesets>
              <ruleset>oregor/build/tools/pmd/pmd-rules.xml</ruleset>
            </rulesets>
          </configuration>
        </plugin>
        <!-- ===================================================================== -->
        <!-- JAVADOCS                                                              -->
        <!-- ===================================================================== -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>${maven-javadoc-plugin.version}</version>
          <configuration>
            <additionalparam>-Xdoclint:none</additionalparam>
            <failOnError>true</failOnError>
            <source>8</source>
          </configuration>
        </plugin>
        <!-- ===================================================================== -->
        <!-- RELEASE                                                               -->
        <!-- ===================================================================== -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-release-plugin</artifactId>
          <version>${maven-release-plugin.version}</version>
          <configuration>
            <tagNameFormat>v@{project.version}</tagNameFormat>
            <autoVersionSubmodules>true</autoVersionSubmodules>
            <useReleaseProfile>false</useReleaseProfile>
            <releaseProfiles>sources,javadocs,codesign,nexus</releaseProfiles>
            <goals>deploy</goals>
          </configuration>
        </plugin>
        <!-- ===================================================================== -->
        <!-- VERSIONS                                                              -->
        <!-- ===================================================================== -->
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>versions-maven-plugin</artifactId>
          <version>${versions-maven-plugin.version}</version>
        </plugin>
        <!-- ===================================================================== -->
        <!-- SONAR                                                                 -->
        <!-- ===================================================================== -->
        <plugin>
          <groupId>org.sonarsource.scanner.maven</groupId>
          <artifactId>sonar-maven-plugin</artifactId>
          <version>${sonar-maven-plugin.version}</version>
        </plugin>
        <!-- ===================================================================== -->
        <!-- The JXR plugin provides cross-reference information for SCA plugins   -->
        <!-- ===================================================================== -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jxr-plugin</artifactId>
          <version>${maven-jxr-plugin.version}</version>
        </plugin>
        <!-- ===================================================================== -->
        <!-- Site configuration                                                    -->
        <!-- ===================================================================== -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-site-plugin</artifactId>
          <version>${maven-site-plugin.version}</version>
          <inherited>false</inherited>
          <executions>
            <execution>
              <id>attach-descriptor</id>
              <goals>
                <goal>attach-descriptor</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <!-- ================================================================= -->
        <!-- Dependency plugin                                                 -->
        <!-- ================================================================= -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>${maven-dependency-plugin.version}</version>
          <executions>
            <execution>
              <id>dep-resolve</id>
              <phase>validate</phase>
              <goals>
                <goal>resolve</goal>
              </goals>
              <configuration>
                <excludeTransitive>false</excludeTransitive>
                <outputFile>${project.build.directory}/dep_current.txt</outputFile>
              </configuration>
            </execution>
            <execution>
              <id>analyze-dep-mgt</id>
              <phase>validate</phase>
              <goals>
                <goal>analyze-dep-mgt</goal>
              </goals>
              <configuration>
                <failBuild>true</failBuild>
                <ignoreDirect>false</ignoreDirect>
              </configuration>
            </execution>
            <execution>
              <id>dep-copy</id>
              <phase>package</phase>
              <goals>
                <goal>copy-dependencies</goal>
              </goals>
              <configuration>
                <outputDirectory>${project.build.directory}/dependency</outputDirectory>
                <stripVersion>true</stripVersion>
              </configuration>
            </execution>
            <execution>
              <id>dep-src-copy</id>
              <phase>package</phase>
              <goals>
                <goal>copy-dependencies</goal>
              </goals>
              <configuration>
                <classifier>sources</classifier>
                <outputDirectory>${project.build.directory}/dependency-sources</outputDirectory>
                <stripVersion>true</stripVersion>
                <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <!-- ================================================================= -->
        <!-- Ascii Doctor                                                      -->
        <!-- ================================================================= -->
        <plugin>
          <groupId>org.asciidoctor</groupId>
          <artifactId>asciidoctor-maven-plugin</artifactId>
          <version>${asciidoctorj-pdf-maven-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>org.asciidoctor</groupId>
              <artifactId>asciidoctorj-pdf</artifactId>
              <version>${asciidoctorj-pdf.version}</version>
            </dependency>
            <dependency>
              <groupId>org.asciidoctor</groupId>
              <artifactId>asciidoctorj-diagram</artifactId>
              <version>${asciidoctorj-diagram.version}</version>
            </dependency>
          </dependencies>
        </plugin>
      </plugins>
    </pluginManagement>

    <!-- ===================================================================== -->
    <!-- ===================================================================== -->
    <!-- BUILD PLUGINS                                                         -->
    <!-- ===================================================================== -->
    <!-- ===================================================================== -->
    <plugins>
      <!-- ===================================================================== -->
      <!-- Java Compiler                                                         -->
      <!-- ===================================================================== -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
      </plugin>
    </plugins>
  </build>

  <!-- ===================================================================== -->
  <!-- ===================================================================== -->
  <!-- PROFILES                                                              -->
  <!-- ===================================================================== -->
  <!-- ===================================================================== -->
  <profiles>

    <!-- ===================================================================== -->
    <!-- SOURCES                                                               -->
    <!-- ===================================================================== -->
    <profile>
      <id>sources</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>${maven-source-plugin.version}</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- ===================================================================== -->
    <!-- JAVADOCS                                                              -->
    <!-- ===================================================================== -->
    <profile>
      <id>javadocs</id>
      <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>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- ===================================================================== -->
    <!-- CODE SIGN                                                             -->
    <!-- ===================================================================== -->
    <profile>
      <id>codesign</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>${maven-gpg-plugin.version}</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- ===================================================================== -->
    <!-- NEXUS STAGING                                                         -->
    <!-- ===================================================================== -->
    <profile>
      <id>nexus</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>${nexus-staging-maven-plugin.version}</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>ossrh-polygenesis</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- ===================================================================== -->
    <!-- VALIDATE LICENSE                                                      -->
    <!-- ===================================================================== -->
    <profile>
      <id>validate-license</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>license-maven-plugin</artifactId>
            <executions>
              <execution>
                <phase>validate</phase>
                <goals>
                  <goal>check-file-header</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- ===================================================================== -->
    <!-- VALIDATE CODE FORMAT                                                  -->
    <!-- ===================================================================== -->
    <profile>
      <id>validate-code-format</id>
      <build>
        <plugins>
          <plugin>
            <groupId>com.coveo</groupId>
            <artifactId>fmt-maven-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>check</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- ===================================================================== -->
    <!-- VALIDATE CODE STYLE                                                   -->
    <!-- ===================================================================== -->
    <profile>
      <id>validate-code-style</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-checkstyle-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>check</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- ===================================================================== -->
    <!-- SCA: Findbugs                                                         -->
    <!-- ===================================================================== -->
    <profile>
      <id>validate-code-bugs</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>findbugs-maven-plugin</artifactId>
            <executions>
              <execution>
                <phase>validate</phase>
                <goals>
                  <goal>check</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- ===================================================================== -->
    <!-- SCA: PMD                                                              -->
    <!-- ===================================================================== -->
    <profile>
      <id>validate-code</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-pmd-plugin</artifactId>
            <executions>
              <execution>
                <phase>validate</phase>
                <goals>
                  <goal>check</goal>
                  <goal>cpd-check</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <!-- ===================================================================== -->
    <!-- DOCS                                                                  -->
    <!-- ===================================================================== -->
    <profile>
      <id>docs</id>
      <build>
        <plugins>
          <!--CLEAN DOCS-->
          <plugin>
            <artifactId>maven-clean-plugin</artifactId>
            <version>${maven-clean-plugin.version}</version>
            <configuration>
              <filesets>
                <fileset>
                  <directory>docs</directory>
                  <followSymlinks>false</followSymlinks>
                </fileset>
              </filesets>
            </configuration>
          </plugin>
          <!--ASCIIDOCTOR-->
          <plugin>
            <groupId>org.asciidoctor</groupId>
            <artifactId>asciidoctor-maven-plugin</artifactId>
            <version>${asciidoctorj-pdf-maven-plugin.version}</version>
            <dependencies>
              <dependency>
                <groupId>org.asciidoctor</groupId>
                <artifactId>asciidoctorj-pdf</artifactId>
                <version>${asciidoctorj-pdf.version}</version>
              </dependency>
            </dependencies>
            <executions>
              <execution>
                <id>output-html</id>
                <phase>generate-resources</phase>
                <goals>
                  <goal>process-asciidoc</goal>
                </goals>
                <configuration>
                  <attributes>
                    <toc>left</toc>
                  </attributes>
                  <requires>
                    <require>asciidoctor-diagram</require>
                  </requires>
                  <backend>html</backend>
                  <doctype>book</doctype>
                  <preserveDirectories>true</preserveDirectories>
                </configuration>
              </execution>
            </executions>

            <configuration>
              <outputDirectory>docs</outputDirectory>
              <attributes>
                <sectnums>true</sectnums>
              </attributes>
              <headerFooter>true</headerFooter>
              <requires>
                <require>asciidoctor-diagram</require>
              </requires>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

  </profiles>


  <!-- ===================================================================== -->
  <!-- ===================================================================== -->
  <!-- REPORTING                                                             -->
  <!-- ===================================================================== -->
  <!-- ===================================================================== -->


  <reporting>
    <plugins>
      <!-- ===================================================================== -->
      <!-- The JXR plugin provides cross-reference information for SCA plugins   -->
      <!-- ===================================================================== -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jxr-plugin</artifactId>
      </plugin>
      <!-- ===================================================================== -->
      <!-- SCA: checkstyle                                                       -->
      <!-- ===================================================================== -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <reportSets>
          <reportSet>
            <reports>
              <report>checkstyle</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <!-- ================================================================= -->
      <!-- SCA: Findbugs                                                     -->
      <!-- ================================================================= -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
      </plugin>
      <!-- ================================================================= -->
      <!-- SCA: PMD                                                          -->
      <!-- ================================================================= -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
      </plugin>
      <!-- ================================================================= -->
      <!-- SCA: Tag reporting                                                -->
      <!-- ================================================================= -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>taglist-maven-plugin</artifactId>
        <version>${taglist-maven-plugin.version}</version>
        <configuration>
          <tagListOptions>
            <tagClasses>
              <tagClass>
                <displayName>Work items</displayName>
                <tags>
                  <tag>
                    <matchString>todo</matchString>
                    <matchType>ignoreCase</matchType>
                  </tag>
                  <tag>
                    <matchString>@todo</matchString>
                    <matchType>ignoreCase</matchType>
                  </tag>
                  <tag>
                    <matchString>fix</matchString>
                    <matchType>ignoreCase</matchType>
                  </tag>
                  <tag>
                    <matchString>@fix</matchString>
                    <matchType>ignoreCase</matchType>
                  </tag>
                  <tag>
                    <matchString>@fixme</matchString>
                    <matchType>ignoreCase</matchType>
                  </tag>
                  <tag>
                    <matchString>fixme</matchString>
                    <matchType>ignoreCase</matchType>
                  </tag>
                </tags>
              </tagClass>
            </tagClasses>
          </tagListOptions>
        </configuration>
      </plugin>
      <!-- ================================================================= -->
      <!-- Configuration of Code Coverage analysis                           -->
      <!-- ================================================================= -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>${cobertura-maven-plugin.version}</version>
      </plugin>
      <!-- ================================================================= -->
      <!-- Configuration of Javadocs plugin                                  -->
      <!-- ================================================================= -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <reportSets>
          <reportSet>
            <id>default</id>
            <reports>
              <!-- Do not create test javadocs -->
              <report>javadoc</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <!-- ================================================================= -->
      <!-- Configuration of Project Reporting plugin                         -->
      <!-- ================================================================= -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>${maven-project-info-reports-plugin.version}</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>index</report>
              <report>modules</report>
              <report>dependency-info</report>
              <report>issue-tracking</report>
              <report>project-team</report>
              <report>dependency-management</report>
              <report>dependency-convergence</report>
              <report>license</report>
              <report>scm</report>
              <report>plugins</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>

</project>
