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