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