fix project after dependency updates
[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-SNAPSHOT</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 <dependencies>
76 <dependency>
77 <groupId>com.vaadin</groupId>
78 <artifactId>vaadin-server</artifactId>
79 <version>${vaadin.version}</version>
80 </dependency>
81 <dependency>
82 <groupId>com.vaadin</groupId>
83 <artifactId>vaadin-client-compiled</artifactId>
84 <version>${vaadin.version}</version>
85 </dependency>
86 <!-- Needed when using the widgetset optimizer (custom ConnectorBundleLoaderFactory).
87 For widgetset compilation, vaadin-client-compiler is automatically added
88 on the compilation classpath by vaadin-maven-plugin so normally there is
89 no need for an explicit dependency. -->
90 <!-- <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-client-compiler</artifactId>
91 <version>${vaadin.version}</version> <scope>provided</scope> </dependency> -->
92 <dependency>
93 <groupId>com.vaadin</groupId>
94 <artifactId>vaadin-client</artifactId>
95 <version>${vaadin.version}</version>
96 <scope>provided</scope>
97 </dependency>
98 <!-- disabling push for the moment because it does not work with run-jetty-run
99 due to the fact that the latest (even nightly) version of run-jetty-run uses
100 9.0.0 M3 which is incompatible with atmoshpere. this does work with the jetty
101 included in this pom which is 9.2.5.xx, implying that enabling the dependency
102 and running the web app via 'mvn jetty:run' works fine. -->
103 <!-- <dependency> -->
104 <!-- <groupId>com.vaadin</groupId> -->
105 <!-- <artifactId>vaadin-push</artifactId> -->
106 <!-- <version>${vaadin.version}</version> -->
107 <!-- </dependency> -->
108 <dependency>
109 <groupId>com.vaadin</groupId>
110 <artifactId>vaadin-themes</artifactId>
111 <version>${vaadin.version}</version>
112 </dependency>
113 <dependency>
114 <groupId>javax.servlet</groupId>
115 <artifactId>javax.servlet-api</artifactId>
116 <version>3.1.0</version>
117 <scope>provided</scope>
118 </dependency>
119 <dependency>
120 <groupId>com.vaadin</groupId>
121 <artifactId>vaadin-testbench-api</artifactId>
122 <version>RELEASE</version>
123 <scope>test</scope>
124 </dependency>
125 <dependency>
126 <groupId>eu.etaxonomy</groupId>
127 <artifactId>cdmlib-services</artifactId>
128 <version>${cdmlib.version}</version>
129 <scope>provided</scope>
130 </dependency>
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 <dependency>
145 <groupId>org.springmodules</groupId>
146 <artifactId>spring-modules-cache</artifactId>
147 <version>0.7</version>
148 <exclusions>
149 <exclusion>
150 <groupId>org.springframework</groupId>
151 <artifactId>spring</artifactId>
152 </exclusion>
153 <exclusion>
154 <groupId>org.springframework</groupId>
155 <artifactId>spring-mock</artifactId>
156 </exclusion>
157 </exclusions>
158 <scope>provided</scope>
159 </dependency>
160 <dependency>
161 <groupId>com.thoughtworks.xstream</groupId>
162 <artifactId>xstream</artifactId>
163 <version>1.4.4</version>
164 <scope>provided</scope>
165 </dependency>
166 <dependency>
167 <groupId>org.springframework</groupId>
168 <artifactId>spring-mock</artifactId>
169 <version>2.0.8</version>
170 <scope>provided</scope>
171 </dependency>
172 <dependency>
173 <groupId>org.springframework</groupId>
174 <artifactId>spring-context-support</artifactId>
175 <version>${spring.version}</version>
176 <scope>provided</scope>
177 </dependency>
178 <dependency>
179 <groupId>org.springframework</groupId>
180 <artifactId>spring-web</artifactId>
181 <version>${spring.version}</version>
182 </dependency>
183 <dependency>
184 <groupId>org.springframework</groupId>
185 <artifactId>spring-webmvc</artifactId>
186 <version>${spring.version}</version>
187 </dependency>
188 <dependency>
189 <groupId>junit</groupId>
190 <artifactId>junit</artifactId>
191 <version>4.11</version>
192 <scope>test</scope>
193 </dependency>
194 <!-- vaadin addons / extensions -->
195 <dependency>
196 <groupId>org.vaadin.addons</groupId>
197 <artifactId>contextmenu</artifactId>
198 <version>4.5</version>
199 </dependency>
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 <dependency>
343 <groupId>org.slf4j</groupId>
344 <artifactId>slf4j-log4j12</artifactId>
345 <version>1.7.2</version>
346 <scope>provided</scope>
347 </dependency>
348 <dependency>
349 <groupId>org.slf4j</groupId>
350 <artifactId>slf4j-api</artifactId>
351 <version>1.7.2</version>
352 <scope>provided</scope>
353 </dependency>
354 <dependency>
355 <groupId>p6spy</groupId>
356 <artifactId>p6spy</artifactId>
357 <version>2.1.3</version>
358 <scope>test</scope>
359 </dependency>
360 <dependency>
361 <groupId>org.json</groupId>
362 <artifactId>json</artifactId>
363 <version>20151123</version>
364 </dependency>
365
366 </dependencies>
367 <profiles>
368 <profile>
369 <activation>
370 <property>
371 <name>align-cdmlib-version</name>
372 </property>
373 </activation>
374 <build>
375 <plugins>
376 <plugin>
377 <groupId>com.google.code.maven-replacer-plugin</groupId>
378 <artifactId>replacer</artifactId>
379 <version>1.5.3</version>
380 <executions>
381 <execution>
382 <phase>process-sources</phase>
383 <goals>
384 <goal>replace</goal>
385 </goals>
386 </execution>
387 </executions>
388 <configuration>
389 <file>pom.xml</file>
390 <!-- \u003C = < , \u003E = > -->
391 <token>(\u003Ccdmlib\.version\u003E)[^\u003C]*</token>
392 <value>$1${project.version}</value>
393 </configuration>
394 </plugin>
395 </plugins>
396 </build>
397 </profile>
398 </profiles>
399 <build>
400 <plugins>
401 <plugin>
402 <groupId>org.apache.maven.plugins</groupId>
403 <artifactId>maven-compiler-plugin</artifactId>
404 <version>3.3</version>
405 <configuration>
406 <source>1.7</source>
407 <target>1.7</target>
408 <encoding>UTF-8</encoding>
409 </configuration>
410 </plugin>
411 <plugin>
412 <groupId>org.apache.maven.plugins</groupId>
413 <artifactId>maven-surefire-plugin</artifactId>
414 <configuration>
415 <argLine>-Xms256m -Xmx512m</argLine>
416 </configuration>
417 </plugin>
418 <!-- As we are doing "inplace" GWT compilation, ensure the widgetset -->
419 <!-- directory is cleaned properly -->
420 <plugin>
421 <artifactId>maven-clean-plugin</artifactId>
422 <version>2.4.1</version>
423 <configuration>
424 <filesets>
425 <fileset>
426 <directory>src/main/webapp/VAADIN/widgetsets</directory>
427 </fileset>
428 </filesets>
429 </configuration>
430 </plugin>
431 <plugin>
432 <groupId>org.apache.maven.plugins</groupId>
433 <artifactId>maven-war-plugin</artifactId>
434 <version>2.2</version>
435 <configuration>
436 <failOnMissingWebXml>false</failOnMissingWebXml>
437 <warSourceExcludes>WEB-INF/*,WEB-INF/datasources/*</warSourceExcludes>
438 </configuration>
439 </plugin>
440 <plugin>
441 <groupId>com.vaadin</groupId>
442 <artifactId>vaadin-maven-plugin</artifactId>
443 <version>${vaadin.plugin.version}</version>
444 <configuration>
445 <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
446 <!-- <runTarget>mobilemail</runTarget> -->
447 <!-- We are doing "inplace" but into subdir VAADIN/widgetsets.
448 This way compatible with Vaadin eclipse plugin. -->
449 <webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets
450 </webappDirectory>
451 <hostedWebapp>${basedir}/src/main/webapp/VAADIN/widgetsets
452 </hostedWebapp>
453 <!-- Most Vaadin apps don't need this stuff, guide that to target -->
454 <persistentunitcachedir>${project.build.directory}</persistentunitcachedir>
455 <deploy>${project.build.directory}/gwt-deploy</deploy>
456 <!-- Compile report is not typically needed either, saves hunreds
457 of mb disk -->
458 <compileReport>false</compileReport>
459 <noServer>true</noServer>
460 <!-- Remove draftCompile when project is ready -->
461 <draftCompile>false</draftCompile>
462 <style>OBF</style>
463 <strict>true</strict>
464 <runTarget>http://localhost:8080/</runTarget>
465 </configuration>
466 <executions>
467 <execution>
468 <configuration>
469 <!-- if you don't specify any modules, the plugin will find
470 them -->
471 <!-- <modules> <module>com.vaadin.demo.mobilemail.gwt.ColorPickerWidgetSet</module>
472 </modules> -->
473 </configuration>
474 <goals>
475 <goal>clean</goal>
476 <goal>resources</goal>
477 <goal>update-theme</goal>
478 <goal>update-widgetset</goal>
479 <goal>compile-theme</goal>
480 <goal>compile</goal>
481 </goals>
482 </execution>
483 </executions>
484 </plugin>
485 <!-- <plugin> -->
486 <!-- <groupId>org.eclipse.jetty</groupId> -->
487 <!-- <artifactId>jetty-maven-plugin</artifactId> -->
488 <!-- <version>9.2.3.v20140905</version> -->
489 <!-- <configuration> -->
490 <!-- <scanIntervalSeconds>10</scanIntervalSeconds> -->
491 <!-- <stopPort>8005</stopPort> -->
492 <!-- <stopKey>STOP</stopKey> -->
493 <!-- <useProvidedScope>true</useProvidedScope> -->
494 <!-- <webApp> -->
495 <!-- <descriptor>${project.basedir}/src/main/webapp/WEB-INF/web.xml</descriptor> -->
496 <!-- </webApp> -->
497 <!-- </configuration> -->
498 <!-- <executions> -->
499 <!-- <execution> -->
500 <!-- <id>start-jetty</id> -->
501 <!-- <phase>pre-integration-test</phase> -->
502 <!-- <goals> -->
503 <!-- <goal>start</goal> -->
504 <!-- </goals> -->
505 <!-- <configuration> -->
506 <!-- <scanIntervalSeconds>0</scanIntervalSeconds> -->
507 <!-- <daemon>true</daemon> -->
508 <!-- </configuration> -->
509 <!-- </execution> -->
510 <!-- <execution> -->
511 <!-- <id>stop-jetty</id> -->
512 <!-- <phase>post-integration-test</phase> -->
513 <!-- <goals> -->
514 <!-- <goal>stop</goal> -->
515 <!-- </goals> -->
516 <!-- </execution> -->
517 <!-- </executions> -->
518 <!-- </plugin> -->
519 <plugin>
520 <groupId>org.apache.maven.plugins</groupId>
521 <artifactId>maven-failsafe-plugin</artifactId>
522 <version>2.17</version>
523 <configuration>
524 <!-- Remove the skipTests line below to run TestBench tests -->
525 <!-- <skipTests>true</skipTests> -->
526 </configuration>
527 <executions>
528 <execution>
529 <goals>
530 <goal>integration-test</goal>
531 <goal>verify</goal>
532 </goals>
533 </execution>
534 </executions>
535 </plugin>
536 <plugin>
537 <groupId>external.atlassian.jgitflow</groupId>
538 <artifactId>jgitflow-maven-plugin</artifactId>
539 <version>1.0-m6</version>
540 <configuration>
541 <pushHotfixes>true</pushHotfixes>
542 <pushReleases>true</pushReleases>
543 <enableSshAgent>true</enableSshAgent>
544 <allowSnapshots>true</allowSnapshots>
545 <allowUntracked>true</allowUntracked>
546 </configuration>
547 <dependencies>
548 <!--
549 upgrading dependency jsch.agent.version of jgit-flow plugin to 0.1.53
550 in order have ssl key exchange algorithms compatible with openssh 6.7
551 -->
552 <dependency>
553 <groupId>com.jcraft</groupId>
554 <artifactId>jsch</artifactId>
555 <version>0.1.53</version>
556 </dependency>
557 </dependencies>
558 </plugin>
559 </plugins>
560 <extensions>
561 <extension>
562 <groupId>org.apache.maven.wagon</groupId>
563 <artifactId>wagon-scm</artifactId>
564 <version>1.0-beta-6</version>
565 </extension>
566 <extension>
567 <groupId>org.apache.maven.wagon</groupId>
568 <artifactId>wagon-ssh</artifactId>
569 <version>1.0-beta-6</version>
570 </extension>
571 <extension>
572 <groupId>org.apache.maven.wagon</groupId>
573 <artifactId>wagon-ssh-external</artifactId>
574 <version>1.0-beta-6</version>
575 </extension>
576 <extension>
577 <groupId>org.apache.maven.scm</groupId>
578 <artifactId>maven-scm-manager-plexus</artifactId>
579 <version>1.0</version>
580 </extension>
581 <extension>
582 <groupId>org.apache.maven.scm</groupId>
583 <artifactId>maven-scm-provider-svnexe</artifactId>
584 <version>1.0</version>
585 </extension>
586 <!-- WebDAV plugin to upload snapshots -->
587 <extension>
588 <groupId>org.apache.maven.wagon</groupId>
589 <artifactId>wagon-webdav</artifactId>
590 <version>1.0-beta-2</version>
591 </extension>
592 </extensions>
593 <pluginManagement>
594 <plugins>
595 <plugin>
596 <artifactId>maven-eclipse-plugin</artifactId>
597 <configuration>
598 <wtpversion>2.0</wtpversion>
599 <additionalProjectnatures>
600 <projectnature>com.vaadin.integration.eclipse.widgetsetNature</projectnature>
601 </additionalProjectnatures>
602 <additionalBuildcommands>
603 <buildcommand>com.vaadin.integration.eclipse.widgetsetBuilder</buildcommand>
604 <buildcommand>com.vaadin.integration.eclipse.addonStylesBuilder</buildcommand>
605 </additionalBuildcommands>
606 </configuration>
607 </plugin>
608 </plugins>
609 </pluginManagement>
610 </build>
611 </project>