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