tests: Use @BeforeClass on tearDown().
[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.21.9.3</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         <!-- gwt-test-utils is not in the regular maven repository: -->
22         <repositories>
23                 <repository>
24                         <id>forge.octo.com</id>
25                         <url>http://forge.octo.com/nexus/content/repositories/releases/</url>
26                 </repository>
27         </repositories>
28
29         <properties>
30                 <!-- Convenience property to set the GWT version -->
31                 <gwt.version>2.5.0-rc1</gwt.version>
32                 <!-- GWT requires java 1.6 -->
33                 <!-- TODO: Isn't this a duplicate of the maven-compiler-plugin properties below? -->
34                 <maven.compiler.source>1.7</maven.compiler.source>
35                 <maven.compiler.target>1.7</maven.compiler.target>
36                 <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
37         </properties>
38
39         <dependencies>
40                 <dependency>
41                         <groupId>com.google.gwt</groupId>
42                         <artifactId>gwt-servlet</artifactId>
43                         <version>${gwt.version}</version>
44                         <scope>runtime</scope>
45                 </dependency>
46                 <dependency>
47                         <groupId>com.google.gwt</groupId>
48                         <artifactId>gwt-user</artifactId>
49                         <version>${gwt.version}</version>
50                         <scope>provided</scope>
51                 </dependency>
52                 <dependency>
53                         <groupId>c3p0</groupId>
54                         <artifactId>c3p0</artifactId>
55                         <version>0.9.1.2</version>
56                         <type>jar</type>
57                         <scope>compile</scope>
58                 </dependency>
59                 <dependency>
60                         <groupId>commons-io</groupId>
61                         <artifactId>commons-io</artifactId>
62                         <version>2.3</version>
63                         <type>jar</type>
64                         <scope>compile</scope>
65                 </dependency>
66                 <dependency>
67                         <groupId>postgresql</groupId>
68                         <artifactId>postgresql</artifactId>
69                         <version>9.1-901.jdbc4</version>
70                         <type>jar</type>
71                         <scope>runtime</scope>
72                 </dependency>
73                 <dependency>
74                         <groupId>com.allen-sauer.gwt.log</groupId>
75                         <artifactId>gwt-log</artifactId>
76                         <version>3.1.8</version>
77                         <type>jar</type>
78                         <scope>compile</scope>
79                 </dependency>
80                 <dependency>
81                         <groupId>org.apache.commons</groupId>
82                         <artifactId>commons-lang3</artifactId>
83                         <version>3.1</version>
84                         <scope>compile</scope>
85                 </dependency>
86                 <dependency>
87                         <groupId>com.google.guava</groupId>
88                         <artifactId>guava</artifactId>
89                         <version>11.0.2</version>
90                 </dependency>
91                 <dependency>
92                         <groupId>org.jooq</groupId>
93                         <artifactId>jooq</artifactId>
94                         <version>2.3.1</version>
95                         <scope>compile</scope>
96                 </dependency>
97                 <dependency>
98                         <groupId>net.sf.jasperreports</groupId>
99                         <artifactId>jasperreports</artifactId>
100                         <version>4.5.1</version>
101                         <scope>compile</scope>
102                         <exclusions>
103                                 <!-- There is apparently a clash between the jdtcore used by jasperreports
104                                         and gwt, so we do this to avoid the reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
105                                         exception during the gwt compile. -->
106                                 <exclusion>
107                                         <groupId>eclipse</groupId>
108                                         <artifactId>jdtcore</artifactId>
109                                 </exclusion>
110                         </exclusions>
111                 </dependency>
112
113                 <dependency>
114                         <groupId>log4j</groupId>
115                         <artifactId>log4j</artifactId>
116                         <version>1.2.16</version>
117                         <type>jar</type>
118                         <scope>compile</scope> <!-- It is used for runtime and test scopes -->
119                 </dependency>
120
121                 <!-- This seems to be necessary so we can see errors from JDBC -->              
122                 <dependency>
123                         <groupId>org.slf4j</groupId>
124                         <artifactId>slf4j-simple</artifactId>
125                         <version>1.6.6</version>
126                         <scope>test</scope>
127                 </dependency>
128
129                 <dependency>
130                         <groupId>junit</groupId>
131                         <artifactId>junit</artifactId>
132                         <version>4.10</version>
133                         <scope>test</scope>
134                 </dependency>
135                 <dependency>
136                         <groupId>com.googlecode.gwt-test-utils</groupId>
137                         <artifactId>gwt-test-utils</artifactId>
138                         <version>0.39</version>
139                         <scope>test</scope>
140                 </dependency>
141                 <dependency>
142                         <groupId>org.easymock</groupId>
143                         <artifactId>easymock</artifactId>
144                         <version>3.1</version>
145                         <scope>test</scope>
146                 </dependency>
147         </dependencies>
148
149         <url>http://www.glom.org/wiki/index.php?title=Development/OnlineGlom</url>
150         <build>
151                 <!-- Generate compiled stuff in the folder used for developing mode -->
152                 <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
153
154                 <plugins>
155
156                         <!-- GWT Maven Plugin -->
157                         <plugin>
158                                 <groupId>org.codehaus.mojo</groupId>
159                                 <artifactId>gwt-maven-plugin</artifactId>
160                                 <version>2.4.0</version>
161                                 <executions>
162                                         <execution>
163                                                 <goals>
164                                                         <goal>i18n</goal>
165                                                         <goal>compile</goal>
166                                                         <goal>test</goal>
167                                                 </goals>
168                                         </execution>
169                                 </executions>
170                                 <!-- Plugin configuration. There are many available options, see gwt-maven-plugin
171                                         documentation at codehaus.org -->
172                                 <configuration>
173                                         <runTarget>OnlineGlom.html</runTarget>
174                                         <hostedWebapp>${webappDirectory}</hostedWebapp>
175                                         <i18nConstantsBundles>
176                                                 <i18nConstantsBundle>org.glom.web.client.ui.OnlineGlomConstants</i18nConstantsBundle>
177                                         </i18nConstantsBundles>
178                                         <mode>htmlunit</mode> <!-- Because the default, manual, waits for us to paste a URL into a browser. -->
179                                         <!-- <productionMode>true</productionMode> -->
180                                 </configuration>
181                         </plugin>
182
183                         <!-- Copy static web files before executing gwt:run -->
184                         <plugin>
185                                 <groupId>org.apache.maven.plugins</groupId>
186                                 <artifactId>maven-war-plugin</artifactId>
187                                 <version>2.2</version>
188                                 <executions>
189                                         <execution>
190                                                 <phase>compile</phase>
191                                                 <goals>
192                                                         <goal>exploded</goal>
193                                                 </goals>
194                                         </execution>
195                                 </executions>
196                                 <configuration>
197                                         <webappDirectory>${webappDirectory}</webappDirectory>
198                                 </configuration>
199                         </plugin>
200
201                         <plugin>
202                                 <artifactId>maven-assembly-plugin</artifactId>
203                                 <version>2.3</version>
204                                 <configuration>
205                                         <descriptors>
206                                                 <descriptor>assembly.xml</descriptor>
207                                         </descriptors>
208                                         <appendAssemblyId>false</appendAssemblyId>
209                                 </configuration>
210                         </plugin>
211
212                         <plugin>
213                                 <groupId>org.apache.maven.plugins</groupId>
214                                 <artifactId>maven-compiler-plugin</artifactId>   
215                                 <version>2.3.2</version>       
216                                 <configuration>
217                                         <source>1.7</source>
218                                         <target>1.7</target>
219                                 </configuration>
220                         </plugin>
221                 </plugins>
222                 <pluginManagement>
223                         <plugins>
224                                 <!--This plugin's configuration is used to store Eclipse m2e settings
225                                         only. It has no influence on the Maven build itself. -->
226                                 <plugin>
227                                         <groupId>org.eclipse.m2e</groupId>
228                                         <artifactId>lifecycle-mapping</artifactId>
229                                         <version>1.0.0</version>
230                                         <configuration>
231                                                 <lifecycleMappingMetadata>
232                                                         <pluginExecutions>
233                                                                 <pluginExecution>
234                                                                         <pluginExecutionFilter>
235                                                                                 <groupId>org.codehaus.mojo</groupId>
236                                                                                 <artifactId>gwt-maven-plugin</artifactId>
237                                                                                 <versionRange>[2.4.0,)</versionRange>
238                                                                                 <goals>
239                                                                                         <goal>i18n</goal>
240                                                                                 </goals>
241                                                                         </pluginExecutionFilter>
242                                                                         <action>
243                                                                                 <execute />
244                                                                         </action>
245                                                                 </pluginExecution>
246                                                                 <pluginExecution>
247                                                                         <pluginExecutionFilter>
248                                                                                 <groupId>
249                                                                                         org.apache.maven.plugins
250                                                                                 </groupId>
251                                                                                 <artifactId>
252                                                                                         maven-war-plugin
253                                                                                 </artifactId>
254                                                                                 <versionRange>
255                                                                                         [2.1.1,)
256                                                                                 </versionRange>
257                                                                                 <goals>
258                                                                                         <goal>exploded</goal>
259                                                                                 </goals>
260                                                                         </pluginExecutionFilter>
261                                                                         <action>
262                                                                                 <ignore />
263                                                                         </action>
264                                                                 </pluginExecution>
265                                                         </pluginExecutions>
266                                                 </lifecycleMappingMetadata>
267                                         </configuration>
268                                 </plugin>
269                         </plugins>
270                 </pluginManagement>
271         </build>
272
273         <reporting>
274                 <plugins>
275                         <plugin>
276                                 <groupId>org.apache.maven.plugins</groupId>
277                                 <artifactId>maven-surefire-report-plugin</artifactId>
278                                 <version>2.12</version>
279                                 <configuration>
280                                         <!-- your configuration here -->
281                                 </configuration>
282                         </plugin>
283                 </plugins>
284         </reporting>
285
286         <description>gwt-glom (OnlineGlom) is a web UI for Glom database systems.
287 See http://www.glom.org
288 </description>
289         <scm>
290                 <url>http://gitorious.org/online-glom</url>
291         </scm>
292         <issueManagement>
293                 <system>Bugzilla</system>
294                 <url>https://bugzilla.gnome.org/browse.cgi?product=Glom</url>
295         </issueManagement>
296 </project>