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