<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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>fr.paris.lutece.tools</groupId>
    <artifactId>lutece-global-pom</artifactId>
    <name>Lutece global pom</name>
    <url>http://${serverUrl}/</url>
    <packaging>pom</packaging>
    <version>5.0.0</version>

    <properties>
        <!-- Misc build parameters -->
        <memory.min>256m</memory.min>
        <memory.max>1g</memory.max>
        <targetJdk>1.8</targetJdk>
        <java.source.version>1.8</java.source.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <!-- Lutece specific parameters -->
        <serverUrl>dev.lutece.paris.fr</serverUrl>
        <sonar.host.url>http://${serverUrl}/sonar</sonar.host.url>
        <jiraBaseUrl>http://${serverUrl}/jira</jiraBaseUrl>
        <organization.logo>http://${serverUrl}/images/banner_left.png</organization.logo>
        <github.project>lutece-platform</github.project>
        <twitter.account>LuteceFoundry</twitter.account>
        <openhub.id>7203</openhub.id>
        <jiraProjectName>GLOBALPOM</jiraProjectName>
        <jiraComponentId>12858</jiraComponentId>

        <!-- Build dependencies versions -->
        <maven-prerequisite.version>3.0.5</maven-prerequisite.version>
        <maven-antrun-plugin.version>1.8</maven-antrun-plugin.version>
        <maven-site-plugin.version>3.8.2</maven-site-plugin.version>
        <maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
        <maven-pmd-plugin.version>3.12.0</maven-pmd-plugin.version>
        <maven-findbugs-plugin.version>3.0.5</maven-findbugs-plugin.version>
        <maven-formatter-plugin.version>2.10.0</maven-formatter-plugin.version>
        <maven-war-plugin.version>3.2.3</maven-war-plugin.version>
        <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
        <maven-jacoco-plugin.version>0.8.4</maven-jacoco-plugin.version>
        <maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>  <!-- 3.1.1 has issues with the JDK 11 -->
        <maven-surefire-plugin.version>3.0.0-M3</maven-surefire-plugin.version>
        <maven-surefire-report-plugin.version>3.0.0-M3</maven-surefire-report-plugin.version>
        <maven-jxr-plugin.version>3.0.0</maven-jxr-plugin.version>
        <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
        <maven-jdepend-plugin.version>2.0</maven-jdepend-plugin.version>
        <maven-changelog-plugin.version>2.3</maven-changelog-plugin.version>
        <maven-taglist-plugin.version>2.4</maven-taglist-plugin.version>
        <maven-project-info-reports-plugin.version>2.9</maven-project-info-reports-plugin.version>  <!-- 3.0.0 has issues -->
        <maven-clean-plugin.version>3.0.0</maven-clean-plugin.version>
        <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
        <maven-install-plugin.version>2.5.2</maven-install-plugin.version>
        <maven-lutece-plugin.version>4.0.3</maven-lutece-plugin.version>
        <lutece-maven-report.version>1.0.0-SNAPSHOT</lutece-maven-report.version>
        <license-maven-plugin.version>2.0.0</license-maven-plugin.version>
        <maven-xdoc2md-plugin.version>1.0.2-SNAPSHOT</maven-xdoc2md-plugin.version>
        <maven-scm-provider-jgit.version>1.9.2</maven-scm-provider-jgit.version>
        <sonar-maven-report.version>0.1</sonar-maven-report.version>
        <ant-optional.version>1.5.3-1</ant-optional.version>
        <ant-contrib.version>1.0b3</ant-contrib.version>
        <maven-wagon-ftp.version>2.6</maven-wagon-ftp.version>
        <build-config.version>1.1.0-SNAPSHOT</build-config.version>

        <!-- Runtime dependencies versions -->
        <servlet-api.version>3.1.0</servlet-api.version>
        <jsp-api.version>2.3.1</jsp-api.version>
        <library-lutece-unit-testing.version>4.0.1</library-lutece-unit-testing.version>
        <!-- All database connectors must be kept in sync -->
        <!-- with lutece-core src/sql/build.properties -->
        <mysql.version>5.1.47</mysql.version>
        <postgresql.version>9.4.1211</postgresql.version>
        <hsqldb.version>2.3.4</hsqldb.version>

        <!-- directory provided by the artifact fr.paris.lutece.tools:build-config -->
        <build-config.location>build-config</build-config.location>

        <!-- parameters to override db.properties with dynamic parameters during the antrun:run goal -->
        <antrun-lutece-db-properties>db.properties</antrun-lutece-db-properties>
        <!-- by default these are not used because there are no markers in db.properties, only in db-test-*.properties -->
        <lutece-antrun-db-host>localhost</lutece-antrun-db-host>
        <lutece-antrun-db-name>lutece</lutece-antrun-db-name>
        <lutece-antrun-db-user>root</lutece-antrun-db-user>
        <lutece-antrun-db-password>motdepasse</lutece-antrun-db-password>
    </properties>

    <prerequisites>
        <maven>${maven-prerequisite.version}</maven>
    </prerequisites>

    <licenses>
        <license>
            <name>Lutece license</name>
            <url>http://${serverUrl}/LICENSE.TXT</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <organization>
        <name>City of Paris</name>
        <url>http://lutece.paris.fr</url>
    </organization>

    <issueManagement>
        <system>jira</system>
        <url>${jiraBaseUrl}/browse/${jiraProjectName}</url>
    </issueManagement>

    <ciManagement>
        <system>continuum</system>
        <url>http://${serverUrl}/jenkins/</url>
        <notifiers>
            <notifier>
                <type>mail</type>
                <configuration>
                    <address>lutece@paris.fr</address>
                </configuration>
            </notifier>
        </notifiers>
    </ciManagement>

    <repositories>
        <repository>
            <id>lutece</id>
            <name>luteceRepository</name>
            <url>http://${serverUrl}/maven_repository</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>luteceSnapshot</id>
            <name>luteceSnapshot</name>
            <url>http://${serverUrl}/snapshot_repository</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>lutece</id>
            <name>luteceRepository</name>
            <url>http://${serverUrl}/maven_repository</url>
        </pluginRepository>
        <pluginRepository>
            <id>luteceSnapshot</id>
            <name>luteceSnapshot</name>
            <url>http://${serverUrl}/snapshot_repository</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

    <dependencies>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>${servlet-api.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>javax.servlet.jsp-api</artifactId>
            <version>${jsp-api.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>fr.paris.lutece.plugins</groupId>
            <artifactId>library-lutece-unit-testing</artifactId>
            <version>${library-lutece-unit-testing.version}</version>
            <type>jar</type>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <reporting>
        <plugins>
            <!--    JAVADOC       -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>${maven-javadoc-plugin.version}</version>
                <configuration>
                    <show>public</show>
                    <doclint>none</doclint>
                    <minmemory>${memory.min}</minmemory>
                    <maxmemory>${memory.max}</maxmemory>
                </configuration>
            </plugin>
            <!--    JXR       -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>${maven-jxr-plugin.version}</version>
                <configuration>
                    <outputEncoding>${project.build.sourceEncoding}</outputEncoding>
                </configuration>
            </plugin>
            <!--    PROJECT INFO       -->
            <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>summary</report>
                            <report>dependencies</report>
                            <report>cim</report>
                            <report>issue-tracking</report>
                            <report>license</report>
                            <report>scm</report>
                        </reports>
                    </reportSet>
                </reportSets>
                <configuration>
                    <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
                </configuration>
            </plugin>
            <!--    CHECKSTYLE       -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>${maven-checkstyle-plugin.version}</version>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>checkstyle</report>
                        </reports>
                    </reportSet>
                </reportSets>
                <configuration>
                    <minmemory>${memory.min}</minmemory>
                    <maxmemory>${memory.max}</maxmemory>
                    <configLocation>${build-config.location}/lutece_checks.xml</configLocation>
                    <headerLocation>${build-config.location}/checkstyle-header.txt</headerLocation>
                </configuration>
            </plugin>
            <!--    PMD       -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>${maven-pmd-plugin.version}</version>
                <configuration>
                    <minmemory>${memory.min}</minmemory>
                    <maxmemory>${memory.max}</maxmemory>
                    <linkXref>true</linkXref>
                    <rulesets>
                        <ruleset>${build-config.location}/pmd_categories/pmd-lutece.xml</ruleset>
                    </rulesets>
                    <failsOnError>false</failsOnError>
                    <failOnViolation>false</failOnViolation>
                    <printFailingErrors>true</printFailingErrors>
                    <source>${java.source.version}</source>
                    <target>${java.source.version}</target>
                </configuration>
            </plugin>
            <!--    JDEPEND       -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jdepend-maven-plugin</artifactId>
                <version>${maven-jdepend-plugin.version}</version>
            </plugin>
            <!--    TAG LIST       -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>taglist-maven-plugin</artifactId>
                <version>${maven-taglist-plugin.version}</version>
                <configuration>
                    <tags>
                        <tag>TODO</tag>
                        <tag>FIXME</tag>
                        <tag>@todo</tag>
                        <tag>@deprecated</tag>
                        <tag>DOCUMENT_ME</tag>
                        <tag>NOT_YET_DOCUMENTED</tag>
                    </tags>
                </configuration>
            </plugin>
            <!--    FIND BUGS       -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>${maven-findbugs-plugin.version}</version>
                <configuration>
                    <xmlOutput>true</xmlOutput>
                    <threshold>Normal</threshold>
                    <effort>Max</effort>
                </configuration>
            </plugin>
            <!--     SUREFIRE       --> 
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>${maven-surefire-report-plugin.version}</version>
                <configuration>
                    <showSuccess>true</showSuccess>
                </configuration>
            </plugin>
            <!--      SONAR          -->
            <plugin>
                <groupId>org.codehaus.sonar-plugins</groupId>
                <artifactId>maven-report</artifactId>
                <version>${sonar-maven-report.version}</version>
            </plugin>
            <!--      JACOCO        -->  
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>${maven-jacoco-plugin.version}</version>
                <reportSets>
                    <reportSet>
                        <reports>
                            <!-- select non-aggregate reports -->
                            <report>report</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>license-maven-plugin</artifactId>
                <version>${license-maven-plugin.version}</version>
            </plugin>

            <!--       LUTECE        -->
            <plugin>
                <groupId>fr.paris.lutece.tools</groupId>
                <artifactId>lutece-report-maven-plugin</artifactId>
                <version>${lutece-maven-report.version}</version>
            </plugin>
           
        </plugins>
    </reporting>

    <build>
        <sourceDirectory>src/java</sourceDirectory>

        <resources>
            <resource>
                <directory>src/java</directory>
                <excludes>
                    <exclude>**/*.java</exclude>
                    <exclude>**/.svn/**</exclude>
                </excludes>
            </resource>
        </resources>

        <plugins>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>${maven-jacoco-plugin.version}</version>
                <executions>
                    <execution>
                        <id>prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-release-plugin</artifactId>
                <version>${maven-release-plugin.version}</version>
                <configuration>
                    <providerImplementations>
                        <git>jgit</git>
                    </providerImplementations>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-provider-jgit</artifactId>
                        <version>${maven-scm-provider-jgit.version}</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <artifactId>maven-site-plugin</artifactId>
                <version>${maven-site-plugin.version}</version>
                <configuration>
                    <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
                    <outputEncoding>${project.build.sourceEncoding}</outputEncoding>
                    <locales>en,fr</locales>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-descriptor</id>
                        <goals>
                            <goal>attach-descriptor</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>fr.paris.lutece.tools</groupId>
                <artifactId>lutece-maven-plugin</artifactId>
                <extensions>true</extensions>
                <version>${maven-lutece-plugin.version}</version>
                <configuration>
                    <localConfDirectory>${localConfDirectory}</localConfDirectory>
                </configuration>
            </plugin>
            <plugin>
                <groupId>fr.paris.lutece.tools</groupId>
                <artifactId>xdoc2md-maven-plugin</artifactId>
                <version>${maven-xdoc2md-plugin.version}</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${maven-compiler-plugin.version}</version>
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <source>${java.source.version}</source>
                    <target>${java.source.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>${maven-surefire-plugin.version}</version>
                <configuration>
                    <forkCount>0</forkCount>
                    <excludes>
                        <exclude>**/MainTest.java</exclude>
                        <exclude>**/TestRunner.java</exclude>
                        <exclude>**/LuteceTestCase.java</exclude>
                        <exclude>**/AllTests.java</exclude>
                    </excludes>
                    <systemProperties>
                        <property>
                            <name>net.sourceforge.cobertura.datafile</name>
                            <value>target/cobertura/cobertura.ser</value>
                        </property>
                    </systemProperties>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>${maven-antrun-plugin.version}</version>
                <configuration>
                    <tasks>
                        <!-- replace markers in db-test-*.properties to allow command line values for tests -->
                        <copy file="${basedir}/target/lutece/WEB-INF/conf/${antrun-lutece-db-properties}" tofile="${basedir}/target/lutece/WEB-INF/conf/db.properties" overwrite="true" />
                        <replace file="${basedir}/target/lutece/WEB-INF/conf/db.properties" token="@lutece_antrun_db_host@" value="${lutece-antrun-db-host}" />
                        <replace file="${basedir}/target/lutece/WEB-INF/conf/db.properties" token="@lutece_antrun_db_name@" value="${lutece-antrun-db-name}" />
                        <replace file="${basedir}/target/lutece/WEB-INF/conf/db.properties" token="@lutece_antrun_db_user@" value="${lutece-antrun-db-user}" />
                        <replace file="${basedir}/target/lutece/WEB-INF/conf/db.properties" token="@lutece_antrun_db_password@" value="${lutece-antrun-db-password}" />

                        <!-- setup recording of our main script to generate a test report -->
                        <property name="antrun_report_dir" value="target/surefire-reports/" />
                        <property name="antrun_report_basename" value="antrun_report" />
                        <property name="antrun_report_txt" value="${antrun_report_dir}/${antrun_report_basename}.txt" />
                        <mkdir dir="${basedir}/${antrun_report_dir}" />
                        <record name="${basedir}/${antrun_report_txt}" append="true" action="start" />
                        <!-- run our main ant script -->
                        <ant antfile="${basedir}/target/lutece/WEB-INF/sql/build.xml" dir="${basedir}/target/lutece/WEB-INF/sql/">
                            <target name="all" />
                        </ant>
                        <record name="${basedir}/${antrun_report_txt}" action="stop" />

                        <!-- Load recording of our main script to generate the xml report -->
                        <loadfile srcfile="${basedir}/${antrun_report_txt}" property="antrun_failures">
                            <filterchain>
                                <linecontainsregexp>
                                    <regexp pattern="Failed to execute" />
                                </linecontainsregexp>
                            </filterchain>
                        </loadfile>

                        <!-- Generate xml report (Junit format) -->
                        <property name="antrun_report_xml" value="${antrun_report_dir}/${antrun_report_basename}.xml" />
                        <taskdef resource="net/sf/antcontrib/antcontrib.properties" />
                        <if>
                            <equals arg1="${antrun_failures}" arg2="$${antrun_failures}" />
                            <then>
                                <!-- No failures -->
                                <echoxml file="${basedir}/${antrun_report_xml}">
                                    <testsuite name="antrunsql" time="1" tests="1" errors="0" skipped="0" failures="0">
                                        <testcase name="antrunsql" classname="antrunsql" time="1" />
                                    </testsuite>
                                </echoxml>
                            </then>
                            <else>
                                <!-- failures -->
                                <echoxml file="${basedir}/${antrun_report_xml}">
                                    <testsuite name="antrunsql" time="1" tests="1" errors="1" skipped="0" failures="0">
                                        <testcase name="antrunsql" classname="antrunsql" time="1">
                                            <failure type="antrunsql">${antrun_failures}</failure>
                                        </testcase>
                                    </testsuite>
                                </echoxml>
                            </else>
                        </if>
                    </tasks>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>ant</groupId>
                        <artifactId>ant-optional</artifactId>
                        <version>${ant-optional.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>ant-contrib</groupId>
                        <artifactId>ant-contrib</artifactId>
                        <version>${ant-contrib.version}</version>
                        <exclusions>
                            <exclusion>
                                <groupId>ant</groupId>
                                <artifactId>ant</artifactId>
                            </exclusion>
                        </exclusions>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>${maven-war-plugin.version}</version>
                <configuration>
                    <warSourceDirectory>${basedir}/webapp</warSourceDirectory>
                </configuration>
            </plugin>
            <plugin>
                <groupId>net.revelc.code.formatter</groupId>
                <artifactId>formatter-maven-plugin</artifactId>
                <version>${maven-formatter-plugin.version}</version>
                <configuration>
                    <configFile>${build-config.location}/lutece_formatter.xml</configFile>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>${maven-checkstyle-plugin.version}</version>
                <dependencies>
                    <dependency>
                        <groupId>fr.paris.lutece.tools</groupId>
                        <artifactId>build-config</artifactId>
                        <version>${build-config.version}</version>
                    </dependency>
                </dependencies>
            </plugin>
           
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-clean-plugin</artifactId>
                <version>${maven-clean-plugin.version}</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-install-plugin</artifactId>
                <version>${maven-install-plugin.version}</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>${maven-deploy-plugin.version}</version>
            </plugin>
        </plugins>

        <extensions>
            <!-- Adding the build-config jar containing misc files to the classpath -->
            <!-- used by different plugins, like checkstyle, pmd, jalopy, formatter, license -->
            <extension>
                <groupId>fr.paris.lutece.tools</groupId>
                <artifactId>build-config</artifactId>
                <version>${build-config.version}</version>
            </extension>
            <!-- Enabling the use of FTP -->
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ftp</artifactId>
                <version>${maven-wagon-ftp.version}</version>
            </extension>
        </extensions>

    </build>

    <distributionManagement>
        <repository>
            <id>lutece_releases_repository</id>
            <url>http://${serverUrl}/nexus/content/repositories/lutece_releases_repository</url>
        </repository>

        <snapshotRepository>
            <uniqueVersion>true</uniqueVersion>
            <id>lutece_snapshots_repository</id>
            <url>http://${serverUrl}/nexus/content/repositories/lutece_snapshots_repository</url>
        </snapshotRepository>

        <site>
            <id>lutece_ftp_site_maven</id>
            <url>ftp://site-deploy.${serverUrl}/site/plugins</url>
        </site>
    </distributionManagement>

    <scm>
        <connection>scm:git:https://github.com/lutece-platform/tools-maven-global-pom.git</connection>
        <developerConnection>scm:git:https://github.com/lutece-platform/tools-maven-global-pom.git</developerConnection>
        <url>https://github.com/lutece-platform/tools-maven-global-pom.git</url>
        <tag>lutece-global-pom-5.0.0</tag>
    </scm>

    <profiles>
        <profile>
            <id>doclint-java8-disable</id>
            <activation>
                <jdk>[1.8,)</jdk>
            </activation>
            <properties>
                <additionalparam>-Xdoclint:none</additionalparam>
            </properties>
        </profile>

        <!-- databases drivers, for tests only -->
        <!-- Do not activate these for releases -->
        <!-- Choose your driver during tests with one of the following: -->
        <!--   mvn -Dlutece-test-mysql ... -->
        <!--   mvn -Dlutece-test-hsql ... -->
        <!--   mvn -Dlutece-test-postgresql ... -->
        <profile>
            <id>lutece-test-mysql</id>
            <activation>
                <property>
                    <name>lutece-test-mysql</name>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>mysql</groupId>
                    <artifactId>mysql-connector-java</artifactId>
                    <!-- Must be kept in sync with lutece-core src/sql/build.properties -->
                    <version>${mysql.version}</version>
                    <optional>true</optional>
                </dependency>
            </dependencies>
            <properties>
                <antrun-lutece-db-properties>db-test-mysql.properties</antrun-lutece-db-properties>
            </properties>
        </profile>
        <profile>
            <id>lutece-test-postgresql</id>
            <activation>
                <property>
                    <name>lutece-test-postgresql</name>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>org.postgresql</groupId>
                    <artifactId>postgresql</artifactId>
                    <version>${postgresql.version}</version>
                    <optional>true</optional>
                </dependency>
            </dependencies>
            <properties>
                <antrun-lutece-db-properties>db-test-postgresql.properties</antrun-lutece-db-properties>
            </properties>
        </profile>
        <profile>
            <id>lutece-test-hsql</id>
            <activation>
                <property>
                    <name>lutece-test-hsql</name>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>org.hsqldb</groupId>
                    <artifactId>hsqldb</artifactId>
                    <version>${hsqldb.version}</version>
                    <optional>true</optional>
                </dependency>
            </dependencies>
            <properties>
                <antrun-lutece-db-properties>db-test-hsql.properties</antrun-lutece-db-properties>
            </properties>
        </profile>
    </profiles>

</project>
