<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>

  <parent>
    <groupId>org.eximeebpms</groupId>
    <artifactId>eximeebpms-release-parent</artifactId>
    <version>1.4.0</version>
  </parent>

  <groupId>org.eximeebpms.bpm</groupId>
  <artifactId>eximeebpms-root</artifactId>
  <version>1.4.0</version>
  <packaging>pom</packaging>
  <name>EximeeBPMS - Root Pom</name>
  <inceptionYear>2025</inceptionYear>

  <description>
    This pom defines the modules that make up the build.
    The parent pom for all EximeeBPMS projects can be found in the parent directory relative to this file.
  </description>

  <properties>
    <license.includeTransitiveDependencies>false</license.includeTransitiveDependencies>

    <!-- These properties are used in both the BOM as well as eximeebpms-parent and subprojects -->
    <version.mybatis>3.5.19</version.mybatis>
    <version.joda-time>2.14.0</version.joda-time>
    <version.uuid-generator>5.2.0</version.uuid-generator>
    <version.hamcrest>3.0</version.hamcrest>
    <version.feel-scala>1.19.3</version.feel-scala>
    <version.lombok>1.18.46</version.lombok>
    <sonar.organization>eximeebpms</sonar.organization>
    <sonar.host.url>https://sonarcloud.io</sonar.host.url>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <version>1.14</version>
        <configuration>
          <acceptPomPackaging>true</acceptPomPackaging>
          <excludedScopes>test</excludedScopes>
        </configuration>
      </plugin>
      <plugin>
        <!--
          Produces a single, whole-project coverage report aggregated from every module
          listed (transitively) under this POM's <modules>. This execution intentionally
          does not inherit to child POMs (see <inherited>false</inherited> below): the
          jacoco-maven-plugin report-aggregate goal collects data via
          MavenProject#getCollectedProjects(), i.e. the <modules> reachable from the
          POM that runs it. If this execution were inherited, every descendant module in
          the reactor - including leaf modules with no <modules> of their own, such as
          the qa/** integration-test harness - would redundantly re-run report-aggregate
          on every partial build (e.g. `mvn -f qa verify`), producing no useful output
          while still writing a full report site to disk. That inflates CI's already
          disk-pressured runs (WildFly, browser binaries, per-database Docker containers)
          and previously caused intermittent
          "Can't create directory .../jacoco-aggregate/jacoco-resources" build failures.
        -->
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>0.8.14</version>
        <inherited>false</inherited>
        <executions>
          <execution>
            <id>report-aggregate</id>
            <goals>
              <goal>report-aggregate</goal>
            </goals>
            <phase>verify</phase>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>distro</id>
      <modules>
        <!-- This profile is run in the CI as the first step (platform-ASSEMBLY); It must not activate
          any modules that have a dependency to the webapps. See also the referenced POMs,
          they usually define which modules are covered by the distro profile -->
        <module>spring-boot-starter</module>

        <module>quarkus-extension</module>

        <module>qa</module>

        <module>javaee/ejb-service</module>
        <module>javaee/ejb-client-jakarta</module>
        <module>javaee/jobexecutor-ra</module>
        <module>javaee/jobexecutor-rar</module>

        <module>spin/bom</module>
        <module>commons/bom</module>
        <module>connect/bom</module>

        <module>model-api</module>
        <module>engine-dmn</module>
        <module>connect</module>
        <module>juel</module>
        <module>spin</module>
        <module>commons</module>
        <module>freemarker-template-engine</module>

        <module>test-utils/testcontainers</module>
        <module>test-utils/junit5-extension</module>
        <module>test-utils/junit5-extension-dmn</module>
        <module>test-utils/assert</module>
        <module>test-utils/archunit</module>

        <module>internal-dependencies</module>
        <module>database</module>
        <module>parent</module>
        <module>bom</module>

        <module>engine</module>
        <module>engine-cdi</module>
        <module>engine-spring</module>
        <module>engine-rest</module>

        <module>webapps</module>

        <module>examples</module>

        <module>engine-plugins</module>

        <module>distro/license-book</module>
        <module>distro/jboss</module>
        <module>distro/tomcat</module>
        <module>distro/sql-script</module>
        <module>distro/run</module>

        <module>clients/java</module>
      </modules>
    </profile>

    <profile>
      <id>distro-ce</id>
      <modules>
        <!-- This profile is run in the CI after the webapps were built (platform-ASSEMBLY);
          It should activate any module that has a dependency to the webapps -->
        <module>spring-boot-starter</module>

        <module>distro/license-book</module>
        <module>distro/jboss</module>
        <module>distro/tomcat</module>
        <module>distro/run</module>
      </modules>
    </profile>

    <profile>
      <id>javadocs</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
              <top><![CDATA[
                <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
                new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
                j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
                'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
                })(window,document,'script','dataLayer','GTM-N39WSFRC');</script>
              ]]></top>
              <failOnError>false</failOnError>
              <additionalJOptions>
                <additionalJOption>-Xdoclint:none</additionalJOption>
                <additionalJOption>--ignore-source-errors</additionalJOption>
                <additionalJOption>--allow-script-in-comments</additionalJOption>
              </additionalJOptions>
              <additionalDependencies>
                <additionalDependency>
                  <groupId>org.projectlombok</groupId>
                  <artifactId>lombok</artifactId>
                  <version>${version.lombok}</version>
                </additionalDependency>
              </additionalDependencies>
              <doctitle>EximeeBPMS Javadocs ${project.version}</doctitle>
              <windowtitle>EximeeBPMS Javadocs ${project.version}</windowtitle>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>sbom</id>
      <!--
        Generates an aggregate CycloneDX SBOM for all production modules.
        Run standalone: ./mvnw package -Psbom -DskipTests

        qa, test-utils and examples aren't shipped artifacts, but several kept modules have
        real (compile/test-scope) dependencies reaching into them regardless - this used to
        be satisfied for free because sbom always ran combined with a larger profile set
        that happened to include them. Now that it runs standalone, they're listed here
        explicitly:
          - qa: distro/wildfly/distro has a scope=provided, type=pom dependency on
            eximeebpms-qa purely to force build order (see that module's own comment).
            qa/pom.xml's own "distro" profile is activeByDefault, so listing `qa` here
            also pulls in its full integration-test tree (wildfly/tomcat runtimes,
            selenium-based webapp ITs, DB migration fixtures, ...), which in turn needs
            javaee/ejb-client and test-utils/junit5-extension - this doesn't affect what's
            published anywhere (this step only packages, never deploys), so it's just
            extra build time, not a correctness concern.
          - javaee/ejb-client: needed by qa/integration-tests-engine (see above).
          - test-utils/archunit, test-utils/testcontainers: real test-scope dependencies of
            engine and several model-api/engine-* modules (ArchUnit architecture tests).
          - test-utils/assert: a scope=compile dependency of spring-boot-starter/starter-test;
            its own qa submodule needs test-utils/junit5-extension, which in turn needs
            test-utils/junit5-extension-dmn.
          - examples: distro/tomcat/distro, distro/wildfly/distro and distro/run/modules/example
            all depend on eximeebpms-example-invoice-jakarta.
      -->
      <modules>
        <module>spring-boot-starter</module>
        <module>quarkus-extension</module>

        <module>javaee/ejb-service</module>
        <module>javaee/ejb-client-jakarta</module>
        <module>javaee/jobexecutor-ra</module>
        <module>javaee/jobexecutor-rar</module>

        <module>model-api</module>
        <module>engine-dmn</module>
        <module>connect</module>
        <module>juel</module>
        <module>spin</module>
        <module>commons</module>
        <module>freemarker-template-engine</module>

        <module>internal-dependencies</module>
        <module>database</module>
        <module>parent</module>
        <module>bom</module>

        <module>engine</module>
        <module>engine-cdi</module>
        <module>engine-spring</module>
        <module>engine-rest</module>

        <module>webapps</module>

        <module>engine-plugins</module>

        <module>distro/license-book</module>
        <module>distro/jboss</module>
        <module>distro/tomcat</module>
        <module>distro/wildfly</module>
        <module>distro/sql-script</module>
        <module>distro/run</module>
        <module>distro/webjar</module>

        <module>clients/java</module>

        <!-- built only, to satisfy the dependencies explained above -->
        <module>qa</module>
        <module>test-utils/archunit</module>
        <module>test-utils/testcontainers</module>
        <module>test-utils/assert</module>
        <module>test-utils/junit5-extension</module>
        <module>test-utils/junit5-extension-dmn</module>
        <module>examples</module>
      </modules>
      <build>
        <plugins>
          <plugin>
            <groupId>org.cyclonedx</groupId>
            <artifactId>cyclonedx-maven-plugin</artifactId>
            <version>2.9.2</version>
            <executions>
              <execution>
                <id>generate-sbom</id>
                <phase>package</phase>
                <goals>
                  <goal>makeAggregateBom</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <projectType>library</projectType>
              <schemaVersion>1.6</schemaVersion>
              <includeBomSerialNumber>true</includeBomSerialNumber>
              <includeCompileScope>true</includeCompileScope>
              <includeProvidedScope>true</includeProvidedScope>
              <includeRuntimeScope>true</includeRuntimeScope>
              <includeSystemScope>false</includeSystemScope>
              <includeTestScope>false</includeTestScope>
              <includeLicenseText>false</includeLicenseText>
              <outputFormat>all</outputFormat>
              <outputName>bom</outputName>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>distro-serverless</id>
      <modules>
        <module>qa</module>

        <module>spin/bom</module>
        <module>commons/bom</module>
        <module>connect/bom</module>

        <module>internal-dependencies</module>
        <module>database</module>
        <module>parent</module>
        <module>bom</module>

        <module>engine</module>
        <module>engine-cdi</module>
        <module>engine-spring</module>
        <module>engine-rest</module>

        <module>webapps</module>

        <module>examples</module>

        <module>engine-plugins</module>

        <module>distro/sql-script</module>
      </modules>
    </profile>

    <profile>
      <id>distro-tomcat</id>
      <modules>
        <module>distro/license-book</module>
        <module>distro/tomcat</module>
      </modules>
    </profile>

    <profile>
      <id>distro-wildfly</id>
      <modules>
        <module>javaee/ejb-client-jakarta</module>
        <module>distro/license-book</module>
        <module>distro/wildfly</module>
      </modules>
    </profile>

    <profile>
      <id>distro-webjar</id>
      <modules>
        <module>distro/webjar</module>
      </modules>
    </profile>

    <profile>
      <id>distro-run</id>
      <modules>
        <module>distro/run</module>
      </modules>
    </profile>

    <profile>
      <id>distro-starter</id>
      <!-- This profile is run in the release CI for building the enterprise artifacts
          It can be removed if the distro job is merged with the assembly job and
          distro-ce is not used for building the spring boot starter -->
      <modules>
        <module>spring-boot-starter</module>
      </modules>
    </profile>

    <profile>
      <!-- profile for running process-engine unit tests in QA -->
      <id>check-engine</id>
      <modules>
        <module>spin/bom</module>
        <module>commons/bom</module>
        <module>connect/bom</module>

        <module>model-api</module>
        <module>engine-dmn</module>
        <module>connect</module>
        <module>juel</module>
        <module>spin</module>
        <module>commons</module>
        <module>freemarker-template-engine</module>

        <module>test-utils/testcontainers</module>
        <module>test-utils/junit5-extension</module>
        <module>test-utils/junit5-extension-dmn</module>
        <module>test-utils/assert</module>
        <module>test-utils/archunit</module>

        <module>internal-dependencies</module>
        <module>database</module>
        <module>parent</module>
        <module>bom</module>

        <module>engine</module>
        <module>distro/sql-script</module>
        <module>engine-cdi</module>
        <module>engine-spring</module>
        <module>engine-rest</module>
        <module>engine-plugins</module>
      </modules>
    </profile>

    <profile>
      <!-- profile for running webapp unit tests in QA -->
      <id>check-webapps</id>
      <modules>
        <module>internal-dependencies</module>
        <module>parent</module>
        <module>bom</module>
      </modules>
    </profile>

    <profile>
      <!-- Scope of what gets published to Maven Central: consumable libraries, plus the two
        downloadable distributions eximeebpms-docker actually downloads from Central
        (eximeebpms-bpm-run, eximeebpms-bpm-tomcat - see distro/run and distro/tomcat below).
        Excludes qa, examples, distro/license-book, distro/jboss - none of those are things
        anyone consumes from Central, and staging them (plus javadoc/sources) pushed the
        JReleaser upload bundle past the ~2GB JVM array-size ceiling in Files.readAllBytes,
        which reliably OOM'd (see BPMS-385).

        distro/license-book and examples are still reachable below - not because anything
        downloads them from Central, but because kept modules have a real build-time
        dependency on one of their children (clients/java/client on eximeebpms-tomcat-assembly,
        itself needing distro/license-book; spring-boot-starter's own qa submodule, and
        distro/tomcat's and distro/run's own "distro" assemblies, on
        eximeebpms-example-invoice-jakarta). They carry their own sonatype-oss-release-scoped
        profile setting maven.deploy.skip=true, so they're built but never staged for Central.

        distro/tomcat and distro/run are listed by their aggregator path rather than their
        specific "distro" child for two reasons: (1) other profiles active alongside this one
        during "Release prepare"/"Release perform" (distro-tomcat, distro-run, ...) already
        reach the same child via a different module path, and listing a second, different path
        to the same child makes Maven reject it as a duplicate project; (2) do NOT add a
        same-named "sonatype-oss-release" profile to distro/tomcat/pom.xml or distro/run/pom.xml
        to scope this down further - activating any profile explicitly defined in a POM
        deactivates every OTHER activeByDefault profile in that SAME POM, which is exactly what
        silently dropped distro/tomcat/distro (eximeebpms-bpm-tomcat) and its webapp-jakarta
        dependency out of the 1.3.0 release despite this comment's predecessor's best intentions.
        Their own non-"distro" children (modules/rest, modules/oauth2, core, qa, ...) each carry
        their own maven.deploy.skip=true instead, so only eximeebpms-bpm-tomcat and
        eximeebpms-bpm-run actually get staged, verified locally at ~695MB (well within the 2GB
        ceiling) alongside the ~183MB from everything else already in this scope. -->
      <id>sonatype-oss-release</id>
      <modules>
        <module>spring-boot-starter</module>
        <module>quarkus-extension</module>
        <module>model-api</module>

        <module>engine</module>
        <module>engine-cdi</module>
        <module>engine-spring</module>
        <module>engine-rest</module>

        <module>engine-dmn</module>
        <module>connect</module>
        <module>juel</module>
        <module>spin</module>
        <module>commons</module>
        <module>freemarker-template-engine</module>

        <module>javaee/ejb-client-jakarta</module>

        <module>webapps</module>

        <module>engine-plugins</module>

        <module>distro/sql-script</module>
        <module>distro/webjar</module>
        <!-- distro/tomcat and distro/run each publish only their own "distro" child (see
          comment above); everything else reachable through them is build-only. -->
        <module>distro/tomcat</module>
        <module>distro/run</module>
        <!-- built only, not deployed - see comment above -->
        <module>distro/license-book</module>
        <module>examples</module>

        <module>clients/java</module>

        <module>test-utils/junit5-extension</module>
        <module>test-utils/junit5-extension-dmn</module>
        <module>test-utils/assert</module>
        <module>test-utils/testcontainers</module>
        <module>test-utils/archunit</module>

        <module>internal-dependencies</module>
        <module>database</module>
        <module>parent</module>
        <module>spin/bom</module>
        <module>commons/bom</module>
        <module>connect/bom</module>
        <module>bom</module>
      </modules>
    </profile>

    <profile>
      <!-- full profile is default and builds the complete distribution. Does not run integration tests. -->
      <id>full</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <modules>
        <module>spring-boot-starter</module>

        <module>quarkus-extension</module>

        <module>qa</module>

        <module>javaee/jobexecutor-ra</module>
        <module>javaee/jobexecutor-rar</module>

        <module>spin/bom</module>
        <module>commons/bom</module>
        <module>connect/bom</module>

        <module>model-api</module>
        <module>engine-dmn</module>
        <module>connect</module>
        <module>juel</module>
        <module>spin</module>
        <module>commons</module>
        <module>freemarker-template-engine</module>

        <module>test-utils/testcontainers</module>
        <module>test-utils/junit5-extension</module>
        <module>test-utils/junit5-extension-dmn</module>
        <module>test-utils/assert</module>
        <module>test-utils/archunit</module>

        <module>internal-dependencies</module>
        <module>database</module>
        <module>parent</module>
        <module>bom</module>

        <module>engine</module>
        <module>engine-cdi</module>
        <module>engine-spring</module>
        <module>engine-rest</module>

        <module>webapps</module>

        <module>examples</module>

        <module>engine-plugins</module>

        <module>distro/license-book</module>
        <module>distro/jboss</module>
        <module>distro/tomcat</module>
        <module>distro/wildfly</module>
        <module>distro/sql-script</module>
        <module>distro/run</module>
        <module>distro/webjar</module>

        <module>clients/java</module>
      </modules>
    </profile>

    <profile>
      <id>license-header-check</id>
      <build>
        <plugins>
          <plugin>
            <groupId>com.mycila</groupId>
            <artifactId>license-maven-plugin</artifactId>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <!--
        Runs the full integration-test matrix locally in a single Maven invocation.
        Usage: ./mvnw -Pit-all verify

        Prerequisites for postgresql combinations:
          - PostgreSQL running on localhost:5432, database "process-engine", user/password "eximeebpms"
          - Or override with Maven properties: -Dit.database.url=..., -Dit.database.username=..., -Dit.database.password=...

        The build step is executed once per container (tomcat, wildfly) and reused across
        all database variants and test suites to avoid redundant rebuilds.
      -->
      <id>it-all</id>
      <properties>
        <it.database.url>jdbc:postgresql://localhost:5432/process-engine</it.database.url>
        <it.database.username>eximeebpms</it.database.username>
        <it.database.password>eximeebpms</it.database.password>
        <it.mysql.url>jdbc:mysql://localhost:3306/process-engine?serverTimezone=UTC</it.mysql.url>
        <it.mysql.username>eximeebpms</it.mysql.username>
        <it.mysql.password>eximeebpms</it.mysql.password>
        <it.mssql.url>jdbc:sqlserver://localhost:1433;DatabaseName=process-engine;trustServerCertificate=true</it.mssql.url>
        <it.mssql.username>sa</it.mssql.username>
        <it.mssql.password>EximeeBpms1!</it.mssql.password>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <version>3.6.3</version>
            <executions>
              <!-- BUILD: tomcat distribution (shared by all tomcat test combinations) -->
              <execution>
                <id>it-build-tomcat</id>
                <phase>pre-integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-DskipTests</argument>
                    <argument>-Dcargo.maven.skip=true</argument>
                    <argument>-Pdistro-ce,distro,distro-webjar,h2-in-memory,tomcat,distro-tomcat</argument>
                    <argument>clean</argument>
                    <argument>install</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- BUILD: wildfly distribution (shared by all wildfly test combinations) -->
              <execution>
                <id>it-build-wildfly</id>
                <phase>pre-integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-DskipTests</argument>
                    <argument>-Dcargo.maven.skip=true</argument>
                    <argument>-Pdistro-ce,distro,distro-webjar,h2-in-memory,wildfly,distro-wildfly</argument>
                    <argument>clean</argument>
                    <argument>install</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: engine + tomcat + h2 -->
              <execution>
                <id>it-engine-tomcat-h2</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,engine-integration-jakarta,tomcat,h2</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=jdbc:h2:mem:eximeebpms;DB_CLOSE_DELAY=1000;LOCK_TIMEOUT=10000</argument>
                    <argument>-Ddatabase.driver=org.h2.Driver</argument>
                    <argument>-Ddatabase.username=sa</argument>
                    <argument>-Ddatabase.password=</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: engine + tomcat + postgresql -->
              <execution>
                <id>it-engine-tomcat-postgresql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,engine-integration-jakarta,tomcat,postgresql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.database.url}</argument>
                    <argument>-Ddatabase.username=${it.database.username}</argument>
                    <argument>-Ddatabase.password=${it.database.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: engine + wildfly + h2 -->
              <execution>
                <id>it-engine-wildfly-h2</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,engine-integration-jakarta,wildfly,h2</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=jdbc:h2:mem:eximeebpms;DB_CLOSE_DELAY=1000;LOCK_TIMEOUT=10000</argument>
                    <argument>-Ddatabase.driver=org.h2.Driver</argument>
                    <argument>-Ddatabase.username=sa</argument>
                    <argument>-Ddatabase.password=</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: engine + wildfly + postgresql -->
              <execution>
                <id>it-engine-wildfly-postgresql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,engine-integration-jakarta,wildfly,postgresql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.database.url}</argument>
                    <argument>-Ddatabase.username=${it.database.username}</argument>
                    <argument>-Ddatabase.password=${it.database.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: engine + tomcat + mysql -->
              <execution>
                <id>it-engine-tomcat-mysql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,engine-integration-jakarta,tomcat,mysql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.mysql.url}</argument>
                    <argument>-Ddatabase.username=${it.mysql.username}</argument>
                    <argument>-Ddatabase.password=${it.mysql.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: engine + wildfly + mysql -->
              <execution>
                <id>it-engine-wildfly-mysql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,engine-integration-jakarta,wildfly,mysql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.mysql.url}</argument>
                    <argument>-Ddatabase.username=${it.mysql.username}</argument>
                    <argument>-Ddatabase.password=${it.mysql.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: engine + tomcat + sqlserver -->
              <execution>
                <id>it-engine-tomcat-sqlserver</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,engine-integration-jakarta,tomcat,sqlserver</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.mssql.url}</argument>
                    <argument>-Ddatabase.username=${it.mssql.username}</argument>
                    <argument>-Ddatabase.password=${it.mssql.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: engine + wildfly + sqlserver -->
              <execution>
                <id>it-engine-wildfly-sqlserver</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,engine-integration-jakarta,wildfly,sqlserver</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.mssql.url}</argument>
                    <argument>-Ddatabase.username=${it.mssql.username}</argument>
                    <argument>-Ddatabase.password=${it.mssql.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: webapps + tomcat + h2 -->
              <execution>
                <id>it-webapps-tomcat-h2</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,webapps-integration,tomcat,h2</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: webapps + tomcat + postgresql -->
              <execution>
                <id>it-webapps-tomcat-postgresql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,webapps-integration,tomcat,postgresql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.database.url}</argument>
                    <argument>-Ddatabase.username=${it.database.username}</argument>
                    <argument>-Ddatabase.password=${it.database.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: webapps + wildfly + h2 -->
              <execution>
                <id>it-webapps-wildfly-h2</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,webapps-integration,wildfly,h2</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: webapps + wildfly + postgresql -->
              <execution>
                <id>it-webapps-wildfly-postgresql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pdistro-ce,webapps-integration,wildfly,postgresql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.database.url}</argument>
                    <argument>-Ddatabase.username=${it.database.username}</argument>
                    <argument>-Ddatabase.password=${it.database.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: DB instance migration (h2) -->
              <execution>
                <id>it-instance-migration-h2</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pinstance-migration,h2</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: DB rolling update (h2) -->
              <execution>
                <id>it-rolling-update-h2</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Prolling-update,h2</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: old engine backward compatibility (h2) -->
              <execution>
                <id>it-old-engine-h2</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pold-engine,h2</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: DB instance migration (postgresql) -->
              <execution>
                <id>it-instance-migration-postgresql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pinstance-migration,postgresql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.database.url}</argument>
                    <argument>-Ddatabase.username=${it.database.username}</argument>
                    <argument>-Ddatabase.password=${it.database.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: DB rolling update (postgresql) -->
              <execution>
                <id>it-rolling-update-postgresql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Prolling-update,postgresql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.database.url}</argument>
                    <argument>-Ddatabase.username=${it.database.username}</argument>
                    <argument>-Ddatabase.password=${it.database.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: old engine backward compatibility (postgresql) -->
              <execution>
                <id>it-old-engine-postgresql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pold-engine,postgresql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.database.url}</argument>
                    <argument>-Ddatabase.username=${it.database.username}</argument>
                    <argument>-Ddatabase.password=${it.database.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: DB instance migration (mysql) -->
              <execution>
                <id>it-instance-migration-mysql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pinstance-migration,mysql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.mysql.url}</argument>
                    <argument>-Ddatabase.username=${it.mysql.username}</argument>
                    <argument>-Ddatabase.password=${it.mysql.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: DB rolling update (mysql) -->
              <execution>
                <id>it-rolling-update-mysql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Prolling-update,mysql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.mysql.url}</argument>
                    <argument>-Ddatabase.username=${it.mysql.username}</argument>
                    <argument>-Ddatabase.password=${it.mysql.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: old engine backward compatibility (mysql) -->
              <execution>
                <id>it-old-engine-mysql</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pold-engine,mysql</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.mysql.url}</argument>
                    <argument>-Ddatabase.username=${it.mysql.username}</argument>
                    <argument>-Ddatabase.password=${it.mysql.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: DB instance migration (sqlserver) -->
              <execution>
                <id>it-instance-migration-sqlserver</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pinstance-migration,sqlserver</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.mssql.url}</argument>
                    <argument>-Ddatabase.username=${it.mssql.username}</argument>
                    <argument>-Ddatabase.password=${it.mssql.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: DB rolling update (sqlserver) -->
              <execution>
                <id>it-rolling-update-sqlserver</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Prolling-update,sqlserver</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.mssql.url}</argument>
                    <argument>-Ddatabase.username=${it.mssql.username}</argument>
                    <argument>-Ddatabase.password=${it.mssql.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: old engine backward compatibility (sqlserver) -->
              <execution>
                <id>it-old-engine-sqlserver</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pold-engine,sqlserver</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa</argument>
                    <argument>-Ddatabase.url=${it.mssql.url}</argument>
                    <argument>-Ddatabase.username=${it.mssql.username}</argument>
                    <argument>-Ddatabase.password=${it.mssql.password}</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: large data (h2-in-memory by default) -->
              <execution>
                <id>it-large-data</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Plarge-data-tests</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa/large-data-tests</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: performance — benchmark (h2-in-memory by default) -->
              <execution>
                <id>it-perf-benchmark</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pbenchmark</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa/performance-tests-engine</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: performance — SQL statement log (h2-in-memory by default) -->
              <execution>
                <id>it-perf-sql-statementlog</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Psql-statementlog</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa/performance-tests-engine</argument>
                  </arguments>
                </configuration>
              </execution>
              <!-- TEST: performance — activity count (h2-in-memory by default) -->
              <execution>
                <id>it-perf-activity-count</id>
                <phase>integration-test</phase>
                <goals><goal>exec</goal></goals>
                <configuration>
                  <executable>${project.basedir}/mvnw</executable>
                  <arguments>
                    <argument>-Pactivity-count</argument>
                    <argument>clean</argument>
                    <argument>verify</argument>
                    <argument>-f</argument>
                    <argument>qa/performance-tests-engine</argument>
                  </arguments>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <distributionManagement>
    <snapshotRepository>
      <id>central</id>
      <url>https://central.sonatype.com/repository/maven-snapshots/</url>
    </snapshotRepository>
  </distributionManagement>

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

  <organization>
    <name>EximeeBPMS services GmbH</name>
    <url>http://eximeebpms.org</url>
  </organization>

  <url>http://eximeebpms.org</url>

  <developers>
    <developer>
      <id>eximeebpms.org</id>
      <name>EximeeBPMS Community</name>
      <organization>eximeebpms.org</organization>
      <organizationUrl>http://eximeebpms.org</organizationUrl>
    </developer>
  </developers>

  <scm>
    <url>https://github.com/EximeeBPMS/eximeebpms</url>
    <developerConnection>scm:git:https://github.com/EximeeBPMS/eximeebpms.git</developerConnection>
    <tag>v1.4.0</tag>
  </scm>

  <issueManagement>
    <system>GitHub Issues</system>
    <url>https://github.com/eximeebpms/eximeebpms/issues</url>
  </issueManagement>
</project>
