ref #10067, #9359, #10009 adapt dependencies in taxeditor to latest versions in cdmli...
[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-beanutils,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,slf4j-log4j12,
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 hibernate-jpa-2.1-api,javassist,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.jodatime,usertype.spi,
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
315
316 <dependency>
317 <groupId>org.apache.commons</groupId>
318 <artifactId>commons-lang3</artifactId>
319 <version>3.12.0</version>
320 </dependency>
321 <dependency>
322 <!-- used e.g. by CdmServerUtils -->
323 <groupId>commons-io</groupId>
324 <artifactId>commons-io</artifactId>
325 <version>2.11.0</version>
326 </dependency>
327 <dependency>
328 <!-- used e.g. by CdmServerUtils -->
329 <groupId>org.apache.commons</groupId>
330 <artifactId>commons-text</artifactId>
331 <version>1.9</version>
332 </dependency>
333 <dependency>
334 <!-- used in AuthenticatingHttpInvokerRequestExecutor -->
335 <groupId>commons-codec</groupId>
336 <artifactId>commons-codec</artifactId>
337 <version>1.15</version>
338 </dependency>
339 <dependency>
340 <!-- TODO version -->
341 <groupId>log4j</groupId>
342 <artifactId>log4j</artifactId>
343 <version>1.2.17</version>
344 </dependency>
345 <dependency>
346 <groupId>org.aspectj</groupId>
347 <!-- used e.g. by CdmLazyLoader -->
348 <artifactId>aspectjweaver</artifactId>
349 <version>${aspectj.version}</version>
350 </dependency>
351 <dependency>
352 <groupId>org.apache.httpcomponents</groupId>
353 <artifactId>httpclient</artifactId>
354 <!-- version defined in parent pom -->
355 </dependency>
356 <dependency>
357 <!-- used e.g. by CdmServerInfo -->
358 <groupId>org.apache.httpcomponents</groupId>
359 <artifactId>httpcore</artifactId>
360 <version>4.4.15</version>
361 </dependency>
362 <dependency>
363 <!-- used e.g. by CdmServerInfo -->
364 <groupId>org.json</groupId>
365 <artifactId>json</artifactId>
366 <version>20220320</version>
367 </dependency>
368 <dependency>
369 <!-- used e.g. by CdmServerInfo -->
370 <groupId>com.fasterxml.jackson.core</groupId>
371 <artifactId>jackson-core</artifactId>
372 <version>${jackson.version}</version>
373 </dependency>
374 <dependency>
375 <!-- used e.g. by CdmServerInfo -->
376 <groupId>com.fasterxml.jackson.core</groupId>
377 <artifactId>jackson-databind</artifactId>
378 <version>${jackson.version}</version>
379 </dependency>
380 <dependency>
381 <!-- used e.g. by ICdmEntitySession -->
382 <groupId>net.sf.ehcache</groupId>
383 <artifactId>ehcache</artifactId>
384 <version>2.10.9.2</version>
385 </dependency>
386 <dependency>
387 <!-- used e.g. by CdmPersistentRemoteSource -->
388 <groupId>org.jdom</groupId>
389 <artifactId>jdom</artifactId>
390 <version>1.1.3</version>
391 </dependency>
392
393 <!-- indirectly used with compile error -->
394 <dependency>
395 <!-- indirectly used e.g. by AbstractPersistentCollection -->
396 <groupId>javax.persistence</groupId>
397 <artifactId>javax.persistence-api</artifactId>
398 <version>2.2</version>
399 </dependency>
400 <dependency>
401 <!-- indirectly used e.g. by AbstractPersistentCollection -->
402 <groupId>org.jboss.logging</groupId>
403 <artifactId>jboss-logging</artifactId>
404 <version>3.4.3.Final</version>
405 </dependency>
406
407 <!-- indirectly used, by other taxeditor modules -->
408 <!-- ... by taxeditor.local -->
409 <dependency>
410 <groupId>eu.etaxonomy</groupId>
411 <artifactId>cdmlib-api</artifactId>
412 <version>${cdmlib.version}</version>
413 </dependency>
414
415 <!-- ... by taxeditor.store -->
416 <dependency>
417 <groupId>joda-time</groupId>
418 <artifactId>joda-time</artifactId>
419 <version>2.10.14</version>
420 </dependency>
421 <dependency>
422 <groupId>net.sf.opencsv</groupId>
423 <artifactId>opencsv</artifactId>
424 <version>2.3</version>
425 </dependency>
426 <dependency>
427 <groupId>org.springframework</groupId>
428 <artifactId>spring-aspects</artifactId>
429 <version>${spring.version}</version>
430 </dependency>
431 <dependency>
432 <groupId>com.ibm.lsid</groupId>
433 <artifactId>lsid-client</artifactId>
434 <version>1.1.2</version>
435 </dependency>
436
437
438 <!-- For Unit Tests Start -->
439 <!-- keep junit and its dependency hamcrest here as long as each plugin
440 has its own unit tests and junit is not yet added there in a way
441 that it does not appear in production bundles -->
442 <dependency>
443 <groupId>junit</groupId>
444 <artifactId>junit</artifactId>
445 <version>4.13.2</version>
446 <scope>test</scope>
447 </dependency>
448 <dependency>
449 <groupId>org.hamcrest</groupId>
450 <artifactId>hamcrest-core</artifactId>
451 <version>1.3</version>
452 <!-- <scope>test</scope> -->
453 </dependency>
454
455 <!-- For Unit Tests End -->
456
457 <!-- Only added for correct package export, but reported as needed -->
458
459 <!-- dbcp and pool needed for H2Local and unitils,
460 move to taxeditor.webapp and taxedtior.test once all db dependencies are moved to webapp-->
461 <dependency>
462 <groupId>commons-dbcp</groupId>
463 <artifactId>commons-dbcp</artifactId>
464 <version>1.4</version>
465 </dependency>
466
467 <!-- For Hibernate Mapping Start -->
468 <dependency>
469 <groupId>jakarta.validation</groupId>
470 <artifactId>jakarta.validation-api</artifactId>
471 <version>3.0.2</version>
472 </dependency>
473
474 <!-- needed at least in taxeditor.test by BundleLoader; try to move there but test carefully -->
475 <dependency>
476 <groupId>commons-lang</groupId>
477 <artifactId>commons-lang</artifactId>
478 <version>2.6</version>
479 </dependency>
480
481 <!-- poi -->
482 <!-- needed -->
483 <!-- .... -->
484 <dependency>
485 <groupId>org.apache.commons</groupId>
486 <artifactId>commons-math3</artifactId>
487 <version>3.6.1</version>
488 </dependency>
489
490 <!-- logging -->
491 <dependency>
492 <groupId>org.slf4j</groupId>
493 <artifactId>slf4j-api</artifactId>
494 <version>1.7.36</version>
495 </dependency>
496
497 <!-- Only added for correct package export -->
498 <dependency>
499 <groupId>org.javassist</groupId>
500 <artifactId>javassist</artifactId>
501 <version>3.29.0-GA</version>
502 </dependency>
503 <dependency>
504 <groupId>commons-collections</groupId>
505 <artifactId>commons-collections</artifactId>
506 <version>3.2.2</version>
507 </dependency>
508 <dependency>
509 <groupId>org.apache.commons</groupId>
510 <artifactId>commons-imaging</artifactId>
511 <version>1.0-alpha3</version>
512 </dependency>
513 <dependency>
514 <groupId>net.sf.json-lib</groupId>
515 <artifactId>json-lib</artifactId>
516 <version>2.4</version>
517 <!-- classifier required as json-lib exists on maven central as json-lib-2.4-jdk15.jar and xxx-jdk13.jar, see #9887 -->
518 <classifier>jdk15</classifier>
519 </dependency>
520 <dependency>
521 <groupId>commons-logging</groupId>
522 <artifactId>commons-logging</artifactId>
523 <version>1.2</version>
524 </dependency>
525 <dependency>
526 <groupId>xerces</groupId>
527 <artifactId>xercesImpl</artifactId>
528 <version>2.12.2</version>
529 </dependency>
530 <dependency>
531 <groupId>org.hibernate.common</groupId>
532 <artifactId>hibernate-commons-annotations</artifactId>
533 <version>5.1.2.Final</version>
534 </dependency>
535 <dependency>
536 <groupId>org.hibernate</groupId>
537 <artifactId>hibernate-search-orm</artifactId>
538 <version>5.11.10.Final</version>
539 </dependency>
540 <dependency>
541 <groupId>org.hibernate</groupId>
542 <artifactId>hibernate-search-engine</artifactId>
543 <version>5.11.10.Final</version>
544 </dependency>
545 <dependency>
546 <groupId>org.jadira.usertype</groupId>
547 <artifactId>usertype.core</artifactId>
548 <version>7.0.0.CR1</version>
549 </dependency>
550 <dependency>
551 <groupId>org.springframework</groupId>
552 <artifactId>spring-context-support</artifactId>
553 <version>${spring.version}</version>
554 </dependency>
555 <dependency>
556 <groupId>org.springframework</groupId>
557 <artifactId>spring-jdbc</artifactId>
558 <version>${spring.version}</version>
559 </dependency>
560 <dependency>
561 <groupId>org.springframework</groupId>
562 <artifactId>spring-orm</artifactId>
563 <version>${spring.version}</version>
564 </dependency>
565 <dependency>
566 <groupId>org.springframework.security</groupId>
567 <artifactId>spring-security-config</artifactId>
568 <version>${spring-security.version}</version>
569 </dependency>
570
571
572 <!-- not yet used -->
573 <dependency>
574 <!-- used by AvailableDistributionWizard -->
575 <groupId>org.apache.commons</groupId>
576 <artifactId>commons-collections4</artifactId>
577 <version>4.4</version>
578 </dependency>
579
580 </dependencies>
581 </project>
582