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