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>4.4.0-SNAPSHOT
</version>
9 <name>Vaadin Web Application
</name>
11 <project.build.sourceEncoding
>UTF-
8</project.build.sourceEncoding
>
12 <vaadin.version
>7.6.3</vaadin.version
>
13 <vaadin.plugin.version
>${vaadin.version}
</vaadin.plugin.version
>
14 <cdmlib.version
>4.4.0-SNAPSHOT
</cdmlib.version
>
15 <unitils.version
>3.4.2</unitils.version
>
16 <spring.version
>4.2.4.RELEASE
</spring.version
>
18 lucene.version must match the version as defined in cdmlib
20 <lucene.version
>5.4.1</lucene.version
>
21 <maven.compiler.source
>1.8</maven.compiler.source
>
22 <maven.compiler.target
>1.8</maven.compiler.target
>
28 <!-- the cdm internal repository -->
30 <id>EditRepository
</id>
31 <url>http://wp5.e-taxonomy.eu/mavenrepo/
</url>
33 <!-- current spring source repositories -->
35 <id>SpringSource Enterprise Bundle Repository - External Bundle Milestones
</id>
36 <url>http://repository.springsource.com/maven/bundles/milestone
</url>
39 <id>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases
</id>
40 <url>http://repository.springsource.com/maven/bundles/release
</url>
43 <id>SpringSource Enterprise Bundle Repository - External Bundle Releases
</id>
44 <url>http://repository.springsource.com/maven/bundles/external
</url>
47 <id>vaadin-addons
</id>
48 <url>http://maven.vaadin.com/vaadin-addons
</url>
51 <id>vaadin-snapshots
</id>
52 <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/
</url>
54 <enabled>false
</enabled>
57 <enabled>true
</enabled>
64 <id>vaadin-snapshots
</id>
65 <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/
</url>
67 <enabled>false
</enabled>
70 <enabled>true
</enabled>
75 <dependencyManagement>
78 <groupId>com.vaadin
</groupId>
79 <artifactId>vaadin-bom
</artifactId>
80 <version>${vaadin.version}
</version>
85 </dependencyManagement>
87 <distributionManagement>
89 <uniqueVersion>false
</uniqueVersion>
90 <id>wp5.e-taxonomy.eu
</id>
91 <name>Edit Maven Repository
</name>
92 <url>scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/mavenrepo/
</url>
93 <layout>default
</layout>
95 </distributionManagement>
100 <name>align-cdmlib-version
</name>
106 <groupId>com.google.code.maven-replacer-plugin
</groupId>
107 <artifactId>replacer
</artifactId>
108 <version>1.5.3</version>
111 <phase>process-sources
</phase>
119 <!-- \u003C = < , \u003E = > -->
120 <token>(\u003Ccdmlib\.version\u003E)[^\u003C]*
</token>
121 <value>$
1${project.version}
</value>
131 <!-- replace the place holders like ${...} in datasources.xml -->
132 <filtering>true
</filtering>
133 <directory>src/test/resources
</directory>
134 <targetPath>../test-classes
</targetPath>
136 <include>datasources.xml
</include>
140 <!-- all other test resources without filtering -->
141 <directory>src/test/resources
</directory>
142 <targetPath>../test-classes
</targetPath>
144 <exclude>datasources.xml
</exclude>
148 <!-- all main resources without filtering -->
149 <directory>src/main/resources
</directory>
154 <groupId>org.apache.maven.plugins
</groupId>
155 <artifactId>maven-compiler-plugin
</artifactId>
156 <version>3.3</version>
158 <source>${maven.compiler.source}
</source>
159 <target>${maven.compiler.target}
</target>
160 <encoding>UTF-
8</encoding>
164 <groupId>org.apache.maven.plugins
</groupId>
165 <artifactId>maven-surefire-plugin
</artifactId>
166 <version>2.19.1</version>
168 <argLine>-Xms256m -Xmx512m
</argLine>
171 <!-- As we are doing "inplace" GWT compilation, ensure the widgetset -->
172 <!-- directory is cleaned properly -->
174 <artifactId>maven-clean-plugin
</artifactId>
175 <version>2.4.1</version>
179 <directory>src/main/webapp/VAADIN/widgetsets
</directory>
185 <groupId>org.apache.maven.plugins
</groupId>
186 <artifactId>maven-war-plugin
</artifactId>
187 <version>2.2</version>
189 <failOnMissingWebXml>false
</failOnMissingWebXml>
190 <warSourceExcludes>WEB-INF/*,WEB-INF/datasources/*
</warSourceExcludes>
194 <groupId>com.vaadin
</groupId>
195 <artifactId>vaadin-maven-plugin
</artifactId>
196 <version>${vaadin.plugin.version}
</version>
198 <extraJvmArgs>-Xmx512M -Xss1024k
</extraJvmArgs>
199 <!-- <runTarget>mobilemail</runTarget> -->
200 <!-- We are doing "inplace" but into subdir VAADIN/widgetsets.
201 This way compatible with Vaadin eclipse plugin. -->
202 <webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets
</webappDirectory>
203 <hostedWebapp>${basedir}/src/main/webapp/VAADIN/widgetsets
</hostedWebapp>
204 <!-- Most Vaadin apps don't need this stuff, guide that to target -->
205 <persistentunitcachedir>${project.build.directory}
</persistentunitcachedir>
206 <deploy>${project.build.directory}/gwt-deploy
</deploy>
207 <!-- Compile report is not typically needed either, saves hunreds
209 <compileReport>false
</compileReport>
210 <noServer>true
</noServer>
211 <!-- Remove draftCompile when project is ready -->
212 <draftCompile>false
</draftCompile>
214 <strict>true
</strict>
215 <runTarget>http://localhost:
8080/
</runTarget>
220 <!-- if you don't specify any modules, the plugin will find
222 <!-- <modules> <module>com.vaadin.demo.mobilemail.gwt.ColorPickerWidgetSet</module>
227 <goal>resources
</goal>
228 <goal>update-theme
</goal>
229 <goal>update-widgetset
</goal>
230 <goal>compile-theme
</goal>
237 <groupId>org.eclipse.jetty
</groupId>
238 <artifactId>jetty-maven-plugin
</artifactId>
239 <version>9.4.0.RC1
</version>
242 9.4.0.RC1 requires jdk 1.8, formerly we've been using version 9.1.3.v20140225 which was
243 the last version compatible to java 7, but this was causing other problems related to asm
244 which could not be easily solved.
247 <useTestScope>true
</useTestScope>
248 <scanIntervalSeconds>2</scanIntervalSeconds>
252 <name>cdm.datasource
</name>
253 <value>h2_cdmTest
</value>
257 The lucene index should be placed into the target folder,
258 so user.home needs to be set to this folder. user.home needs to be overridden
259 since it already exists, thus the force option is turned on above
261 <name>user.home
</name>
262 <value>${basedir}/target/
</value>
266 datasources.xml is prepared by <plugins><resources>..</resources> above
268 <name>cdm.beanDefinitionFile
</name>
269 <value>${project.build.directory}/test-classes/datasources.xml
</value>
272 <name>log4j.configuration
</name>
273 <value>file:///home/andreas/.cdmLibrary/log4j.properties
</value>
279 <groupId>org.slf4j
</groupId>
280 <artifactId>slf4j-log4j12
</artifactId>
281 <version>1.6.4</version>
286 <groupId>org.apache.maven.plugins
</groupId>
287 <artifactId>maven-failsafe-plugin
</artifactId>
288 <version>2.17</version>
290 <!-- Remove the skipTests line below to run TestBench tests -->
291 <!-- <skipTests>true</skipTests> -->
296 <goal>integration-test
</goal>
303 <groupId>external.atlassian.jgitflow
</groupId>
304 <artifactId>jgitflow-maven-plugin
</artifactId>
305 <version>1.0-m6
</version>
307 <pushHotfixes>true
</pushHotfixes>
308 <pushReleases>true
</pushReleases>
309 <enableSshAgent>true
</enableSshAgent>
310 <allowSnapshots>true
</allowSnapshots>
311 <allowUntracked>true
</allowUntracked>
314 <!-- upgrading dependency jsch.agent.version of jgit-flow plugin
315 to 0.1.53 in order have ssl key exchange algorithms compatible with openssh
318 <groupId>com.jcraft
</groupId>
319 <artifactId>jsch
</artifactId>
320 <version>0.1.53</version>
327 <groupId>org.apache.maven.wagon
</groupId>
328 <artifactId>wagon-scm
</artifactId>
329 <version>1.0-beta-
6</version>
332 <groupId>org.apache.maven.wagon
</groupId>
333 <artifactId>wagon-ssh
</artifactId>
334 <version>1.0-beta-
6</version>
337 <groupId>org.apache.maven.wagon
</groupId>
338 <artifactId>wagon-ssh-external
</artifactId>
339 <version>1.0-beta-
6</version>
342 <groupId>org.apache.maven.scm
</groupId>
343 <artifactId>maven-scm-manager-plexus
</artifactId>
344 <version>1.0</version>
347 <groupId>org.apache.maven.scm
</groupId>
348 <artifactId>maven-scm-provider-svnexe
</artifactId>
349 <version>1.0</version>
351 <!-- WebDAV plugin to upload snapshots -->
353 <groupId>org.apache.maven.wagon
</groupId>
354 <artifactId>wagon-webdav
</artifactId>
355 <version>1.0-beta-
2</version>
361 <artifactId>maven-eclipse-plugin
</artifactId>
363 <wtpversion>2.0</wtpversion>
364 <additionalProjectnatures>
365 <projectnature>com.vaadin.integration.eclipse.widgetsetNature
</projectnature>
366 </additionalProjectnatures>
367 <additionalBuildcommands>
368 <buildcommand>com.vaadin.integration.eclipse.widgetsetBuilder
</buildcommand>
369 <buildcommand>com.vaadin.integration.eclipse.addonStylesBuilder
</buildcommand>
370 </additionalBuildcommands>
378 <groupId>com.vaadin
</groupId>
379 <artifactId>vaadin-server
</artifactId>
380 <version>${vaadin.version}
</version>
383 <groupId>com.vaadin
</groupId>
384 <artifactId>vaadin-client-compiled
</artifactId>
385 <version>${vaadin.version}
</version>
387 <!-- Needed when using the widgetset optimizer (custom ConnectorBundleLoaderFactory).
388 For widgetset compilation, vaadin-client-compiler is automatically added
389 on the compilation classpath by vaadin-maven-plugin so normally there is
390 no need for an explicit dependency. -->
391 <!-- <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-client-compiler</artifactId>
392 <version>${vaadin.version}</version> <scope>provided</scope> </dependency> -->
394 <groupId>com.vaadin
</groupId>
395 <artifactId>vaadin-client
</artifactId>
396 <version>${vaadin.version}
</version>
399 <!-- disabling push for the moment because it does not work with run-jetty-run
400 due to the fact that the latest (even nightly) version of run-jetty-run uses
401 9.0.0 M3 which is incompatible with atmoshpere. this does work with the jetty
402 included in this pom which is 9.2.5.xx, implying that enabling the dependency
403 and running the web app via 'mvn jetty:run' works fine. -->
404 <!-- <dependency> -->
405 <!-- <groupId>com.vaadin</groupId> -->
406 <!-- <artifactId>vaadin-push</artifactId> -->
407 <!-- <version>${vaadin.version}</version> -->
408 <!-- </dependency> -->
410 <groupId>com.vaadin
</groupId>
411 <artifactId>vaadin-themes
</artifactId>
412 <version>${vaadin.version}
</version>
415 <groupId>javax.servlet
</groupId>
416 <artifactId>javax.servlet-api
</artifactId>
417 <version>3.1.0</version>
418 <scope>provided
</scope>
421 <groupId>com.vaadin
</groupId>
422 <artifactId>vaadin-testbench-api
</artifactId>
423 <version>RELEASE
</version>
427 <groupId>eu.etaxonomy
</groupId>
428 <artifactId>cdmlib-services
</artifactId>
429 <version>${cdmlib.version}
</version>
430 <scope>compile
</scope>
433 <groupId>eu.etaxonomy
</groupId>
434 <artifactId>cdmlib-test
</artifactId>
435 <version>${cdmlib.version}
</version>
439 <groupId>eu.etaxonomy
</groupId>
440 <artifactId>cdmlib-db
</artifactId>
441 <version>${cdmlib.version}
</version>
445 <!-- adding itextpdf is required to fix dependency problems: itextpdf
446 is an managed transitive dependency of cdmlib-io without adding it here mvn
447 fails. Ev. this should be fixed by changing its scope in cdmlib-io to the
449 <groupId>com.itextpdf
</groupId>
450 <artifactId>itextpdf
</artifactId>
451 <version>5.5.8</version>
454 <!-- to override version number coming with vaadin client -->
456 <groupId>javax.validation
</groupId>
457 <artifactId>validation-api
</artifactId>
458 <version>1.1.0.Final
</version>
461 <groupId>org.springmodules
</groupId>
462 <artifactId>spring-modules-cache
</artifactId>
463 <version>0.7</version>
466 <groupId>org.springframework
</groupId>
467 <artifactId>spring
</artifactId>
470 <groupId>org.springframework
</groupId>
471 <artifactId>spring-mock
</artifactId>
477 <groupId>com.thoughtworks.xstream
</groupId>
478 <artifactId>xstream
</artifactId>
479 <version>1.4.7</version>
484 provides the spring-tx-4.0.xsd which is otherwise missing and
485 breaking the dev environment when offline
487 <groupId>org.springframework
</groupId>
488 <artifactId>spring-tx
</artifactId>
489 <version>${spring.version}
</version>
493 <groupId>org.springframework
</groupId>
494 <artifactId>spring-mock
</artifactId>
495 <version>2.0.8</version>
499 <groupId>org.springframework
</groupId>
500 <artifactId>spring-context-support
</artifactId>
501 <version>${spring.version}
</version>
505 <groupId>org.springframework
</groupId>
506 <artifactId>spring-web
</artifactId>
507 <version>${spring.version}
</version>
510 <groupId>org.springframework
</groupId>
511 <artifactId>spring-webmvc
</artifactId>
512 <version>${spring.version}
</version>
514 <!-- vaadin addons / extensions -->
516 <groupId>org.vaadin.addons
</groupId>
517 <artifactId>contextmenu
</artifactId>
518 <version>4.5</version>
521 <groupId>org.slf4j
</groupId>
522 <artifactId>slf4j-log4j12
</artifactId>
523 <version>1.7.2</version>
527 <groupId>org.slf4j
</groupId>
528 <artifactId>slf4j-api
</artifactId>
529 <version>1.7.2</version>
533 <groupId>org.json
</groupId>
534 <artifactId>json
</artifactId>
535 <version>20151123</version>
538 Need to manage the versions of these lucene artifacts
539 as hibernate-search otherwise brings incompatible versions
542 <groupId>org.apache.lucene
</groupId>
543 <artifactId>lucene-backward-codecs
</artifactId>
544 <version>${lucene.version}
</version>
547 <groupId>org.apache.lucene
</groupId>
548 <artifactId>lucene-facet
</artifactId>
549 <version>${lucene.version}
</version>