<?xml version="1.0" encoding="UTF-8"?>
<!--
  #%L
  ObServe Toolkit :: Common Dto
  %%
  Copyright (C) 2017 - 2018 IRD, Ultreia.io
  %%
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU 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 Public License for more details.
  
  You should have received a copy of the GNU General Public
  License along with this program.  If not, see
  <http://www.gnu.org/licenses/gpl-3.0.html>.
  #L%
  -->

<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>fr.ird.observe</groupId>
    <artifactId>ird-observe-toolkit</artifactId>
    <version>4.9</version>
  </parent>

  <groupId>fr.ird.observe.toolkit</groupId>
  <artifactId>common-dto</artifactId>

  <name>ObServe Toolkit :: Common Dto</name>
  <description>ObServe Toolkit Common Dto module</description>

  <dependencies>

    <!-- nuiton dependencies -->
    <dependency>
      <groupId>org.nuiton</groupId>
      <artifactId>nuiton-utils</artifactId>
    </dependency>
    <dependency>
      <groupId>io.ultreia.java4all.config</groupId>
      <artifactId>config-api</artifactId>
    </dependency>
    <dependency>
      <groupId>io.ultreia.java4all.i18n</groupId>
      <artifactId>i18n-runtime</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>io.ultreia.java4all.http</groupId>
      <artifactId>http-api</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>io.ultreia.java4all</groupId>
      <artifactId>java-lang</artifactId>
    </dependency>
    <dependency>
      <groupId>io.ultreia.java4all</groupId>
      <artifactId>java-util</artifactId>
    </dependency>
    <dependency>
      <groupId>org.nuiton</groupId>
      <artifactId>nuiton-version</artifactId>
    </dependency>
    <!-- commons dependencies -->
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
    </dependency>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
    </dependency>
    <dependency>
      <groupId>com.google.code.gson</groupId>
      <artifactId>gson</artifactId>
    </dependency>

    <!-- test  -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-jcl</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-slf4j-impl</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>io.ultreia.java4all</groupId>
      <artifactId>java-bean</artifactId>
    </dependency>

  </dependencies>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>io.ultreia.java4all.i18n</groupId>
          <artifactId>i18n-maven-plugin</artifactId>
          <executions>
            <execution>
              <id>default-parse-java-enumerations</id>
              <goals>
                <goal>parse-java-enumerations</goal>
              </goals>
              <configuration>
                <enumerationSets>
                  <enumerationSet>
                    <name>label</name>
                    <!--suppress MavenModelInspection -->
                    <pattern>observe.constant.@CLASS_SIMPLE_NAME@.@NAME@</pattern>
                    <enums>
                      <enum>fr.ird.observe.dto.referential.ReferenceStatus</enum>
                      <enum>fr.ird.observe.dto.ObserveModelType</enum>
                    </enums>
                  </enumerationSet>
                  <enumerationSet>
                    <name>description</name>
                    <!--suppress MavenModelInspection -->
                    <pattern>observe.constant.@CLASS_SIMPLE_NAME@.@NAME@.description</pattern>
                    <enums>
                      <enum>fr.ird.observe.dto.ObserveModelType</enum>
                    </enums>
                  </enumerationSet>
                </enumerationSets>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>
