Convert to gwt-maven project.
[online-glom:gwt-glom.git] / pom.xml
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"
3   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
5   <!-- POM file generated with GWT webAppCreator -->
6   <modelVersion>4.0.0</modelVersion>
7   <groupId>org.glom.web</groupId>
8   <artifactId>gwt-glom</artifactId>
9   <packaging>war</packaging>
10   <version>1.0-SNAPSHOT</version>
11   <name>OnlineGlom</name>
12
13   <properties>
14     <!-- Convenience property to set the GWT version -->
15     <gwtVersion>2.1.1</gwtVersion>
16     <!-- GWT needs at least java 1.5 -->
17     <maven.compiler.source>1.5</maven.compiler.source>
18     <maven.compiler.target>1.5</maven.compiler.target>
19     <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
20   </properties>
21
22   <dependencies>
23     <dependency>
24       <groupId>com.google.gwt</groupId>
25       <artifactId>gwt-servlet</artifactId>
26       <version>2.1.1</version>
27       <scope>runtime</scope>
28     </dependency>
29     <dependency>
30       <groupId>com.google.gwt</groupId>
31       <artifactId>gwt-user</artifactId>
32       <version>2.1.1</version>
33       <scope>provided</scope>
34     </dependency>  
35     <dependency>
36       <groupId>junit</groupId>
37       <artifactId>junit</artifactId>
38       <version>4.7</version>
39       <scope>test</scope>
40     </dependency>
41     <dependency>
42       <groupId>org.glom.libglom</groupId>
43       <artifactId>java-libglom</artifactId>
44       <version>0.1</version>
45       <scope>compile</scope>
46     </dependency>
47   </dependencies>
48
49   <url>http://www.glom.org</url>
50   <build>
51     <!-- Generate compiled stuff in the folder used for developing mode -->
52     <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
53
54     <plugins>
55
56       <!-- GWT Maven Plugin -->
57       <plugin>
58         <groupId>org.codehaus.mojo</groupId>
59         <artifactId>gwt-maven-plugin</artifactId>
60         <version>2.1.0-1</version>
61         <executions>
62           <execution>
63             <goals>
64               <goal>compile</goal>
65               <goal>test</goal>
66               <goal>i18n</goal>
67               <goal>generateAsync</goal>
68             </goals>
69           </execution>
70         </executions>
71         <!-- Plugin configuration. There are many available options, see gwt-maven-plugin 
72           documentation at codehaus.org -->
73         <configuration>
74           <runTarget>OnlineGlom.html</runTarget>
75           <hostedWebapp>${webappDirectory}</hostedWebapp>
76           <i18nMessagesBundle>org.glom.web.client.Messages</i18nMessagesBundle>
77         </configuration>
78       </plugin>
79
80       <!-- Copy static web files before executing gwt:run -->
81       <plugin>
82         <groupId>org.apache.maven.plugins</groupId>
83         <artifactId>maven-war-plugin</artifactId>
84         <version>2.1.1</version>
85         <executions>
86           <execution>
87             <phase>compile</phase>
88             <goals>
89               <goal>exploded</goal>
90             </goals>
91           </execution>
92         </executions>
93         <configuration>
94           <webappDirectory>${webappDirectory}</webappDirectory>
95         </configuration>
96       </plugin>
97
98     </plugins>
99   </build>
100
101 </project>