<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.nuiton.web</groupId>
    <artifactId>nuiton-web-parent</artifactId>
    <version>1.17</version>
  </parent>

  <artifactId>nuiton-gwt</artifactId>

  <name>Nuiton Web :: Nuiton GWT</name>
  <description>Extra classes for GWT based applications</description>

  <dependencies>

    <!-- GWT -->
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-user</artifactId>
    </dependency>

  </dependencies>

  <build>
    <plugins>
      <plugin>

        <!-- extract i18n keys from source -->
        <groupId>org.nuiton.i18n</groupId>
        <artifactId>i18n-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>scan-gwt-java-source</id>
            <goals>
              <goal>parserGWTJava</goal>
            </goals>
          </execution>
          <execution>
            <id>gen</id>
            <goals>
              <goal>gen</goal>
            </goals>
            <configuration>
              <bundles>fr_FR,en_GB</bundles>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <!--always generate the -source jar, needed for gwt-->
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <!-- GWT module configuration -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>resources</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

    </plugins>
  </build>

</project>
