Replace deprecated DOM.setElementAttribute().
[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.23.1</version>
11         <name>OnlineGlom</name>
12
13         <licenses>
14                 <license>
15                         <name>LGPL v3</name>
16                         <distribution>repo and manual</distribution>
17                         <url>http://www.gnu.org/licenses/lgpl.html</url>
18                 </license>
19         </licenses>
20
21         <!-- Specify a recent maven version, so we can use later plugin versions.
22              We specify the same thing via the maven-enforcer-plugin, but that is normal.
23              See http://maven.apache.org/enforcer/maven-enforcer-plugin/faq.html#question -->
24         <prerequisites>
25                 <maven>2.2.1</maven>
26         </prerequisites>
27
28         <!-- gwt-test-utils is not in the regular maven repository: -->
29         <repositories>
30                 <repository>
31                         <id>forge.octo.com</id>
32                         <url>http://forge.octo.com/nexus/content/repositories/releases/</url>
33                 </repository>
34         </repositories>
35
36         <properties>
37                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38
39                 <!-- Convenience property to set the GWT version -->
40                 <gwt.version>2.7.0</gwt.version>
41
42                 <!-- Make mvn gwt:run use SSL (HTTPS) when running Jetty.
43                      Login will fail (on purpose) if run as regular HTTP.
44                      TODO: We could instead enable this when running mvn gwt:run, like so:
45                       -Dgwt.server=:ssls
46                      but how do we disable it now that it's on by default here?
47                      Where is this maven gwt plugin property documented? -->
48                 <gwt.server>:ssl</gwt.server>
49
50                 <!-- GWT requires java 1.6 -->
51                 <!-- TODO: Isn't this a duplicate of the maven-compiler-plugin properties below? -->
52                 <maven.compiler.source>1.7</maven.compiler.source>
53                 <maven.compiler.target>1.7</maven.compiler.target>
54
55                 <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
56         </properties>
57
58         <dependencies>
59                 <dependency>
60                         <groupId>com.google.gwt</groupId>
61                         <artifactId>gwt-servlet</artifactId>
62                         <version>${gwt.version}</version>
63                         <scope>compile</scope>  <!-- It is used for runtime and test scopes -->
64                 </dependency>
65                 <dependency>
66                         <groupId>com.google.gwt</groupId>
67                         <artifactId>gwt-user</artifactId>
68                         <version>${gwt.version}</version>
69                         <scope>provided</scope>
70                 </dependency>
71                 <dependency>
72                         <groupId>c3p0</groupId>
73                         <artifactId>c3p0</artifactId>
74                         <version>0.9.1.2</version>
75                         <type>jar</type>
76                         <scope>compile</scope>
77                 </dependency>
78                 <dependency>
79                         <groupId>commons-io</groupId>
80                         <artifactId>commons-io</artifactId>
81                         <version>2.4</version>
82                         <type>jar</type>
83                         <scope>compile</scope>
84                 </dependency>
85
86                 <!-- The PostgreSQL JDBC driver: -->
87                 <dependency>
88                         <groupId>postgresql</groupId>
89                         <artifactId>postgresql</artifactId>
90                         <version>9.1-901.jdbc4</version>
91                         <type>jar</type>
92                         <scope>runtime</scope>
93                 </dependency>
94
95                 <!-- The MySQL JDBC driver: -->
96                 <dependency>
97                         <groupId>mysql</groupId>
98                         <artifactId>mysql-connector-java</artifactId>
99                         <version>5.1.25</version>
100                         <type>jar</type>
101                         <scope>runtime</scope>
102                 </dependency>
103
104                 <dependency>
105                         <groupId>xml-apis</groupId>
106                         <artifactId>xml-apis</artifactId>
107                         <version>2.0.2</version>
108                         <scope>compile</scope>
109                 </dependency>    
110                 <dependency>
111                         <groupId>com.allen-sauer.gwt.log</groupId>
112                         <artifactId>gwt-log</artifactId>
113                         <version>3.2.1</version>
114                         <type>jar</type>
115                         <scope>compile</scope>
116                 </dependency>
117                 <dependency>
118                         <groupId>org.apache.commons</groupId>
119                         <artifactId>commons-lang3</artifactId>
120                         <version>3.1</version>
121                         <scope>compile</scope>
122                 </dependency>
123                 <dependency>
124                         <groupId>org.apache.httpcomponents</groupId>
125                         <artifactId>httpclient</artifactId>
126                         <version>4.2.2</version>
127                 </dependency>   
128                 <dependency>
129                         <groupId>commons-codec</groupId>
130                         <artifactId>commons-codec</artifactId>
131                         <version>1.8</version>
132                         <scope>compile</scope>
133                 </dependency>
134                 <dependency>
135                         <groupId>com.google.guava</groupId>
136                         <artifactId>guava</artifactId>
137                         <version>14.0.1</version>
138                 </dependency>
139                 <dependency>
140                         <groupId>org.jooq</groupId>
141                         <artifactId>jooq</artifactId>
142                         <version>2.6.0</version>
143                         <scope>compile</scope>
144                 </dependency>
145                 <dependency>
146                         <groupId>net.sf.jasperreports</groupId>
147                         <artifactId>jasperreports</artifactId>
148                         <version>5.1.2</version>
149                         <scope>compile</scope>
150                         <exclusions>
151                                 <!-- There is apparently a clash between the jdtcore used by jasperreports
152                                         and gwt, so we do this to avoid the reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
153                                         exception during the gwt compile. -->
154                                 <exclusion>
155                                         <groupId>eclipse</groupId>
156                                         <artifactId>jdtcore</artifactId>
157                                 </exclusion>
158                         </exclusions>
159                 </dependency>
160
161                 <dependency>
162                         <groupId>log4j</groupId>
163                         <artifactId>log4j</artifactId>
164                         <version>1.2.17</version>
165                         <type>jar</type>
166                         <scope>compile</scope> <!-- It is used for runtime and test scopes -->
167                 </dependency>
168
169                 <!-- This seems to be necessary so we can see errors from JDBC -->              
170                 <dependency>
171                         <groupId>org.slf4j</groupId>
172                         <artifactId>slf4j-simple</artifactId>
173                         <version>1.7.5</version>
174                         <scope>test</scope>
175                 </dependency>
176
177                 <dependency>
178                         <groupId>junit</groupId>
179                         <artifactId>junit</artifactId>
180                         <version>4.11</version>
181                         <scope>test</scope>
182                 </dependency>
183                 <dependency>
184                         <groupId>org.hamcrest</groupId>
185                         <artifactId>hamcrest-core</artifactId>
186                         <version>1.3</version>
187                         <scope>test</scope>
188                 </dependency>
189                 <dependency>
190                         <groupId>com.googlecode.gwt-test-utils</groupId>
191                         <artifactId>gwt-test-utils</artifactId>
192                         <version>0.45</version>
193                         <scope>test</scope>
194                 </dependency>
195                 <dependency>
196                         <groupId>org.easymock</groupId>
197                         <artifactId>easymock</artifactId>
198                         <version>3.1</version>
199                         <scope>test</scope>
200                 </dependency>
201
202                 <!-- Specify a later javax version than we get via GWT,
203                 so we can use Cookie.setSecure(). -->
204                 <dependency>
205                         <groupId>javax.servlet</groupId>
206                         <artifactId>javax.servlet-api</artifactId>
207                         <version>3.1.0</version>
208                         <scope>provided</scope>
209                 </dependency>
210         </dependencies>
211
212         <url>http://www.glom.org/wiki/index.php?title=Development/OnlineGlom</url>
213         <build>
214                 <!-- Generate compiled stuff in the folder used for developing mode -->
215                 <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
216
217                 <plugins>
218                         <plugin>
219                                 <!-- Specify a recent maven version, so we can use later plugin versions.
220                                      We specify the same thing in the prerequisites tag, but that is normal.
221                                      See http://maven.apache.org/enforcer/maven-enforcer-plugin/faq.html#question -->
222                                 <groupId>org.apache.maven.plugins</groupId>
223                                 <artifactId>maven-enforcer-plugin</artifactId>
224                                 <version>1.4</version>
225                                 <executions>
226                                         <execution>
227                                                 <id>enforce-versions</id>
228                                                 <goals>
229                                                         <goal>enforce</goal>
230                                                 </goals>
231                                                 <configuration>
232                                                         <rules>
233                                                                 <requireMavenVersion>
234                                                                         <version>2.2.1</version>
235                                                                 </requireMavenVersion>
236                                                         </rules>
237                                                 </configuration>
238                                         </execution>
239                                 </executions>
240                         </plugin>
241
242                         <!-- GWT Maven Plugin -->
243                         <plugin>
244                                 <groupId>org.codehaus.mojo</groupId>
245                                 <artifactId>gwt-maven-plugin</artifactId>
246                                 <version>2.7.0</version>
247                                 <executions>
248                                         <execution>
249                                                 <goals>
250                                                         <goal>i18n</goal>
251                                                         <goal>compile</goal>
252                                                         <goal>test</goal>
253                                                 </goals>
254                                         </execution>
255                                 </executions>
256                                 <!-- Plugin configuration. There are many available options, see gwt-maven-plugin
257                                         documentation at codehaus.org -->
258                                 <configuration>
259                                         <runTarget>OnlineGlom.html</runTarget>
260                                         <hostedWebapp>${webappDirectory}</hostedWebapp>
261
262                                         <i18nConstantsBundles>
263                                                 <i18nConstantsBundle>org.glom.web.client.ui.OnlineGlomConstants</i18nConstantsBundle>
264                                         </i18nConstantsBundles>
265                                         <mode>htmlunit</mode> <!-- Because the default, manual, waits for us to paste a URL into a browser. -->
266
267                                         <!-- <productionMode>true</productionMode> -->
268                                 </configuration>
269                         </plugin>
270
271                         <!-- Copy static web files before executing gwt:run -->
272                         <plugin>
273                                 <groupId>org.apache.maven.plugins</groupId>
274                                 <artifactId>maven-war-plugin</artifactId>
275                                 <version>2.3</version>
276                                 <executions>
277                                         <execution>
278                                                 <phase>compile</phase>
279                                                 <goals>
280                                                         <goal>exploded</goal>
281                                                 </goals>
282                                         </execution>
283                                 </executions>
284                                 <configuration>
285                                         <webappDirectory>${webappDirectory}</webappDirectory>
286                                 </configuration>
287                         </plugin>
288
289                         <plugin>
290                                 <artifactId>maven-assembly-plugin</artifactId>
291                                 <version>2.4</version>
292                                 <configuration>
293                                         <descriptors>
294                                                 <descriptor>assembly.xml</descriptor>
295                                         </descriptors>
296                                         <appendAssemblyId>false</appendAssemblyId>
297                                 </configuration>
298                         </plugin>
299
300                         <plugin>
301                                 <groupId>org.apache.maven.plugins</groupId>
302                                 <artifactId>maven-compiler-plugin</artifactId>   
303                                 <version>3.1</version>       
304                                 <configuration>
305                                         <source>1.7</source>
306                                         <target>1.7</target>
307                                 </configuration>
308                         </plugin>
309
310                         <!-- This lets us do
311                         mvn dependency:analyze-report
312                         to generate target/dependency-analysis.html
313                         -->
314                         <plugin>
315                                 <groupId>org.apache.maven.plugins</groupId>
316                                 <artifactId>maven-dependency-plugin</artifactId>
317                                 <version>2.10</version>
318                                 <executions>
319                                         <execution>
320                                                 <id>copy</id>
321                                                 <phase>package</phase>
322                                         </execution>
323                                 </executions>
324                         </plugin>
325                 </plugins>
326                 <pluginManagement>
327                         <plugins>
328                                 <!--This plugin's configuration is used to store Eclipse m2e settings
329                                         only. It has no influence on the Maven build itself. -->
330                                 <plugin>
331                                         <groupId>org.eclipse.m2e</groupId>
332                                         <artifactId>lifecycle-mapping</artifactId>
333                                         <version>1.0.0</version>
334                                         <configuration>
335                                                 <lifecycleMappingMetadata>
336                                                         <pluginExecutions>
337                                                                 <pluginExecution>
338                                                                         <pluginExecutionFilter>
339                                                                                 <groupId>org.codehaus.mojo</groupId>
340                                                                                 <artifactId>gwt-maven-plugin</artifactId>
341                                                                                 <versionRange>[2.5.1,)</versionRange>
342                                                                                 <goals>
343                                                                                         <goal>i18n</goal>
344                                                                                 </goals>
345                                                                         </pluginExecutionFilter>
346                                                                         <action>
347                                                                                 <execute />
348                                                                         </action>
349                                                                 </pluginExecution>
350                                                                 <pluginExecution>
351                                                                         <pluginExecutionFilter>
352                                                                                 <groupId>
353                                                                                         org.apache.maven.plugins
354                                                                                 </groupId>
355                                                                                 <artifactId>
356                                                                                         maven-war-plugin
357                                                                                 </artifactId>
358                                                                                 <versionRange>
359                                                                                         [2.1.1,)
360                                                                                 </versionRange>
361                                                                                 <goals>
362                                                                                         <goal>exploded</goal>
363                                                                                 </goals>
364                                                                         </pluginExecutionFilter>
365                                                                         <action>
366                                                                                 <ignore />
367                                                                         </action>
368                                                                 </pluginExecution>
369                                                                 <pluginExecution>
370                                                                         <pluginExecutionFilter>
371                                                                                 <groupId>org.apache.maven.plugins</groupId>
372                                                                                 <artifactId>maven-enforcer-plugin</artifactId>
373                                                                                 <versionRange>[1.0.0,)</versionRange>
374                                                                                 <goals>
375                                                                                         <goal>enforce</goal>
376                                                                                 </goals>
377                                                                         </pluginExecutionFilter>
378                                                                         <action>
379                                                                                 <ignore />
380                                                                         </action>
381                                                                 </pluginExecution>
382                                                         </pluginExecutions>
383                                                 </lifecycleMappingMetadata>
384                                         </configuration>
385                                 </plugin>
386                         </plugins>
387                 </pluginManagement>
388         </build>
389
390         <reporting>
391                 <plugins>
392                         <plugin>
393                                 <groupId>org.apache.maven.plugins</groupId>
394                                 <artifactId>maven-surefire-report-plugin</artifactId>
395                                 <version>2.15</version>
396                                 <configuration>
397                                         <!-- your configuration here -->
398                                 </configuration>
399                         </plugin>
400                 </plugins>
401
402         </reporting>
403
404         <description>gwt-glom (OnlineGlom) is a web UI for Glom database systems.
405 See http://www.glom.org
406 </description>
407         <scm>
408                 <url>http://gitorious.org/online-glom</url>
409         </scm>
410         <issueManagement>
411                 <system>Bugzilla</system>
412                 <url>https://bugzilla.gnome.org/browse.cgi?product=Glom</url>
413         </issueManagement>
414 </project>