pushing project and cdm* dependencies to 4.0.0-SNAPSHOT
[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.3.5</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>3.2.2.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>org.springframework.web</artifactId>
181 <version>${spring.version}</version>
182 <scope>provided</scope>
183 </dependency>
184 <dependency>
185 <groupId>org.springframework</groupId>
186 <artifactId>org.springframework.web.servlet</artifactId>
187 <version>${spring.version}</version>
188 <scope>provided</scope>
189 </dependency>
190 <dependency>
191 <groupId>junit</groupId>
192 <artifactId>junit</artifactId>
193 <version>4.11</version>
194 <scope>test</scope>
195 </dependency>
196 <!-- vaadin addons / extensions -->
197 <dependency>
198 <groupId>org.vaadin.addons</groupId>
199 <artifactId>contextmenu</artifactId>
200 <version>4.5</version>
201 </dependency>
202 <!-- unitils dependencies - start -->
203 <dependency>
204 <groupId>org.unitils</groupId>
205 <artifactId>unitils-core</artifactId>
206 <version>${unitils.version}</version>
207 <scope>test</scope>
208 </dependency>
209 <dependency>
210 <groupId>org.unitils</groupId>
211 <artifactId>unitils-database</artifactId>
212 <version>${unitils.version}</version>
213 <scope>test</scope>
214 <exclusions>
215 <exclusion>
216 <groupId>org.springframework</groupId>
217 <artifactId>spring-jdbc</artifactId>
218 </exclusion>
219 </exclusions>
220 </dependency>
221 <dependency>
222 <groupId>org.unitils</groupId>
223 <artifactId>unitils-dbmaintainer</artifactId>
224 <version>${unitils.version}</version>
225 <scope>test</scope>
226 <exclusions>
227 <exclusion>
228 <groupId>org.hibernate</groupId>
229 <artifactId>hibernate</artifactId>
230 </exclusion>
231 </exclusions>
232 </dependency>
233 <dependency>
234 <groupId>org.unitils</groupId>
235 <artifactId>unitils-dbunit</artifactId>
236 <version>${unitils.version}</version>
237 <scope>test</scope>
238 <exclusions>
239 <exclusion>
240 <groupId>org.springframework</groupId>
241 <artifactId>spring-core</artifactId>
242 </exclusion>
243 <exclusion>
244 <groupId>org.springframework</groupId>
245 <artifactId>spring-jdbc</artifactId>
246 </exclusion>
247 <exclusion>
248 <groupId>org.springframework</groupId>
249 <artifactId>spring-beans</artifactId>
250 </exclusion>
251 </exclusions>
252 </dependency>
253 <dependency>
254 <groupId>org.unitils</groupId>
255 <artifactId>unitils-easymock</artifactId>
256 <version>${unitils.version}</version>
257 <scope>test</scope>
258 </dependency>
259 <dependency>
260 <groupId>org.unitils</groupId>
261 <artifactId>unitils-mock</artifactId>
262 <version>${unitils.version}</version>
263 <scope>test</scope>
264 </dependency>
265 <dependency>
266 <groupId>org.unitils</groupId>
267 <artifactId>unitils-inject</artifactId>
268 <version>${unitils.version}</version>
269 <scope>test</scope>
270 </dependency>
271 <dependency>
272 <groupId>org.unitils</groupId>
273 <artifactId>unitils-orm</artifactId>
274 <version>${unitils.version}</version>
275 <scope>test</scope>
276 <exclusions>
277 <exclusion>
278 <groupId>org.springframework</groupId>
279 <artifactId>spring-context</artifactId>
280 </exclusion>
281 <exclusion>
282 <groupId>org.springframework</groupId>
283 <artifactId>spring-orm</artifactId>
284 </exclusion>
285 <exclusion>
286 <groupId>javax.persistence</groupId>
287 <artifactId>persistence-api</artifactId>
288 </exclusion>
289 </exclusions>
290 </dependency>
291 <dependency>
292 <groupId>org.unitils</groupId>
293 <artifactId>unitils-spring</artifactId>
294 <version>${unitils.version}</version>
295 <scope>test</scope>
296 <exclusions>
297 <exclusion>
298 <groupId>org.springframework</groupId>
299 <artifactId>spring-core</artifactId>
300 </exclusion>
301 <exclusion>
302 <groupId>org.springframework</groupId>
303 <artifactId>spring-context</artifactId>
304 </exclusion>
305 <exclusion>
306 <groupId>org.springframework</groupId>
307 <artifactId>spring-beans</artifactId>
308 </exclusion>
309 <exclusion>
310 <groupId>org.springframework</groupId>
311 <artifactId>spring-test</artifactId>
312 </exclusion>
313 <exclusion>
314 <groupId>org.springframework</groupId>
315 <artifactId>spring-tx</artifactId>
316 </exclusion>
317 </exclusions>
318 </dependency>
319 <dependency>
320 <groupId>org.easymock</groupId>
321 <artifactId>easymock</artifactId>
322 <version>3.1</version>
323 <scope>test</scope>
324 </dependency>
325 <dependency>
326 <groupId>xmlunit</groupId>
327 <artifactId>xmlunit</artifactId>
328 <version>1.4</version>
329 <scope>test</scope>
330 </dependency>
331 <dependency>
332 <groupId>org.dbunit</groupId>
333 <artifactId>dbunit</artifactId>
334 <version>2.4.9</version>
335 <scope>test</scope>
336 </dependency>
337 <dependency>
338 <groupId>commons-dbcp</groupId>
339 <artifactId>commons-dbcp</artifactId>
340 <version>1.4</version>
341 <scope>test</scope>
342 </dependency>
343 <!-- unitils dependencies - end -->
344 <dependency>
345 <groupId>org.slf4j</groupId>
346 <artifactId>slf4j-log4j12</artifactId>
347 <version>1.7.2</version>
348 <scope>provided</scope>
349 </dependency>
350 <dependency>
351 <groupId>org.slf4j</groupId>
352 <artifactId>slf4j-api</artifactId>
353 <version>1.7.2</version>
354 <scope>provided</scope>
355 </dependency>
356 <dependency>
357 <groupId>p6spy</groupId>
358 <artifactId>p6spy</artifactId>
359 <version>2.1.3</version>
360 <scope>test</scope>
361 </dependency>
362 </dependencies>
363 <profiles>
364 <profile>
365 <activation>
366 <property>
367 <name>align-cdmlib-version</name>
368 </property>
369 </activation>
370 <build>
371 <plugins>
372 <plugin>
373 <groupId>com.google.code.maven-replacer-plugin</groupId>
374 <artifactId>replacer</artifactId>
375 <version>1.5.3</version>
376 <executions>
377 <execution>
378 <phase>process-sources</phase>
379 <goals>
380 <goal>replace</goal>
381 </goals>
382 </execution>
383 </executions>
384 <configuration>
385 <file>pom.xml</file>
386 <!-- \u003C = < , \u003E = > -->
387 <token>(\u003Ccdmlib\.version\u003E)[^\u003C]*</token>
388 <value>$1${project.version}</value>
389 </configuration>
390 </plugin>
391 </plugins>
392 </build>
393 </profile>
394 </profiles>
395 <build>
396 <plugins>
397 <plugin>
398 <groupId>org.apache.maven.plugins</groupId>
399 <artifactId>maven-compiler-plugin</artifactId>
400 <version>3.3</version>
401 <configuration>
402 <source>1.7</source>
403 <target>1.7</target>
404 <encoding>UTF-8</encoding>
405 </configuration>
406 </plugin>
407 <plugin>
408 <groupId>org.apache.maven.plugins</groupId>
409 <artifactId>maven-surefire-plugin</artifactId>
410 <configuration>
411 <argLine>-Xms256m -Xmx512m</argLine>
412 </configuration>
413 </plugin>
414 <!-- As we are doing "inplace" GWT compilation, ensure the widgetset -->
415 <!-- directory is cleaned properly -->
416 <plugin>
417 <artifactId>maven-clean-plugin</artifactId>
418 <version>2.4.1</version>
419 <configuration>
420 <filesets>
421 <fileset>
422 <directory>src/main/webapp/VAADIN/widgetsets</directory>
423 </fileset>
424 </filesets>
425 </configuration>
426 </plugin>
427 <plugin>
428 <groupId>org.apache.maven.plugins</groupId>
429 <artifactId>maven-war-plugin</artifactId>
430 <version>2.2</version>
431 <configuration>
432 <failOnMissingWebXml>false</failOnMissingWebXml>
433 <warSourceExcludes>WEB-INF/*,WEB-INF/datasources/*</warSourceExcludes>
434 </configuration>
435 </plugin>
436 <plugin>
437 <groupId>com.vaadin</groupId>
438 <artifactId>vaadin-maven-plugin</artifactId>
439 <version>${vaadin.plugin.version}</version>
440 <configuration>
441 <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
442 <!-- <runTarget>mobilemail</runTarget> -->
443 <!-- We are doing "inplace" but into subdir VAADIN/widgetsets.
444 This way compatible with Vaadin eclipse plugin. -->
445 <webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets
446 </webappDirectory>
447 <hostedWebapp>${basedir}/src/main/webapp/VAADIN/widgetsets
448 </hostedWebapp>
449 <!-- Most Vaadin apps don't need this stuff, guide that to target -->
450 <persistentunitcachedir>${project.build.directory}</persistentunitcachedir>
451 <deploy>${project.build.directory}/gwt-deploy</deploy>
452 <!-- Compile report is not typically needed either, saves hunreds
453 of mb disk -->
454 <compileReport>false</compileReport>
455 <noServer>true</noServer>
456 <!-- Remove draftCompile when project is ready -->
457 <draftCompile>false</draftCompile>
458 <style>OBF</style>
459 <strict>true</strict>
460 <runTarget>http://localhost:8080/</runTarget>
461 </configuration>
462 <executions>
463 <execution>
464 <configuration>
465 <!-- if you don't specify any modules, the plugin will find
466 them -->
467 <!-- <modules> <module>com.vaadin.demo.mobilemail.gwt.ColorPickerWidgetSet</module>
468 </modules> -->
469 </configuration>
470 <goals>
471 <goal>clean</goal>
472 <goal>resources</goal>
473 <goal>update-theme</goal>
474 <goal>update-widgetset</goal>
475 <goal>compile-theme</goal>
476 <goal>compile</goal>
477 </goals>
478 </execution>
479 </executions>
480 </plugin>
481 <!-- <plugin> -->
482 <!-- <groupId>org.eclipse.jetty</groupId> -->
483 <!-- <artifactId>jetty-maven-plugin</artifactId> -->
484 <!-- <version>9.2.3.v20140905</version> -->
485 <!-- <configuration> -->
486 <!-- <scanIntervalSeconds>10</scanIntervalSeconds> -->
487 <!-- <stopPort>8005</stopPort> -->
488 <!-- <stopKey>STOP</stopKey> -->
489 <!-- <useProvidedScope>true</useProvidedScope> -->
490 <!-- <webApp> -->
491 <!-- <descriptor>${project.basedir}/src/main/webapp/WEB-INF/web.xml</descriptor> -->
492 <!-- </webApp> -->
493 <!-- </configuration> -->
494 <!-- <executions> -->
495 <!-- <execution> -->
496 <!-- <id>start-jetty</id> -->
497 <!-- <phase>pre-integration-test</phase> -->
498 <!-- <goals> -->
499 <!-- <goal>start</goal> -->
500 <!-- </goals> -->
501 <!-- <configuration> -->
502 <!-- <scanIntervalSeconds>0</scanIntervalSeconds> -->
503 <!-- <daemon>true</daemon> -->
504 <!-- </configuration> -->
505 <!-- </execution> -->
506 <!-- <execution> -->
507 <!-- <id>stop-jetty</id> -->
508 <!-- <phase>post-integration-test</phase> -->
509 <!-- <goals> -->
510 <!-- <goal>stop</goal> -->
511 <!-- </goals> -->
512 <!-- </execution> -->
513 <!-- </executions> -->
514 <!-- </plugin> -->
515 <plugin>
516 <groupId>org.apache.maven.plugins</groupId>
517 <artifactId>maven-failsafe-plugin</artifactId>
518 <version>2.17</version>
519 <configuration>
520 <!-- Remove the skipTests line below to run TestBench tests -->
521 <!-- <skipTests>true</skipTests> -->
522 </configuration>
523 <executions>
524 <execution>
525 <goals>
526 <goal>integration-test</goal>
527 <goal>verify</goal>
528 </goals>
529 </execution>
530 </executions>
531 </plugin>
532 <plugin>
533 <groupId>external.atlassian.jgitflow</groupId>
534 <artifactId>jgitflow-maven-plugin</artifactId>
535 <version>1.0-m6</version>
536 <configuration>
537 <pushHotfixes>true</pushHotfixes>
538 <pushReleases>true</pushReleases>
539 <enableSshAgent>true</enableSshAgent>
540 <allowSnapshots>true</allowSnapshots>
541 <allowUntracked>true</allowUntracked>
542 </configuration>
543 <dependencies>
544 <!--
545 upgrading dependency jsch.agent.version of jgit-flow plugin to 0.1.53
546 in order have ssl key exchange algorithms compatible with openssh 6.7
547 -->
548 <dependency>
549 <groupId>com.jcraft</groupId>
550 <artifactId>jsch</artifactId>
551 <version>0.1.53</version>
552 </dependency>
553 </dependencies>
554 </plugin>
555 </plugins>
556 <extensions>
557 <extension>
558 <groupId>org.apache.maven.wagon</groupId>
559 <artifactId>wagon-scm</artifactId>
560 <version>1.0-beta-6</version>
561 </extension>
562 <extension>
563 <groupId>org.apache.maven.wagon</groupId>
564 <artifactId>wagon-ssh</artifactId>
565 <version>1.0-beta-6</version>
566 </extension>
567 <extension>
568 <groupId>org.apache.maven.wagon</groupId>
569 <artifactId>wagon-ssh-external</artifactId>
570 <version>1.0-beta-6</version>
571 </extension>
572 <extension>
573 <groupId>org.apache.maven.scm</groupId>
574 <artifactId>maven-scm-manager-plexus</artifactId>
575 <version>1.0</version>
576 </extension>
577 <extension>
578 <groupId>org.apache.maven.scm</groupId>
579 <artifactId>maven-scm-provider-svnexe</artifactId>
580 <version>1.0</version>
581 </extension>
582 <!-- WebDAV plugin to upload snapshots -->
583 <extension>
584 <groupId>org.apache.maven.wagon</groupId>
585 <artifactId>wagon-webdav</artifactId>
586 <version>1.0-beta-2</version>
587 </extension>
588 </extensions>
589 <pluginManagement>
590 <plugins>
591 <plugin>
592 <artifactId>maven-eclipse-plugin</artifactId>
593 <configuration>
594 <wtpversion>2.0</wtpversion>
595 <additionalProjectnatures>
596 <projectnature>com.vaadin.integration.eclipse.widgetsetNature</projectnature>
597 </additionalProjectnatures>
598 <additionalBuildcommands>
599 <buildcommand>com.vaadin.integration.eclipse.widgetsetBuilder</buildcommand>
600 <buildcommand>com.vaadin.integration.eclipse.addonStylesBuilder</buildcommand>
601 </additionalBuildcommands>
602 </configuration>
603 </plugin>
604 </plugins>
605 </pluginManagement>
606 </build>
607 </project>