ref #9359 revert ehcache in taxeditor
[taxeditor.git] / eu.etaxonomy.taxeditor.cdmlib / 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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <parent>
5 <groupId>eu.etaxonomy</groupId>
6 <artifactId>taxeditor-parent</artifactId>
7 <version>5.32.0-SNAPSHOT</version>
8 </parent>
9 <modelVersion>4.0.0</modelVersion>
10 <artifactId>eu.etaxonomy.taxeditor.cdmlib</artifactId>
11 <packaging>eclipse-plugin</packaging>
12 <properties>
13 <jackson.version>2.13.3</jackson.version>
14 <poi.version>4.1.2</poi.version>
15 <hibernate.version>5.4.33.Final</hibernate.version>
16 <lucene.version>5.5.5</lucene.version>
17 <spring.version>4.3.30.RELEASE</spring.version> <!-- checked 2021-12, further upgrade possible -->
18 <spring-security.version>4.2.20.RELEASE</spring-security.version> <!-- checked 2021-12, further upgrade possible -->
19 <aspectj.version>1.9.7</aspectj.version>
20 </properties>
21 <name>CDM Library Dependencies Plugin</name>
22 <description>CDM Library and dependencies as a plugin</description>
23 <build>
24 <pluginManagement>
25 <plugins>
26 <plugin>
27 <groupId>org.apache.maven.plugins</groupId>
28 <artifactId>maven-surefire-plugin</artifactId>
29 <version>3.0.0-M5</version>
30 </plugin>
31 </plugins>
32 </pluginManagement>
33 <plugins>
34 <plugin>
35 <groupId>org.apache.maven.plugins</groupId>
36 <artifactId>maven-dependency-plugin</artifactId>
37 <version>3.2.0</version>
38 <executions>
39 <execution>
40 <id>copy-dependencies</id>
41 <phase>validate</phase>
42 <goals>
43 <goal>copy-dependencies</goal>
44 </goals>
45 <configuration>
46 <excludeArtifactIds>
47 cdmlib-remote-webapp
48 </excludeArtifactIds>
49 <includeArtifactIds>
50 cdmlib-commons,cdmlib-model,cdmlib-api,cdmlib-persistence,cdmlib-services,cdmlib-cache,cdmlib-ext,cdmlib-io
51 </includeArtifactIds>
52 <outputDirectory>${basedir}/lib</outputDirectory>
53 <overWriteReleases>true</overWriteReleases>
54 <overWriteSnapshots>true</overWriteSnapshots>
55 <excludeTransitive>true</excludeTransitive>
56 </configuration>
57 </execution>
58 <execution>
59 <id>copy-dependency-jars</id>
60 <phase>validate</phase>
61 <goals>
62 <goal>copy-dependencies</goal>
63 </goals>
64 <configuration>
65 <includeArtifactIds>
66 httpclient,JavaAPIforKml,iiif-apis,commons-lang3,commons-lang,commons-text,
67 commons-codec,commons-collections,commons-io,commons-logging,ezmorph,
68 hibernate-search-engine,hibernate-search-orm,itextpdf,
69 json,json-lib,log4j,lucene-analyzers-common,lucene-core,lucene-queryparser,lucene-suggest,lucene-sandbox,
70 xalan,
71 commons-imaging,jackson-databind,jackson-annotations,jackson-core,jboss-logging,
72 jakarta.validation-api,classmate,javax.el-api,slf4j-api,
73 ehcache,
74 hibernate-validator,
75 spring-context,spring-context-support,spring-aspects,spring-test,spring-beans,
76 spring-tx,spring-web,spring-core,spring-aop,spring-expression,spring-orm,
77 spring-oxm,spring-jdbc,spring-security-config,spring-security-core,
78 aopalliance,aspectjweaver,aspectjrt,
79 byte-buddy,hibernate-commons-annotations,
80 hibernate-core,hibernate-envers,antlr,cglib-nodep,
81 javax.persistence-api,
82 xml-apis,lsid-client,jdom,jdom2,
83 poi,poi-ooxml,poi-ooxml-schemas,xmlbeans,commons-collections4,commons-math3,
84 c3p0,mchange-commons-java,
85 opencsv,joda-time,usertype.core,
86 apache-log4j-extras,
87 h2,mysql-connector-java,postgresql,
88 junit,hamcrest-core,commons-dbcp,commons-pool,
89 jboss-transaction-api_1.2_spec
90 </includeArtifactIds>
91 <outputDirectory>
92 ${basedir}/lib
93 </outputDirectory>
94 <overWriteReleases>true</overWriteReleases>
95 <overWriteSnapshots>true</overWriteSnapshots>
96 <excludeTransitive>true</excludeTransitive>
97 </configuration>
98 </execution>
99 <execution>
100 <id>copy-dependency-jars-transitive</id>
101 <phase>validate</phase>
102 <goals>
103 <goal>copy-dependencies</goal>
104 </goals>
105 <configuration>
106 <includeArtifactIds>
107 httpclient-cache,httpcore,xercesImpl
108 </includeArtifactIds>
109 <outputDirectory>
110 ${basedir}/lib
111 </outputDirectory>
112 <overWriteReleases>true</overWriteReleases>
113 <overWriteSnapshots>true</overWriteSnapshots>
114 <excludeTransitive>false</excludeTransitive>
115 </configuration>
116 </execution>
117 </executions>
118 </plugin>
119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-antrun-plugin</artifactId>
122 <executions>
123 <execution>
124 <id>update-snapshot-jar-names</id>
125 <phase>validate</phase>
126 <goals>
127 <goal>run</goal>
128 </goals>
129 <configuration>
130 <target>
131 <echo>Update cdmlib jars to SNAPSHOT when build with
132 timestamp
133 </echo>
134 <move todir="./lib">
135 <fileset dir="./lib" />
136 <mapper type="regexp"
137 from="(^cdmlib\-.*\-\d+\.\d+\.\d+\-)[\d.-]+(\.jar)"
138 to="\1SNAPSHOT\2" />
139 </move>
140 <move todir="./lib">
141 <fileset dir="./lib" />
142 <mapper type="regexp"
143 from="(^cdmlib\-.*\-\d+\.\d+\.\d+\-)[\d.-]+(\-sources\.jar)"
144 to="\1SNAPSHOT\2" />
145 </move>
146 </target>
147 </configuration>
148 </execution>
149 <execution>
150 <id>remove-existing-jars</id>
151 <phase>clean</phase>
152 <goals>
153 <goal>run</goal>
154 </goals>
155 <configuration>
156 <target>
157 <echo>Remove all cdmlib jars</echo>
158 <delete>
159 <fileset dir="./lib" includes="cdmlib-*" />
160 </delete>
161 </target>
162 </configuration>
163 </execution>
164 </executions>
165 </plugin>
166 </plugins>
167 </build>
168 <profiles>
169 <profile>
170 <id>copyAllJars</id>
171 <build>
172 <plugins>
173 <plugin>
174 <groupId>org.apache.maven.plugins</groupId>
175 <artifactId>maven-dependency-plugin</artifactId>
176 <version>3.2.0</version>
177 <executions>
178 <execution>
179 <id>copy-all-dependencies</id>
180 <phase>validate</phase>
181 <goals>
182 <goal>copy-dependencies</goal>
183 </goals>
184 <configuration>
185 <excludeArtifactIds>
186 cdmlib-remote-webapp
187 </excludeArtifactIds>
188 <outputDirectory>${basedir}/lib</outputDirectory>
189 <overWriteReleases>true</overWriteReleases>
190 <overWriteSnapshots>true</overWriteSnapshots>
191 <excludeTransitive>true</excludeTransitive>
192 </configuration>
193 </execution>
194 </executions>
195 </plugin>
196 </plugins>
197 </build>
198 </profile>
199 </profiles>
200 <repositories>
201 <repository>
202 <id>SpringSource Enterprise Bundle Repository - External Bundle
203 Milestones
204 </id>
205 <url>http://repository.springsource.com/maven/bundles/milestone
206 </url>
207 </repository>
208 <repository>
209 <id>SpringSource Enterprise Bundle Repository - SpringSource
210 Bundle
211 Releases
212 </id>
213 <url>http://repository.springsource.com/maven/bundles/release
214 </url>
215 </repository>
216 <repository>
217 <id>SpringSource Enterprise Bundle Repository - External Bundle
218 Releases
219 </id>
220 <url>http://repository.springsource.com/maven/bundles/external
221 </url>
222 </repository>
223 <repository>
224 <id>repository.springsource.release</id>
225 <name>SpringSource GA Repository</name>
226 <url>https://repo.springsource.org/release</url>
227 </repository>
228 </repositories>
229 <dependencies>
230
231 <!-- direct dependencies (used within this module) -->
232
233 <!-- used e.g. in CdmApplicationRemoteConfiguration -->
234 <dependency>
235 <!-- used e.g. by CdmServiceCacher -->
236 <groupId>eu.etaxonomy</groupId>
237 <artifactId>cdmlib-cache</artifactId>
238 <version>${cdmlib.version}</version>
239 </dependency>
240 <dependency>
241 <!-- used e.g. by CdmApplicationState -->
242 <groupId>eu.etaxonomy</groupId>
243 <artifactId>cdmlib-commons</artifactId>
244 <version>${cdmlib.version}</version>
245 </dependency>
246 <dependency>
247 <!-- used e.g. by CdmChangeEvent -->
248 <groupId>eu.etaxonomy</groupId>
249 <artifactId>cdmlib-model</artifactId>
250 <version>${cdmlib.version}</version>
251 </dependency>
252 <dependency>
253 <groupId>eu.etaxonomy</groupId>
254 <artifactId>cdmlib-io</artifactId>
255 <version>${cdmlib.version}</version>
256 </dependency>
257 <dependency>
258 <groupId>eu.etaxonomy</groupId>
259 <artifactId>cdmlib-ext</artifactId>
260 <version>${cdmlib.version}</version>
261 </dependency>
262 <dependency>
263 <groupId>eu.etaxonomy</groupId>
264 <artifactId>cdmlib-persistence</artifactId>
265 <version>${cdmlib.version}</version>
266 </dependency>
267 <dependency>
268 <groupId>eu.etaxonomy</groupId>
269 <artifactId>cdmlib-services</artifactId>
270 <version>${cdmlib.version}</version>
271 </dependency>
272 <dependency>
273 <groupId>org.springframework</groupId>
274 <!-- used e.g. by CachingHttpInvokerProxyFactoryBean -->
275 <artifactId>spring-aop</artifactId>
276 <version>${spring.version}</version>
277 </dependency>
278 <dependency>
279 <groupId>org.springframework</groupId>
280 <artifactId>spring-beans</artifactId>
281 <version>${spring.version}</version>
282 </dependency>
283 <dependency>
284 <groupId>org.springframework</groupId>
285 <artifactId>spring-context</artifactId>
286 <version>${spring.version}</version>
287 </dependency>
288 <dependency>
289 <groupId>org.springframework</groupId>
290 <artifactId>spring-core</artifactId>
291 <version>${spring.version}</version>
292 </dependency>
293 <dependency>
294 <groupId>org.springframework</groupId>
295 <artifactId>spring-tx</artifactId>
296 <version>${spring.version}</version>
297 </dependency>
298 <dependency>
299 <groupId>org.springframework</groupId>
300 <artifactId>spring-web</artifactId>
301 <version>${spring.version}</version>
302 </dependency>
303 <dependency>
304 <groupId>org.springframework.security</groupId>
305 <artifactId>spring-security-core</artifactId>
306 <version>${spring-security.version}</version>
307 </dependency>
308 <dependency>
309 <!-- used e.g. by CdmLazyLoader -->
310 <groupId>org.hibernate</groupId>
311 <artifactId>hibernate-core</artifactId>
312 <version>${hibernate.version}</version>
313 </dependency>
314 <dependency>
315 <groupId>org.apache.commons</groupId>
316 <artifactId>commons-lang3</artifactId>
317 <version>3.12.0</version>
318 </dependency>
319 <dependency>
320 <!-- used e.g. by CdmServerUtils -->
321 <groupId>commons-io</groupId>
322 <artifactId>commons-io</artifactId>
323 <version>2.11.0</version>
324 </dependency>
325 <dependency>
326 <!-- used e.g. by CdmServerUtils -->
327 <groupId>org.apache.commons</groupId>
328 <artifactId>commons-text</artifactId>
329 <version>1.9</version>
330 </dependency>
331 <dependency>
332 <!-- used in AuthenticatingHttpInvokerRequestExecutor -->
333 <groupId>commons-codec</groupId>
334 <artifactId>commons-codec</artifactId>
335 <version>1.15</version>
336 </dependency>
337 <dependency>
338 <!-- TODO version -->
339 <groupId>log4j</groupId>
340 <artifactId>log4j</artifactId>
341 <version>1.2.17</version>
342 </dependency>
343 <dependency>
344 <groupId>org.aspectj</groupId>
345 <!-- used e.g. by CdmLazyLoader -->
346 <artifactId>aspectjweaver</artifactId>
347 <version>${aspectj.version}</version>
348 </dependency>
349 <dependency>
350 <groupId>org.apache.httpcomponents</groupId>
351 <artifactId>httpclient</artifactId>
352 <!-- version defined in parent pom -->
353 </dependency>
354 <dependency>
355 <!-- used e.g. by CdmServerInfo -->
356 <groupId>org.apache.httpcomponents</groupId>
357 <artifactId>httpcore</artifactId>
358 <version>4.4.15</version>
359 </dependency>
360 <dependency>
361 <!-- used e.g. by CdmServerInfo -->
362 <groupId>org.json</groupId>
363 <artifactId>json</artifactId>
364 <version>20220320</version>
365 </dependency>
366 <dependency>
367 <!-- used e.g. by CdmServerInfo -->
368 <groupId>com.fasterxml.jackson.core</groupId>
369 <artifactId>jackson-core</artifactId>
370 <version>${jackson.version}</version>
371 </dependency>
372 <dependency>
373 <!-- used e.g. by CdmServerInfo -->
374 <groupId>com.fasterxml.jackson.core</groupId>
375 <artifactId>jackson-databind</artifactId>
376 <version>${jackson.version}</version>
377 </dependency>
378 <dependency>
379 <!-- used e.g. by ICdmEntitySession -->
380 <groupId>net.sf.ehcache</groupId>
381 <artifactId>ehcache</artifactId>
382 <version>2.10.6</version>
383 </dependency>
384 <dependency>
385 <!-- used e.g. by CdmPersistentRemoteSource -->
386 <groupId>org.jdom</groupId>
387 <artifactId>jdom</artifactId>
388 <version>1.1.3</version>
389 </dependency>
390
391 <!-- indirectly used with compile error -->
392 <dependency>
393 <!-- indirectly used e.g. by AbstractPersistentCollection -->
394 <groupId>javax.persistence</groupId>
395 <artifactId>javax.persistence-api</artifactId>
396 <version>2.2</version>
397 </dependency>
398 <dependency>
399 <!-- indirectly used e.g. by AbstractPersistentCollection -->
400 <groupId>org.jboss.logging</groupId>
401 <artifactId>jboss-logging</artifactId>
402 <version>3.4.3.Final</version>
403 </dependency>
404
405 <!-- indirectly used, by other taxeditor modules -->
406 <!-- ... by taxeditor.local -->
407 <dependency>
408 <groupId>eu.etaxonomy</groupId>
409 <artifactId>cdmlib-api</artifactId>
410 <version>${cdmlib.version}</version>
411 </dependency>
412
413 <!-- ... by taxeditor.store -->
414 <dependency>
415 <groupId>joda-time</groupId>
416 <artifactId>joda-time</artifactId>
417 <version>2.10.14</version>
418 </dependency>
419 <dependency>
420 <groupId>net.sf.opencsv</groupId>
421 <artifactId>opencsv</artifactId>
422 <version>2.3</version>
423 </dependency>
424 <dependency>
425 <groupId>org.springframework</groupId>
426 <artifactId>spring-aspects</artifactId>
427 <version>${spring.version}</version>
428 </dependency>
429 <dependency>
430 <groupId>com.ibm.lsid</groupId>
431 <artifactId>lsid-client</artifactId>
432 <version>1.1.2</version>
433 </dependency>
434
435 <!-- needed by taxeditor.test during test run, maybe move to test package only -->
436 <dependency>
437 <!-- when using bytebuddy for hibernate -->
438 <groupId>net.bytebuddy</groupId>
439 <artifactId>byte-buddy</artifactId>
440 <version>1.12.10</version>
441 </dependency>
442 <dependency>
443 <!-- dependency of xerces -->
444 <groupId>xml-apis</groupId>
445 <artifactId>xml-apis</artifactId>
446 <version>1.4.01</version>
447 </dependency>
448 <!-- needed only for H2Local and unitils, move maybe to test + local together with c3p0 -->
449 <dependency>
450 <groupId>commons-pool</groupId>
451 <artifactId>commons-pool</artifactId>
452 <version>1.6</version>
453 </dependency>
454
455 <!-- For Unit Tests Start -->
456 <!-- keep junit and its dependency hamcrest here as long as each plugin
457 has its own unit tests and junit is not yet added there in a way
458 that it does not appear in production bundles -->
459 <dependency>
460 <groupId>junit</groupId>
461 <artifactId>junit</artifactId>
462 <version>4.13.2</version>
463 <scope>test</scope>
464 </dependency>
465 <dependency>
466 <groupId>org.hamcrest</groupId>
467 <artifactId>hamcrest-core</artifactId>
468 <version>1.3</version>
469 <!-- <scope>test</scope> -->
470 </dependency>
471
472 <!-- For Unit Tests End -->
473
474 <!-- required during RUNTIME -->
475
476 <dependency>
477 <!-- used e.g. by login dialog, CdmServerInfo:411 -->
478 <groupId>com.fasterxml.jackson.core</groupId>
479 <artifactId>jackson-annotations</artifactId>
480 <version>${jackson.version}</version>
481 </dependency>
482 <dependency>
483 <!-- for any transactions, e.g. when first time logging in -->
484 <groupId>org.jboss.spec.javax.transaction</groupId>
485 <artifactId>jboss-transaction-api_1.2_spec</artifactId>
486 <version>1.1.1.Final</version>
487 </dependency>
488
489 <dependency>
490 <!-- used in datasource view and in test, maybe enough if in taxeditor.local and taxeditor.test -->
491 <groupId>com.mchange</groupId>
492 <artifactId>c3p0</artifactId>
493 <version>0.9.5.2</version>
494 </dependency>
495
496 <!-- database related, should be moved to local/test when possible -->
497 <!-- only for supporting test button in datasource dialogue, dialogue should be moved to taxeditor.webapp -->
498 <dependency>
499 <groupId>mysql</groupId>
500 <artifactId>mysql-connector-java</artifactId>
501 <version>8.0.29</version>
502 </dependency>
503 <dependency>
504 <groupId>com.h2database</groupId>
505 <artifactId>h2</artifactId>
506 <version>1.4.190</version>
507 </dependency>
508 <dependency>
509 <groupId>org.postgresql</groupId>
510 <artifactId>postgresql</artifactId>
511 <version>42.3.6</version>
512 </dependency>
513
514 <!-- Only added for correct package export, but reported as needed -->
515
516 <!-- dbcp and pool needed for H2Local and unitils,
517 move to taxeditor.webapp and taxedtior.test once all db dependencies are moved to webapp-->
518 <dependency>
519 <groupId>commons-dbcp</groupId>
520 <artifactId>commons-dbcp</artifactId>
521 <version>1.4</version>
522 </dependency>
523
524 <!-- For Hibernate Mapping Start -->
525 <dependency>
526 <groupId>jakarta.validation</groupId>
527 <artifactId>jakarta.validation-api</artifactId>
528 <version>3.0.2</version>
529 </dependency>
530
531 <!-- needed at least in taxeditor.test by BundleLoader; try to move there but test carefully -->
532 <dependency>
533 <groupId>commons-lang</groupId>
534 <artifactId>commons-lang</artifactId>
535 <version>2.6</version>
536 </dependency>
537
538 <!-- poi -->
539 <!-- needed -->
540 <!-- .... -->
541 <dependency>
542 <groupId>org.apache.commons</groupId>
543 <artifactId>commons-math3</artifactId>
544 <version>3.6.1</version>
545 </dependency>
546
547 <!-- logging -->
548 <dependency>
549 <groupId>org.slf4j</groupId>
550 <artifactId>slf4j-api</artifactId>
551 <version>1.7.36</version>
552 </dependency>
553
554 <!-- Only added for correct package export -->
555 <dependency>
556 <groupId>commons-collections</groupId>
557 <artifactId>commons-collections</artifactId>
558 <version>3.2.2</version>
559 </dependency>
560 <dependency>
561 <groupId>org.apache.commons</groupId>
562 <artifactId>commons-imaging</artifactId>
563 <version>1.0-alpha3</version>
564 </dependency>
565 <dependency>
566 <groupId>net.sf.json-lib</groupId>
567 <artifactId>json-lib</artifactId>
568 <version>2.4</version>
569 <!-- classifier required as json-lib exists on maven central as json-lib-2.4-jdk15.jar and xxx-jdk13.jar, see #9887 -->
570 <classifier>jdk15</classifier>
571 </dependency>
572 <dependency>
573 <groupId>commons-logging</groupId>
574 <artifactId>commons-logging</artifactId>
575 <version>1.2</version>
576 </dependency>
577 <dependency>
578 <groupId>xerces</groupId>
579 <artifactId>xercesImpl</artifactId>
580 <version>2.12.2</version>
581 </dependency>
582 <dependency>
583 <groupId>org.hibernate.common</groupId>
584 <artifactId>hibernate-commons-annotations</artifactId>
585 <version>5.1.2.Final</version>
586 </dependency>
587 <dependency>
588 <groupId>org.hibernate</groupId>
589 <artifactId>hibernate-search-orm</artifactId>
590 <version>5.11.10.Final</version>
591 </dependency>
592 <dependency>
593 <groupId>org.hibernate</groupId>
594 <artifactId>hibernate-search-engine</artifactId>
595 <version>5.11.10.Final</version>
596 </dependency>
597
598 <dependency>
599 <groupId>org.springframework</groupId>
600 <artifactId>spring-context-support</artifactId>
601 <version>${spring.version}</version>
602 </dependency>
603 <dependency>
604 <groupId>org.springframework</groupId>
605 <artifactId>spring-jdbc</artifactId>
606 <version>${spring.version}</version>
607 </dependency>
608 <dependency>
609 <groupId>org.springframework</groupId>
610 <artifactId>spring-orm</artifactId>
611 <version>${spring.version}</version>
612 </dependency>
613 <dependency>
614 <groupId>org.springframework.security</groupId>
615 <artifactId>spring-security-config</artifactId>
616 <version>${spring-security.version}</version>
617 </dependency>
618
619 <!-- preliminary removed
620 <dependency>
621 <groupId>org.jadira.usertype</groupId>
622 <artifactId>usertype.core</artifactId>
623 <version>7.0.0.CR1</version>
624 </dependency> -->
625
626
627 <!-- serialVersionUID problem if not present -->
628 <!-- not true, the reason was serialVersionUID of AbstractPersistentCollection
629 <dependency>
630 <groupId>org.springframework.security</groupId>
631 <artifactId>spring-security-remoting</artifactId>
632 <version>${spring-security.version}</version>
633 </dependency> -->
634
635 <!-- not yet used
636 <dependency>
637 <!- used by AvailableDistributionWizard ->
638 <groupId>org.apache.commons</groupId>
639 <artifactId>commons-collections4</artifactId>
640 <version>4.4</version>
641 </dependency> -->
642
643 </dependencies>
644 </project>
645