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