updated version
[cdm-vaadin.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 <modelVersion>4.0.0</modelVersion>
5 <groupId>eu.etaxonomy</groupId>
6 <artifactId>cdm-vaadin</artifactId>
7 <packaging>war</packaging>
8 <version>3.4.1-SNAPSHOT</version>
9 <name>Vaadin Web Application</name>
10
11 <properties>
12 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13 <vaadin.version>7.3.5</vaadin.version>
14 <vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
15 <cdmlib.version>${project.version}</cdmlib.version>
16 <unitils.version>3.3</unitils.version>
17 </properties>
18 <repositories>
19 <!-- the cdm internal repository -->
20 <repository>
21 <id>EditRepository</id>
22 <url>http://wp5.e-taxonomy.eu/mavenrepo/</url>
23 </repository>
24 <!-- current spring source repositories -->
25 <repository>
26 <id>SpringSource Enterprise Bundle Repository - External Bundle Milestones</id>
27 <url>http://repository.springsource.com/maven/bundles/milestone</url>
28 </repository>
29 <repository>
30 <id>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</id>
31 <url>http://repository.springsource.com/maven/bundles/release</url>
32 </repository>
33 <repository>
34 <id>SpringSource Enterprise Bundle Repository - External Bundle Releases</id>
35 <url>http://repository.springsource.com/maven/bundles/external</url>
36 </repository>
37 <repository>
38 <id>vaadin-addons</id>
39 <url>http://maven.vaadin.com/vaadin-addons</url>
40 </repository>
41
42 <repository>
43 <id>vaadin-snapshots</id>
44 <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
45 <releases>
46 <enabled>false</enabled>
47 </releases>
48 <snapshots>
49 <enabled>true</enabled>
50 </snapshots>
51 </repository>
52 </repositories>
53 <pluginRepositories>
54 <pluginRepository>
55 <id>vaadin-snapshots</id>
56 <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
57 <releases>
58 <enabled>false</enabled>
59 </releases>
60 <snapshots>
61 <enabled>true</enabled>
62 </snapshots>
63 </pluginRepository>
64 </pluginRepositories>
65 <distributionManagement>
66 <repository>
67 <uniqueVersion>false</uniqueVersion>
68 <id>wp5.e-taxonomy.eu</id>
69 <name>Edit Maven Repository</name>
70 <url>scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/mavenrepo/</url>
71 <layout>default</layout>
72 </repository>
73 </distributionManagement>
74 <dependencies>
75 <dependency>
76 <groupId>com.vaadin</groupId>
77 <artifactId>vaadin-server</artifactId>
78 <version>${vaadin.version}</version>
79 </dependency>
80 <dependency>
81 <groupId>com.vaadin</groupId>
82 <artifactId>vaadin-client-compiled</artifactId>
83 <version>${vaadin.version}</version>
84 </dependency>
85 <!-- Needed when using the widgetset optimizer (custom ConnectorBundleLoaderFactory).
86 For widgetset compilation, vaadin-client-compiler is automatically added
87 on the compilation classpath by vaadin-maven-plugin so normally there is
88 no need for an explicit dependency. -->
89 <!-- <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-client-compiler</artifactId>
90 <version>${vaadin.version}</version> <scope>provided</scope> </dependency> -->
91 <dependency>
92 <groupId>com.vaadin</groupId>
93 <artifactId>vaadin-client</artifactId>
94 <version>${vaadin.version}</version>
95 <scope>provided</scope>
96 </dependency>
97 <!-- disabling push for the moment because it does not work with run-jetty-run
98 due to the fact that the latest (even nightly) version of run-jetty-run uses
99 9.0.0 M3 which is incompatible with atmoshpere. this does work with the jetty
100 included in this pom which is 9.2.5.xx, implying that enabling the dependency
101 and running the web app via 'mvn jetty:run' works fine. -->
102 <!-- <dependency> -->
103 <!-- <groupId>com.vaadin</groupId> -->
104 <!-- <artifactId>vaadin-push</artifactId> -->
105 <!-- <version>${vaadin.version}</version> -->
106 <!-- </dependency> -->
107 <dependency>
108 <groupId>com.vaadin</groupId>
109 <artifactId>vaadin-themes</artifactId>
110 <version>${vaadin.version}</version>
111 </dependency>
112 <dependency>
113 <groupId>javax.servlet</groupId>
114 <artifactId>javax.servlet-api</artifactId>
115 <version>3.1.0</version>
116 <scope>provided</scope>
117 </dependency>
118 <dependency>
119 <groupId>com.vaadin</groupId>
120 <artifactId>vaadin-testbench-api</artifactId>
121 <version>RELEASE</version>
122 <scope>test</scope>
123 </dependency>
124 <dependency>
125 <groupId>eu.etaxonomy</groupId>
126 <artifactId>cdmlib-services</artifactId>
127 <version>${cdmlib.version}</version>
128 <scope>provided</scope>
129 </dependency>
130
131 <dependency>
132 <groupId>eu.etaxonomy</groupId>
133 <artifactId>cdmlib-model</artifactId>
134 <version>${cdmlib.version}</version>
135 <scope>provided</scope>
136 </dependency>
137 <dependency>
138 <groupId>eu.etaxonomy</groupId>
139 <artifactId>cdmlib-persistence</artifactId>
140 <type>test-jar</type>
141 <scope>test</scope>
142 <version>${cdmlib.version}</version>
143 </dependency>
144
145
146 <dependency>
147 <groupId>org.springmodules</groupId>
148 <artifactId>spring-modules-cache</artifactId>
149 <version>0.7</version>
150 <exclusions>
151 <exclusion>
152 <groupId>org.springframework</groupId>
153 <artifactId>spring</artifactId>
154 </exclusion>
155 <exclusion>
156 <groupId>org.springframework</groupId>
157 <artifactId>spring-mock</artifactId>
158 </exclusion>
159 </exclusions>
160 <scope>provided</scope>
161 </dependency>
162 <dependency>
163 <groupId>com.thoughtworks.xstream</groupId>
164 <artifactId>xstream</artifactId>
165 <version>1.4.4</version>
166 <scope>provided</scope>
167 </dependency>
168 <dependency>
169 <groupId>org.springframework</groupId>
170 <artifactId>spring-mock</artifactId>
171 <version>2.0.8</version>
172 <scope>provided</scope>
173 </dependency>
174 <dependency>
175 <groupId>org.springframework</groupId>
176 <artifactId>spring-context-support</artifactId>
177 <version>3.2.2.RELEASE</version>
178 <scope>provided</scope>
179 </dependency>
180 <dependency>
181 <groupId>org.springframework</groupId>
182 <artifactId>org.springframework.web</artifactId>
183 <version>3.2.2.RELEASE</version>
184 <scope>provided</scope>
185 </dependency>
186 <dependency>
187 <groupId>org.springframework</groupId>
188 <artifactId>org.springframework.web.servlet</artifactId>
189 <version>3.2.2.RELEASE</version>
190 <scope>provided</scope>
191 </dependency>
192 <dependency>
193 <groupId>junit</groupId>
194 <artifactId>junit</artifactId>
195 <version>4.11</version>
196 <scope>test</scope>
197 </dependency>
198
199
200 <!-- unitils dependencies - start -->
201 <dependency>
202 <groupId>org.unitils</groupId>
203 <artifactId>unitils-core</artifactId>
204 <version>${unitils.version}</version>
205 <scope>test</scope>
206 </dependency>
207 <dependency>
208 <groupId>org.unitils</groupId>
209 <artifactId>unitils-database</artifactId>
210 <version>${unitils.version}</version>
211 <scope>test</scope>
212 <exclusions>
213 <exclusion>
214 <groupId>org.springframework</groupId>
215 <artifactId>spring-jdbc</artifactId>
216 </exclusion>
217 </exclusions>
218 </dependency>
219 <dependency>
220 <groupId>org.unitils</groupId>
221 <artifactId>unitils-dbmaintainer</artifactId>
222 <version>${unitils.version}</version>
223 <scope>test</scope>
224 <exclusions>
225 <exclusion>
226 <groupId>org.hibernate</groupId>
227 <artifactId>hibernate</artifactId>
228 </exclusion>
229 </exclusions>
230 </dependency>
231 <dependency>
232 <groupId>org.unitils</groupId>
233 <artifactId>unitils-dbunit</artifactId>
234 <version>${unitils.version}</version>
235 <scope>test</scope>
236 <exclusions>
237 <exclusion>
238 <groupId>org.springframework</groupId>
239 <artifactId>spring-core</artifactId>
240 </exclusion>
241 <exclusion>
242 <groupId>org.springframework</groupId>
243 <artifactId>spring-jdbc</artifactId>
244 </exclusion>
245 <exclusion>
246 <groupId>org.springframework</groupId>
247 <artifactId>spring-beans</artifactId>
248 </exclusion>
249 </exclusions>
250 </dependency>
251 <dependency>
252 <groupId>org.unitils</groupId>
253 <artifactId>unitils-easymock</artifactId>
254 <version>${unitils.version}</version>
255 <scope>test</scope>
256 </dependency>
257 <dependency>
258 <groupId>org.unitils</groupId>
259 <artifactId>unitils-mock</artifactId>
260 <version>${unitils.version}</version>
261 <scope>test</scope>
262 </dependency>
263 <dependency>
264 <groupId>org.unitils</groupId>
265 <artifactId>unitils-inject</artifactId>
266 <version>${unitils.version}</version>
267 <scope>test</scope>
268 </dependency>
269 <dependency>
270 <groupId>org.unitils</groupId>
271 <artifactId>unitils-orm</artifactId>
272 <version>${unitils.version}</version>
273 <scope>test</scope>
274 <exclusions>
275 <exclusion>
276 <groupId>org.springframework</groupId>
277 <artifactId>spring-context</artifactId>
278 </exclusion>
279 <exclusion>
280 <groupId>org.springframework</groupId>
281 <artifactId>spring-orm</artifactId>
282 </exclusion>
283 <exclusion>
284 <groupId>javax.persistence</groupId>
285 <artifactId>persistence-api</artifactId>
286 </exclusion>
287 </exclusions>
288 </dependency>
289 <dependency>
290 <groupId>org.unitils</groupId>
291 <artifactId>unitils-spring</artifactId>
292 <version>${unitils.version}</version>
293 <scope>test</scope>
294 <exclusions>
295 <exclusion>
296 <groupId>org.springframework</groupId>
297 <artifactId>spring-core</artifactId>
298 </exclusion>
299 <exclusion>
300 <groupId>org.springframework</groupId>
301 <artifactId>spring-context</artifactId>
302 </exclusion>
303 <exclusion>
304 <groupId>org.springframework</groupId>
305 <artifactId>spring-beans</artifactId>
306 </exclusion>
307 <exclusion>
308 <groupId>org.springframework</groupId>
309 <artifactId>spring-test</artifactId>
310 </exclusion>
311 <exclusion>
312 <groupId>org.springframework</groupId>
313 <artifactId>spring-tx</artifactId>
314 </exclusion>
315 </exclusions>
316 </dependency>
317 <dependency>
318 <groupId>org.easymock</groupId>
319 <artifactId>easymock</artifactId>
320 <version>3.1</version>
321 <scope>test</scope>
322 </dependency>
323 <dependency>
324 <groupId>xmlunit</groupId>
325 <artifactId>xmlunit</artifactId>
326 <version>1.4</version>
327 <scope>test</scope>
328 </dependency>
329 <dependency>
330 <groupId>org.dbunit</groupId>
331 <artifactId>dbunit</artifactId>
332 <version>2.4.9</version>
333 <scope>test</scope>
334 </dependency>
335 <dependency>
336 <groupId>commons-dbcp</groupId>
337 <artifactId>commons-dbcp</artifactId>
338 <version>1.4</version>
339 <scope>test</scope>
340 </dependency>
341 <!-- unitils dependencies - end -->
342
343 <dependency>
344 <groupId>org.slf4j</groupId>
345 <artifactId>slf4j-log4j12</artifactId>
346 <version>1.7.2</version>
347 <scope>provided</scope>
348 </dependency>
349 <dependency>
350 <groupId>org.slf4j</groupId>
351 <artifactId>slf4j-api</artifactId>
352 <version>1.7.2</version>
353 <scope>provided</scope>
354 </dependency>
355 </dependencies>
356
357 <build>
358 <plugins>
359 <plugin>
360 <groupId>org.apache.maven.plugins</groupId>
361 <artifactId>maven-compiler-plugin</artifactId>
362 <configuration>
363 <source>1.6</source>
364 <target>1.6</target>
365 </configuration>
366 </plugin>
367 <!-- As we are doing "inplace" GWT compilation, ensure the widgetset -->
368 <!-- directory is cleaned properly -->
369 <plugin>
370 <artifactId>maven-clean-plugin</artifactId>
371 <version>2.4.1</version>
372 <configuration>
373 <filesets>
374 <fileset>
375 <directory>src/main/webapp/VAADIN/widgetsets</directory>
376 </fileset>
377 </filesets>
378 </configuration>
379 </plugin>
380 <plugin>
381 <groupId>org.apache.maven.plugins</groupId>
382 <artifactId>maven-war-plugin</artifactId>
383 <version>2.2</version>
384 <configuration>
385 <failOnMissingWebXml>false</failOnMissingWebXml>
386 <warSourceExcludes>WEB-INF/*,WEB-INF/datasources/*</warSourceExcludes>
387 </configuration>
388 </plugin>
389 <plugin>
390 <groupId>com.vaadin</groupId>
391 <artifactId>vaadin-maven-plugin</artifactId>
392 <version>${vaadin.plugin.version}</version>
393 <configuration>
394 <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
395 <!-- <runTarget>mobilemail</runTarget> -->
396 <!-- We are doing "inplace" but into subdir VAADIN/widgetsets. This
397 way compatible with Vaadin eclipse plugin. -->
398 <webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets
399 </webappDirectory>
400 <hostedWebapp>${basedir}/src/main/webapp/VAADIN/widgetsets
401 </hostedWebapp>
402 <!-- Most Vaadin apps don't need this stuff, guide that to target -->
403 <persistentunitcachedir>${project.build.directory}</persistentunitcachedir>
404 <deploy>${project.build.directory}/gwt-deploy</deploy>
405 <!-- Compile report is not typically needed either, saves hunreds of
406 mb disk -->
407 <compileReport>false</compileReport>
408 <noServer>true</noServer>
409 <!-- Remove draftCompile when project is ready -->
410 <draftCompile>false</draftCompile>
411
412 <style>OBF</style>
413 <strict>true</strict>
414 <runTarget>http://localhost:8080/</runTarget>
415 </configuration>
416 <executions>
417 <execution>
418 <configuration>
419 <!-- if you don't specify any modules, the plugin will find them -->
420 <!-- <modules> <module>com.vaadin.demo.mobilemail.gwt.ColorPickerWidgetSet</module>
421 </modules> -->
422 </configuration>
423 <goals>
424 <goal>clean</goal>
425 <goal>resources</goal>
426 <goal>update-theme</goal>
427 <goal>update-widgetset</goal>
428 <goal>compile-theme</goal>
429 <goal>compile</goal>
430 </goals>
431 </execution>
432 </executions>
433 </plugin>
434
435 <!-- <plugin> -->
436 <!-- <groupId>org.eclipse.jetty</groupId> -->
437 <!-- <artifactId>jetty-maven-plugin</artifactId> -->
438 <!-- <version>9.2.3.v20140905</version> -->
439 <!-- <configuration> -->
440 <!-- <scanIntervalSeconds>10</scanIntervalSeconds> -->
441 <!-- <stopPort>8005</stopPort> -->
442 <!-- <stopKey>STOP</stopKey> -->
443 <!-- <useProvidedScope>true</useProvidedScope> -->
444 <!-- <webApp> -->
445 <!-- <descriptor>${project.basedir}/src/main/webapp/WEB-INF/web.xml</descriptor> -->
446 <!-- </webApp> -->
447 <!-- </configuration> -->
448 <!-- <executions> -->
449 <!-- <execution> -->
450 <!-- <id>start-jetty</id> -->
451 <!-- <phase>pre-integration-test</phase> -->
452 <!-- <goals> -->
453 <!-- <goal>start</goal> -->
454 <!-- </goals> -->
455 <!-- <configuration> -->
456 <!-- <scanIntervalSeconds>0</scanIntervalSeconds> -->
457 <!-- <daemon>true</daemon> -->
458 <!-- </configuration> -->
459 <!-- </execution> -->
460 <!-- <execution> -->
461 <!-- <id>stop-jetty</id> -->
462 <!-- <phase>post-integration-test</phase> -->
463 <!-- <goals> -->
464 <!-- <goal>stop</goal> -->
465 <!-- </goals> -->
466 <!-- </execution> -->
467 <!-- </executions> -->
468 <!-- </plugin> -->
469
470 <plugin>
471 <groupId>org.apache.maven.plugins</groupId>
472 <artifactId>maven-failsafe-plugin</artifactId>
473 <version>2.17</version>
474 <configuration>
475 <!-- Remove the skipTests line below to run TestBench tests -->
476 <!-- <skipTests>true</skipTests> -->
477 </configuration>
478 <executions>
479 <execution>
480 <goals>
481 <goal>integration-test</goal>
482 <goal>verify</goal>
483 </goals>
484 </execution>
485 </executions>
486 </plugin>
487
488 </plugins>
489 <extensions>
490 <extension>
491 <groupId>org.apache.maven.wagon</groupId>
492 <artifactId>wagon-scm</artifactId>
493 <version>1.0-beta-6</version>
494 </extension>
495 <extension>
496 <groupId>org.apache.maven.wagon</groupId>
497 <artifactId>wagon-ssh</artifactId>
498 <version>1.0-beta-6</version>
499 </extension>
500 <extension>
501 <groupId>org.apache.maven.wagon</groupId>
502 <artifactId>wagon-ssh-external</artifactId>
503 <version>1.0-beta-6</version>
504 </extension>
505 <extension>
506 <groupId>org.apache.maven.scm</groupId>
507 <artifactId>maven-scm-manager-plexus</artifactId>
508 <version>1.0</version>
509 </extension>
510 <extension>
511 <groupId>org.apache.maven.scm</groupId>
512 <artifactId>maven-scm-provider-svnexe</artifactId>
513 <version>1.0</version>
514 </extension>
515 <!-- WebDAV plugin to upload snapshots -->
516 <extension>
517 <groupId>org.apache.maven.wagon</groupId>
518 <artifactId>wagon-webdav</artifactId>
519 <version>1.0-beta-2</version>
520 </extension>
521 </extensions>
522 <pluginManagement>
523 <plugins>
524 <plugin>
525 <artifactId>maven-eclipse-plugin</artifactId>
526 <configuration>
527 <wtpversion>2.0</wtpversion>
528 <additionalProjectnatures>
529 <projectnature>com.vaadin.integration.eclipse.widgetsetNature</projectnature>
530 </additionalProjectnatures>
531 <additionalBuildcommands>
532 <buildcommand>com.vaadin.integration.eclipse.widgetsetBuilder</buildcommand>
533 <buildcommand>com.vaadin.integration.eclipse.addonStylesBuilder</buildcommand>
534 </additionalBuildcommands>
535 </configuration>
536 </plugin>
537 </plugins>
538 </pluginManagement>
539 </build>
540 </project>