Add comment to pom.xml about the previous change.
[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                 <gwt.version>2.2.0</gwt.version>
16                 <!-- GWT 2.2.0 requires java 1.6 -->
17                 <maven.compiler.source>1.6</maven.compiler.source>
18                 <maven.compiler.target>1.6</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>${gwt.version}</version>
27                         <scope>runtime</scope>
28                 </dependency>
29                 <dependency>
30                         <groupId>com.google.gwt</groupId>
31                         <artifactId>gwt-user</artifactId>
32                         <version>${gwt.version}</version>
33                         <scope>provided</scope>
34                 </dependency>
35                 <!-- Since the java-libglom jar uses jni it can only be loaded once and 
36                         therefore must not be included in each war. Instead the java-libglom jar 
37                         must be placed in $CATALINA_HOME/lib. Scope provided ensures that the jar 
38                         is available for compiling and testing but will not be packaged in the war. 
39                         More information about this deploying servlets that use jni jars can be found 
40                         in the "JNI Based Applications" section of the Tomcat 6 release notes:
41                         http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt -->
42                 <dependency>
43                         <groupId>org.glom.libglom</groupId>
44                         <artifactId>java-libglom</artifactId>
45                         <version>0.1</version>
46                         <scope>provided</scope>
47                 </dependency>
48                 <dependency>
49                         <groupId>c3p0</groupId>
50                         <artifactId>c3p0</artifactId>
51                         <version>0.9.1.2</version>
52                         <type>jar</type>
53                         <scope>compile</scope>
54                 </dependency>
55                 <dependency>
56                         <groupId>postgresql</groupId>
57                         <artifactId>postgresql</artifactId>
58                         <version>8.4-702.jdbc4</version>
59                         <type>jar</type>
60                         <scope>runtime</scope>
61                 </dependency>
62         </dependencies>
63
64         <url>http://www.glom.org</url>
65         <build>
66                 <!-- Generate compiled stuff in the folder used for developing mode -->
67                 <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
68
69                 <plugins>
70
71                         <!-- GWT Maven Plugin -->
72                         <plugin>
73                                 <groupId>org.codehaus.mojo</groupId>
74                                 <artifactId>gwt-maven-plugin</artifactId>
75                                 <version>2.2.0</version>
76                                 <executions>
77                                         <execution>
78                                                 <goals>
79                                                         <goal>compile</goal>
80                                                 </goals>
81                                         </execution>
82                                 </executions>
83                                 <!-- Plugin configuration. There are many available options, see gwt-maven-plugin 
84                                         documentation at codehaus.org -->
85                                 <configuration>
86                                         <runTarget>OnlineGlom.html</runTarget>
87                                         <hostedWebapp>${webappDirectory}</hostedWebapp>
88                                         <i18nMessagesBundle>org.glom.web.client.Messages</i18nMessagesBundle>
89                                 </configuration>
90                         </plugin>
91
92                         <!-- Copy static web files before executing gwt:run -->
93                         <plugin>
94                                 <groupId>org.apache.maven.plugins</groupId>
95                                 <artifactId>maven-war-plugin</artifactId>
96                                 <version>2.1.1</version>
97                                 <executions>
98                                         <execution>
99                                                 <phase>compile</phase>
100                                                 <goals>
101                                                         <goal>exploded</goal>
102                                                 </goals>
103                                         </execution>
104                                 </executions>
105                                 <configuration>
106                                         <webappDirectory>${webappDirectory}</webappDirectory>
107                                 </configuration>
108                         </plugin>
109
110                 </plugins>
111         </build>
112
113 </project>