svn.filsa.org mojo

Rev

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

Rev Author Line No. Line
7 phil 1
#set ( $symbol_dollar = '$' )
2 phil 2
<?xml version="1.0" encoding="UTF-8"?>
3
<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">
4
  <!--
5
   POM generated by filsa-gwt-basic archetype
6
 -->
7
  <modelVersion>4.0.0</modelVersion>
8
  <groupId>${groupId}</groupId>
9
  <artifactId>${artifactId}</artifactId>
10
  <packaging>war</packaging>
11
  <name>${artifactId}</name>
12
  <version>1.0.0</version>
13
 
14
  <properties>
15
 
16
      <!-- convenience to define GWT version in one place -->
7 phil 17
      <gwt.version>2.0.1</gwt.version>
2 phil 18
      <maven.compiler.source>1.6</maven.compiler.source>
19
      <maven.compiler.target>1.6</maven.compiler.target>
20
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21
  </properties>
22
 
23
  <dependencies>
24
 
25
      <!--  GWT dependencies (from central repo) -->
26
    <dependency>
27
      <groupId>com.google.gwt</groupId>
28
      <artifactId>gwt-servlet</artifactId>
7 phil 29
      <version>${symbol_dollar}{gwt.version}</version>
2 phil 30
      <scope>runtime</scope>
31
    </dependency>
32
    <dependency>
33
      <groupId>com.google.gwt</groupId>
34
      <artifactId>gwt-user</artifactId>
7 phil 35
      <version>${symbol_dollar}{gwt.version}</version>
2 phil 36
      <scope>provided</scope>
37
    </dependency>
38
        <!--  your app dependencies -->
39
 
40
    <!-- test -->
41
    <dependency>
42
      <groupId>junit</groupId>
43
      <artifactId>junit</artifactId>
44
      <version>4.7</version>
45
      <scope>test</scope>
46
    </dependency>
47
  </dependencies>
48
 
49
  <build>
50
    <outputDirectory>war/WEB-INF/classes</outputDirectory>
51
    <plugins>
52
      <plugin>
53
        <groupId>org.codehaus.mojo</groupId>
54
        <artifactId>gwt-maven-plugin</artifactId>
55
        <version>1.2</version>
56
        <executions>
57
          <execution>
58
            <goals>
59
              <goal>compile</goal>
60
              <goal>generateAsync</goal>
61
              <goal>test</goal>
62
            </goals>
63
          </execution>
64
        </executions>
65
        <configuration>
7 phil 66
          <runTarget>${artifactId}.html</runTarget>
2 phil 67
          <!--
68
                    If you use Eclipe/Google Eclipse Plugin to generate your *Async.java classes, you
69
                don't want to use the generateAsync feature of maven-gwt-plugin. There's no explicit on/off switch
70
                for generateAsync, but we can work around it by providing it a servicePattern that will never be matched.
71
                If you don't use Eclipse and want to use the generateAsync feature of maven-gwt-plugin, change
72
                the "NOMATCH" below to "java".
73
                 -->
74
          <servicePattern>**/gwt/**/*Service.NOMATCH</servicePattern>
75
        </configuration>
76
      </plugin>
77
 
78
      <plugin>
79
          <groupId>org.apache.maven.plugins</groupId>
80
          <artifactId>maven-compiler-plugin</artifactId>
81
          <version>2.1</version>
82
          <configuration>
7 phil 83
            <source>${symbol_dollar}{maven.compiler.source}</source>
84
            <target>${symbol_dollar}{maven.compiler.target}</target>
2 phil 85
          </configuration>
86
      </plugin>
87
      <plugin>
88
        <artifactId>maven-war-plugin</artifactId>
89
          <configuration>
90
                        <!-- Google Eclipse Plugin uses this instead of the default src/main/webapp  -->
7 phil 91
                <warSourceDirectory>${symbol_dollar}{basedir}/war</warSourceDirectory>
2 phil 92
          </configuration>
93
      </plugin>
94
      <plugin>
95
        <groupId>org.codehaus.mojo</groupId>
96
        <artifactId>gwt-maven-plugin</artifactId>
97
        <version>1.2</version>
98
          <configuration>
99
                        <!-- Google Eclipse Plugin uses this instead of the default src/main/webapp  -->
7 phil 100
                <warSourceDirectory>${symbol_dollar}{basedir}/war</warSourceDirectory>
2 phil 101
                        <!-- GWT compile output goes under /war/ dir  -->
7 phil 102
                <webappDirectory>${symbol_dollar}{basedir}/war/${symbol_dollar}{project.build.finalName}</webappDirectory>
2 phil 103
                <inplace>true</inplace>
104
          </configuration>
105
      </plugin>
106
    </plugins>
107
  </build>
108
 
109
</project>