svn.filsa.org mojo

Rev

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

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