<?xml version="1.0" encoding="UTF-8"?>
<!--
  #%L
  JAXX
  %%
  Copyright (C) 2008 - 2020 Code Lutin, Ultreia.io
  %%
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Lesser General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Lesser Public License for more details.
  You should have received a copy of the GNU General Lesser Public
  License along with this program.  If not, see
  <http://www.gnu.org/licenses/lgpl-3.0.html>.
  #L%
  -->
<!--suppress MavenModelInspection -->
<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>io.ultreia.maven</groupId>
    <artifactId>pom</artifactId>
    <version>2021.102</version>
  </parent>

  <groupId>io.ultreia.java4all</groupId>
  <artifactId>jaxx</artifactId>
  <version>3.0.0-RC-11</version>
  <packaging>pom</packaging>

  <name>JAXX</name>
  <description>JAXX Project</description>
  <url>https://ultreiaio.gitlab.io/jaxx</url>
  <inceptionYear>2008</inceptionYear>

  <developers>

    <developer>
      <name>Tony Chemit</name>
      <id>tchemit</id>
      <email>dev@tchemit.fr</email>
      <organization>Ultreia.io</organization>
      <organizationUrl>http://ultreia.io</organizationUrl>
      <timezone>Europe/Paris</timezone>
      <roles>
        <role>Developer</role>
      </roles>
    </developer>

    <developer>
      <name>Jean Couteau</name>
      <id>jcouteau</id>
      <email>couteau@codelutin.com</email>
      <organization>CodeLutin</organization>
      <organizationUrl>http://www.codelutin.com</organizationUrl>
      <timezone>Europe/Paris</timezone>
      <roles>
        <role>Technical Writer</role>
      </roles>
    </developer>

    <developer>
      <name>Yannick Martel</name>
      <id>ymartel</id>
      <email>martel@codelutin.com</email>
      <organizationUrl>http://www.codelutin.com</organizationUrl>
      <organization>CodeLutin</organization>
      <timezone>Europe/Paris</timezone>
      <roles>
        <role>Developer</role>
      </roles>
    </developer>

    <developer>
      <name>Kevin Morin</name>
      <id>kmorin</id>
      <email>morin@codelutin.com</email>
      <organizationUrl>http://www.codelutin.com</organizationUrl>
      <organization>CodeLutin</organization>
      <timezone>Europe/Paris</timezone>
      <roles>
        <role>Developer</role>
      </roles>
    </developer>

  </developers>
  <contributors>
    <contributor>
      <name>Florian Desbois</name>
      <timezone>Europe/Paris</timezone>
      <roles>
        <role>Developer</role>
      </roles>
    </contributor>
    <contributor>
      <name>Sylvain Letellier</name>
      <timezone>Europe/Paris</timezone>
      <roles>
        <role>Developer</role>
      </roles>
    </contributor>
  </contributors>

  <modules>
    <module>jaxx-runtime-spi</module>
    <module>jaxx-runtime</module>
    <module>jaxx-runtime-application</module>
    <module>jaxx-runtime-swing-application</module>
    <module>jaxx-runtime-swing-help</module>
    <module>jaxx-runtime-swing-nav</module>
    <module>jaxx-runtime-swing-session</module>
    <module>jaxx-runtime-swing-wizard</module>
    <module>jaxx-validator</module>
    <module>jaxx-compiler</module>
    <module>jaxx-maven-plugin</module>
    <module>jaxx-widgets-common</module>
    <module>jaxx-widgets-combobox</module>
    <module>jaxx-widgets-list</module>
    <module>jaxx-widgets-text</module>
    <module>jaxx-widgets-i18n</module>
    <module>jaxx-widgets-file</module>
    <module>jaxx-widgets-font</module>
    <module>jaxx-widgets-status</module>
    <module>jaxx-widgets-about</module>
    <module>jaxx-widgets-number</module>
    <module>jaxx-widgets-select</module>
    <module>jaxx-widgets-temperature</module>
    <module>jaxx-widgets-hidor</module>
    <module>jaxx-widgets-error</module>
    <module>jaxx-widgets-datetime</module>
    <module>jaxx-widgets-gis</module>
    <module>jaxx-widgets-config</module>
    <module>jaxx-demo</module>
  </modules>

  <scm>
    <url>https://gitlab.com/${projectPath}</url>
    <connection>scm:git:git@gitlab.com:${projectPath}.git</connection>
    <developerConnection>scm:git:ssh://git@gitlab.com:${projectPath}.git</developerConnection>
  </scm>
  <distributionManagement>
    <site>
      <id>gitlab.com</id>
      <url>scm:git:https://git@gitlab.com/${projectPath}.git</url>
    </site>
  </distributionManagement>

  <properties>

    <organizationId>ultreiaio</organizationId>
    <projectId>jaxx</projectId>
    <java.version>11</java.version>

    <lib.version.java4all.jaxx>${project.version}</lib.version.java4all.jaxx>
    <lib.version.java4all.decorator>0.0.6</lib.version.java4all.decorator>

    <!-- i18n configuration -->
    <i18n.bundles>fr_FR,en_GB,es_ES</i18n.bundles>
    <i18n.failsIfWarning>true</i18n.failsIfWarning>
    <i18n.checkBundle>true</i18n.checkBundle>
    <i18n.showEmpty>true</i18n.showEmpty>

    <license.organizationName>Code Lutin, Ultreia.io</license.organizationName>

    <!--site configuration -->
    <locales>fr</locales>
    <siteSourcesType>rst</siteSourcesType>

    <maven.javadoc.failOnError>false</maven.javadoc.failOnError>

    <!--Gitlab configuration-->
    <gitlab.changesAuthor>Tony Chemit</gitlab.changesAuthor>
    <gitlab.changesAuthorEmail>dev@tchemit.fr</gitlab.changesAuthorEmail>
    <gitlab.trackers>Evolution,Anomalie,Tâche</gitlab.trackers>
    <gitlab.fromMilestone>2.43</gitlab.fromMilestone>

    <maven.javadoc.skip>false</maven.javadoc.skip>
    <maven.source.skip>false</maven.source.skip>
    <maven.deploy.skip>false</maven.deploy.skip>

  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.apache.maven.resolver</groupId>
        <artifactId>maven-resolver-api</artifactId>
        <version>${lib.version.maven.resolver}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven.resolver</groupId>
        <artifactId>maven-resolver-util</artifactId>
        <version>${lib.version.maven.resolver}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven.resolver</groupId>
        <artifactId>maven-resolver-spi</artifactId>
        <version>${lib.version.maven.resolver}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven.resolver</groupId>
        <artifactId>maven-resolver-impl</artifactId>
        <version>${lib.version.maven.resolver}</version>
        <exclusions>
          <exclusion>
            <groupId>javax.annotation</groupId>
            <artifactId>javax.annotation-api</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.eclipse.sisu</groupId>
        <artifactId>org.eclipse.sisu.inject</artifactId>
        <version>${lib.version.sisu.plexus}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>

    <pluginManagement>
      <plugins>

        <plugin>
          <artifactId>maven-site-plugin</artifactId>
          <version>${plugin.version.site}</version>
          <dependencies>
            <dependency>
              <groupId>org.nuiton.jrst</groupId>
              <artifactId>doxia-module-jrst</artifactId>
              <version>2.3</version>
            </dependency>
          </dependencies>
        </plugin>

        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>webstart-maven-plugin</artifactId>
          <version>${plugin.version.webstart}</version>
          <configuration>
            <outputName>${jnlpFileName}</outputName>
            <codebase>${jnlpCodebase}</codebase>
            <libPath>lib</libPath>
            <makeArchive>false</makeArchive>
            <verbose>false</verbose>
            <updateManifestEntries>
              <Application-Name>JAXX Demo ${project.version}</Application-Name>
              <Permissions>all-permissions</Permissions>
              <Codebase>*</Codebase>
            </updateManifestEntries>
            <filenameMapping>simple</filenameMapping>
            <outputJarVersions>true</outputJarVersions>
            <jnlp>
              <mainClass>${maven.jar.main.class}</mainClass>
              <allPermissions>true</allPermissions>
              <offlineAllowed>true</offlineAllowed>
              <outputFile>${jnlpFileName}</outputFile>
            </jnlp>
            <sign>
              <keystore>${keystorepath}</keystore>
              <storepass>${keystorepass}</storepass>
              <alias>${keyalias}</alias>
              <keypass>${keypass}</keypass>
              <verify>true</verify>
              <keystoreConfig>
                <delete>false</delete>
                <gen>false</gen>
              </keystoreConfig>
            </sign>

            <gzip>true</gzip>
            <pack200>
              <enabled>true</enabled>
              <passFiles>
                <passFile>org/jdesktop/jxlayer/</passFile>
              </passFiles>
            </pack200>
            <jnlpExtensions>
              <jnlpExtension>
                <name>jxlayer</name>
                <title>Swing labs JXLayer</title>
                <vendor>Swing Labs</vendor>
                <includes>
                  <include>org.swinglabs:jxlayer</include>
                </includes>
              </jnlpExtension>
            </jnlpExtensions>
          </configuration>
        </plugin>

      </plugins>
    </pluginManagement>
  </build>

  <reporting>
    <excludeDefaults>true</excludeDefaults>
  </reporting>

  <profiles>

    <!-- reporting at release time -->
    <profile>
      <id>reporting</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>

      <reporting>
        <plugins>

          <plugin>
            <artifactId>maven-plugin-plugin</artifactId>
            <version>${plugin.version.plugins}</version>
          </plugin>
          <plugin>
            <artifactId>maven-project-info-reports-plugin</artifactId>
            <version>${plugin.version.projectInfoReports}</version>
          </plugin>

          <plugin>
            <artifactId>maven-changes-plugin</artifactId>
            <version>${plugin.version.changes}</version>
            <configuration>
              <issueLinkTemplatePerSystem>
                <gitlab>https://gitlab.nuiton.org/nuiton/${projectId}/issues/%ISSUE%</gitlab>
              </issueLinkTemplatePerSystem>
              <xmlPath>${project.build.directory}/generated-site/changes.xml</xmlPath>
            </configuration>
            <reportSets>
              <reportSet>
                <reports>
                  <report>changes-report</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>

          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>${plugin.version.javadoc}</version>
            <reportSets>
              <reportSet>
                <reports>
                  <report>javadoc-no-fork</report>
                  <report>test-javadoc-no-fork</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>

          <plugin>
            <artifactId>maven-changelog-plugin</artifactId>
            <version>${plugin.version.changelog}</version>
          </plugin>

          <plugin>
            <artifactId>maven-jxr-plugin</artifactId>
            <version>${plugin.version.jrx}</version>
          </plugin>

          <plugin>
            <artifactId>maven-surefire-report-plugin</artifactId>
            <version>${plugin.version.surefire}</version>
          </plugin>

          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>license-maven-plugin</artifactId>
            <version>${plugin.version.license}</version>
            <reportSets>
              <reportSet>
                <reports>
                  <report>third-party-report</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>

          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>versions-maven-plugin</artifactId>
            <version>${plugin.version.versions}</version>
            <reportSets>
              <reportSet>
                <reports>
                  <report>dependency-updates-report</report>
                  <report>plugin-updates-report</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>

        </plugins>
      </reporting>

      <build>

        <plugins>

          <plugin>
            <groupId>io.ultreia.maven</groupId>
            <artifactId>gitlab-maven-plugin</artifactId>
            <inherited>false</inherited>
            <executions>
              <execution>
                <inherited>false</inherited>
                <goals>
                  <goal>generate-changes</goal>
                </goals>
                <phase>pre-site</phase>
              </execution>
            </executions>
          </plugin>

        </plugins>

      </build>

    </profile>

  </profiles>
</project>
