svn.filsa.org mojo

Rev

Blame | Compare with Previous | Last modification | View Log | RSS feed

#set ( $symbol_dollar = '$' )
<?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/maven-v4_0_0.xsd">
  <!--
   POM generated by filsa-gwt-basic archetype
 -->
  <modelVersion>4.0.0</modelVersion>
  <groupId>${groupId}</groupId>
  <artifactId>${artifactId}</artifactId>
  <packaging>war</packaging>
  <name>${artifactId}</name>
  <version>1.0.0</version>

  <properties>

      <!-- convenience to define GWT version in one place -->
      <gwt.version>2.0.1</gwt.version>
      <maven.compiler.source>1.6</maven.compiler.source>
      <maven.compiler.target>1.6</maven.compiler.target>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>

      <!--  GWT dependencies (from central repo) -->
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-servlet</artifactId>
      <version>${symbol_dollar}{gwt.version}</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-user</artifactId>
      <version>${symbol_dollar}{gwt.version}</version>
      <scope>provided</scope>
    </dependency>
        <!--  your app dependencies -->

    <!-- test -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.7</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <outputDirectory>war/WEB-INF/classes</outputDirectory>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <goals>
              <goal>compile</goal>
              <goal>generateAsync</goal>
              <goal>test</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <runTarget>${artifactId}.html</runTarget>
          <!--
                    If you use Eclipe/Google Eclipse Plugin to generate your *Async.java classes, you
                don't want to use the generateAsync feature of maven-gwt-plugin. There's no explicit on/off switch
                for generateAsync, but we can work around it by providing it a servicePattern that will never be matched.
                If you don't use Eclipse and want to use the generateAsync feature of maven-gwt-plugin, change
                the "NOMATCH" below to "java".
                 -->
          <servicePattern>**/gwt/**/*Service.NOMATCH</servicePattern>
        </configuration>
      </plugin>

      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.1</version>
          <configuration>
            <source>${symbol_dollar}{maven.compiler.source}</source>
            <target>${symbol_dollar}{maven.compiler.target}</target>
          </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
          <configuration>
                        <!-- Google Eclipse Plugin uses this instead of the default src/main/webapp  -->
                <warSourceDirectory>${symbol_dollar}{basedir}/war</warSourceDirectory>
          </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>1.2</version>
          <configuration>
                        <!-- Google Eclipse Plugin uses this instead of the default src/main/webapp  -->
                <warSourceDirectory>${symbol_dollar}{basedir}/war</warSourceDirectory>
                        <!-- GWT compile output goes under /war/ dir  -->
                <webappDirectory>${symbol_dollar}{basedir}/war/${symbol_dollar}{project.build.finalName}</webappDirectory>
                <inplace>true</inplace>
          </configuration>
      </plugin>
    </plugins>
  </build>

</project>