ref #9204 switch jdom and jdom2 to dependency in taxeditor.cdmlib and upgrade poi...
[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.18.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.11.2</jackson.version>
14 <poi.version>4.1.2</poi.version>
15 </properties>
16 <name>CDM Library Dependencies Plugin</name>
17 <description>CDM Library and dependencies as a plugin</description>
18 <build>
19 <pluginManagement>
20 <plugins>
21 <plugin>
22 <groupId>org.apache.maven.plugins</groupId>
23 <artifactId>maven-surefire-plugin</artifactId>
24 <version>2.7</version>
25 </plugin>
26 </plugins>
27 </pluginManagement>
28 <plugins>
29 <plugin>
30 <groupId>org.apache.maven.plugins</groupId>
31 <artifactId>maven-dependency-plugin</artifactId>
32 <version>2.4</version>
33 <executions>
34 <execution>
35 <id>copy-dependencies</id>
36 <phase>validate</phase>
37 <goals>
38 <goal>copy-dependencies</goal>
39 </goals>
40 <configuration>
41 <excludeArtifactIds>
42 cdmlib-remote-webapp
43 </excludeArtifactIds>
44 <includeArtifactIds>
45 cdmlib-commons,cdmlib-model,cdmlib-persistence,cdmlib-services,cdmlib-cache,cdmlib-ext,cdmlib-io,cdmlib-remote,cdmlib-print
46 </includeArtifactIds>
47 <outputDirectory>${basedir}/lib</outputDirectory>
48 <overWriteReleases>true</overWriteReleases>
49 <overWriteSnapshots>true</overWriteSnapshots>
50 <excludeTransitive>true</excludeTransitive>
51 </configuration>
52 </execution>
53 <execution>
54 <id>copy-dependency-jars</id>
55 <phase>validate</phase>
56 <goals>
57 <goal>copy-dependencies</goal>
58 </goals>
59 <configuration>
60 <includeArtifactIds>
61 httpclient,JavaAPIforKml,iiif-apis,commons-beanutils,commons-lang3,commons-lang,commons-codec,
62 commons-imaging,jackson-databind,jackson-annotations,jackson-core,jboss-logging,
63 validation-api,classmate,javax.el-api,slf4j-api,slf4j-log4j12,
64 hibernate-validator,hibernate-validator-cdi,
65 spring-context,spring-context-support,spring-aspects,spring-test,spring-beans,
66 spring-tx,spring-web,spring-core,spring-aop,spring-expression,spring-orm,
67 spring-oxm,spring-jdbc,spring-security-config,spring-security-core,
68 aopalliance,aspectjweaver,aspectjrt,
69 hibernate-jpa-2.1-api,javassist,hibernate-commons-annotations,
70 xml-apis,lsid-client,jdom,jdom2,
71 poi,poi-ooxml,poi-ooxml-schemas,xmlbeans,commons-collections4,commons-math3,
72 c3p0,
73 h2,mysql-connector-java,postgresql
74 </includeArtifactIds>
75 <outputDirectory>
76 ${basedir}/lib
77 </outputDirectory>
78 <overWriteReleases>true</overWriteReleases>
79 <overWriteSnapshots>true</overWriteSnapshots>
80 <excludeTransitive>true</excludeTransitive>
81 </configuration>
82 </execution>
83 <execution>
84 <id>copy-dependency-jars-transitive</id>
85 <phase>validate</phase>
86 <goals>
87 <goal>copy-dependencies</goal>
88 </goals>
89 <configuration>
90 <includeArtifactIds>
91 httpclient-cache,httpcore,httpmime,xercesImpl
92 </includeArtifactIds>
93 <outputDirectory>
94 ${basedir}/lib
95 </outputDirectory>
96 <overWriteReleases>true</overWriteReleases>
97 <overWriteSnapshots>true</overWriteSnapshots>
98 <excludeTransitive>false</excludeTransitive>
99 </configuration>
100 </execution>
101 </executions>
102 </plugin>
103 <plugin>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-antrun-plugin</artifactId>
106 <executions>
107 <execution>
108 <id>update-snapshot-jar-names</id>
109 <phase>validate</phase>
110 <goals>
111 <goal>run</goal>
112 </goals>
113 <configuration>
114 <target>
115 <echo>Update cdmlib jars to SNAPSHOT when build with
116 timestamp
117 </echo>
118 <move todir="./lib">
119 <fileset dir="./lib" />
120 <mapper type="regexp"
121 from="(^cdmlib\-.*\-\d+\.\d+\.\d+\-)[\d.-]+(\.jar)"
122 to="\1SNAPSHOT\2" />
123 </move>
124 <move todir="./lib">
125 <fileset dir="./lib" />
126 <mapper type="regexp"
127 from="(^cdmlib\-.*\-\d+\.\d+\.\d+\-)[\d.-]+(\-sources\.jar)"
128 to="\1SNAPSHOT\2" />
129 </move>
130 </target>
131 </configuration>
132 </execution>
133 <execution>
134 <id>remove-existing-jars</id>
135 <phase>clean</phase>
136 <goals>
137 <goal>run</goal>
138 </goals>
139 <configuration>
140 <target>
141 <echo>Remove all cdmlib jars</echo>
142 <delete>
143 <fileset dir="./lib" includes="cdmlib-*" />
144 </delete>
145 </target>
146 </configuration>
147 </execution>
148 </executions>
149 </plugin>
150 </plugins>
151 </build>
152 <profiles>
153 <profile>
154 <id>copyAllJars</id>
155 <build>
156 <plugins>
157 <plugin>
158 <groupId>org.apache.maven.plugins</groupId>
159 <artifactId>maven-dependency-plugin</artifactId>
160 <version>2.4</version>
161 <executions>
162 <execution>
163 <id>copy-all-dependencies</id>
164 <phase>validate</phase>
165 <goals>
166 <goal>copy-dependencies</goal>
167 </goals>
168 <configuration>
169 <excludeArtifactIds>
170 cdmlib-remote-webapp
171 </excludeArtifactIds>
172 <outputDirectory>${basedir}/lib</outputDirectory>
173 <overWriteReleases>true</overWriteReleases>
174 <overWriteSnapshots>true</overWriteSnapshots>
175 <excludeTransitive>true</excludeTransitive>
176 </configuration>
177 </execution>
178 </executions>
179 </plugin>
180 </plugins>
181 </build>
182 </profile>
183 </profiles>
184 <repositories>
185 <repository>
186 <id>SpringSource Enterprise Bundle Repository - External Bundle
187 Milestones
188 </id>
189 <url>http://repository.springsource.com/maven/bundles/milestone
190 </url>
191 </repository>
192 <repository>
193 <id>SpringSource Enterprise Bundle Repository - SpringSource
194 Bundle
195 Releases
196 </id>
197 <url>http://repository.springsource.com/maven/bundles/release
198 </url>
199 </repository>
200 <repository>
201 <id>SpringSource Enterprise Bundle Repository - External Bundle
202 Releases
203 </id>
204 <url>http://repository.springsource.com/maven/bundles/external
205 </url>
206 </repository>
207 <repository>
208 <id>repository.springsource.release</id>
209 <name>SpringSource GA Repository</name>
210 <url>http://repo.springsource.org/release</url>
211 </repository>
212 </repositories>
213 <dependencies>
214 <dependency>
215 <groupId>eu.etaxonomy</groupId>
216 <artifactId>cdmlib-commons</artifactId>
217 <version>${cdmlib.version}</version>
218 </dependency>
219 <dependency>
220 <groupId>eu.etaxonomy</groupId>
221 <artifactId>cdmlib-model</artifactId>
222 <version>${cdmlib.version}</version>
223 </dependency>
224 <dependency>
225 <groupId>eu.etaxonomy</groupId>
226 <artifactId>cdmlib-persistence</artifactId>
227 <version>${cdmlib.version}</version>
228 </dependency>
229 <dependency>
230 <groupId>eu.etaxonomy</groupId>
231 <artifactId>cdmlib-remote</artifactId>
232 <version>${cdmlib.version}</version>
233 </dependency>
234 <dependency>
235 <groupId>eu.etaxonomy</groupId>
236 <artifactId>cdmlib-print</artifactId>
237 <version>${cdmlib.version}</version>
238 </dependency>
239 <dependency>
240 <groupId>eu.etaxonomy</groupId>
241 <artifactId>cdmlib-services</artifactId>
242 <version>${cdmlib.version}</version>
243 </dependency>
244 <dependency>
245 <groupId>eu.etaxonomy</groupId>
246 <artifactId>cdmlib-io</artifactId>
247 <version>${cdmlib.version}</version>
248 </dependency>
249 <dependency>
250 <groupId>eu.etaxonomy</groupId>
251 <artifactId>cdmlib-ext</artifactId>
252 <version>${cdmlib.version}</version>
253 </dependency>
254 <dependency>
255 <groupId>eu.etaxonomy</groupId>
256 <artifactId>cdmlib-cache</artifactId>
257 <version>${cdmlib.version}</version>
258 </dependency>
259 <dependency>
260 <groupId>dom4j</groupId>
261 <artifactId>dom4j</artifactId>
262 <version>1.6</version>
263 </dependency>
264 <dependency>
265 <groupId>log4j</groupId>
266 <artifactId>log4j</artifactId>
267 <version>1.2.17</version>
268 </dependency>
269 <dependency>
270 <!-- needed? -->
271 <groupId>org.jdom</groupId>
272 <artifactId>jdom2</artifactId>
273 <version>2.0.6</version>
274 </dependency>
275 <dependency>
276 <!-- needed? -->
277 <groupId>org.jdom</groupId>
278 <artifactId>jdom</artifactId>
279 <version>1.1.3</version>
280 </dependency>
281 <dependency>
282 <groupId>org.springframework</groupId>
283 <artifactId>spring-context</artifactId>
284 <version>4.3.28.RELEASE</version>
285 </dependency>
286 <dependency>
287 <groupId>org.springframework</groupId>
288 <artifactId>spring-context-support</artifactId>
289 <version>4.3.28.RELEASE</version>
290 </dependency>
291 <dependency>
292 <groupId>org.springframework</groupId>
293 <artifactId>spring-aspects</artifactId>
294 <version>4.3.28.RELEASE</version>
295 </dependency>
296 <dependency>
297 <groupId>org.springframework</groupId>
298 <artifactId>spring-test</artifactId>
299 <version>4.3.28.RELEASE</version>
300 </dependency>
301 <dependency>
302 <groupId>org.springframework</groupId>
303 <artifactId>spring-beans</artifactId>
304 <version>4.3.28.RELEASE</version>
305 </dependency>
306 <dependency>
307 <groupId>org.springframework</groupId>
308 <artifactId>spring-tx</artifactId>
309 <version>4.3.28.RELEASE</version>
310 </dependency>
311 <dependency>
312 <groupId>org.springframework</groupId>
313 <artifactId>spring-web</artifactId>
314 <version>4.3.28.RELEASE</version>
315 </dependency>
316 <dependency>
317 <groupId>org.springframework</groupId>
318 <artifactId>spring-core</artifactId>
319 <version>4.3.28.RELEASE</version>
320 </dependency>
321 <dependency>
322 <groupId>org.springframework</groupId>
323 <artifactId>spring-aop</artifactId>
324 <version>4.3.28.RELEASE</version>
325 </dependency>
326 <dependency>
327 <groupId>org.springframework</groupId>
328 <artifactId>spring-expression</artifactId>
329 <version>4.3.28.RELEASE</version>
330 </dependency>
331 <dependency>
332 <groupId>org.springframework</groupId>
333 <artifactId>spring-orm</artifactId>
334 <version>4.3.28.RELEASE</version>
335 </dependency>
336 <dependency>
337 <groupId>org.springframework</groupId>
338 <artifactId>spring-oxm</artifactId>
339 <version>4.3.28.RELEASE</version>
340 </dependency>
341 <dependency>
342 <groupId>org.springframework</groupId>
343 <artifactId>spring-jdbc</artifactId>
344 <version>4.3.28.RELEASE</version>
345 </dependency>
346 <dependency>
347 <groupId>org.springframework.security</groupId>
348 <artifactId>spring-security-core</artifactId>
349 <version>4.2.18.RELEASE</version>
350 </dependency>
351 <dependency>
352 <groupId>org.springframework.security</groupId>
353 <artifactId>spring-security-config</artifactId>
354 <version>4.2.18.RELEASE</version>
355 </dependency>
356 <dependency>
357 <groupId>org.springframework.security</groupId>
358 <artifactId>spring-security-remoting</artifactId>
359 <version>4.2.18.RELEASE</version>
360 </dependency>
361 <dependency>
362 <!-- dependency of spring security core, can be removed after
363 upgrading to spring security 5.x -->
364 <groupId>aopalliance</groupId>
365 <artifactId>aopalliance</artifactId>
366 <version>1.0</version>
367 </dependency>
368
369 <dependency>
370 <groupId>commons-beanutils</groupId>
371 <artifactId>commons-beanutils</artifactId>
372 <version>1.9.4</version>
373 </dependency>
374 <dependency>
375 <groupId>org.apache.commons</groupId>
376 <artifactId>commons-imaging</artifactId>
377 <version>1.0-alpha2</version>
378 </dependency>
379 <dependency>
380 <groupId>au.com.bytecode</groupId>
381 <artifactId>opencsv</artifactId>
382 <version>2.4</version>
383 </dependency>
384
385 <dependency>
386 <groupId>org.apache.httpcomponents</groupId>
387 <artifactId>httpclient</artifactId>
388 </dependency>
389
390 <dependency>
391 <groupId>org.apache.commons</groupId>
392 <artifactId>commons-lang3</artifactId>
393 <version>3.11</version>
394 </dependency>
395 <dependency>
396 <!-- needed at least in taxeditor.test by BundleLoader; try to move there but test carefully -->
397 <groupId>commons-lang</groupId>
398 <artifactId>commons-lang</artifactId>
399 <version>2.6</version>
400 </dependency>
401 <dependency>
402 <!-- maybe only needed for tests, but does not work to only have there -->
403 <groupId>com.mchange</groupId>
404 <artifactId>c3p0</artifactId>
405 <version>0.9.5.2</version>
406 <!-- <scope>test</scope> -->
407 </dependency>
408
409 <!-- jackson, not sure if really needed -->
410 <dependency>
411 <groupId>com.fasterxml.jackson.core</groupId>
412 <artifactId>jackson-databind</artifactId>
413 <version>${jackson.version}</version>
414 </dependency>
415 <dependency>
416 <groupId>com.fasterxml.jackson.core</groupId>
417 <artifactId>jackson-core</artifactId>
418 <version>${jackson.version}</version>
419 </dependency>
420 <dependency>
421 <groupId>com.fasterxml.jackson.core</groupId>
422 <artifactId>jackson-annotations</artifactId>
423 <version>${jackson.version}</version>
424 </dependency>
425
426 <dependency>
427 <!-- needed? -->
428 <groupId>xerces</groupId>
429 <artifactId>xercesImpl</artifactId>
430 <version>2.12.0</version>
431 </dependency>
432
433 <dependency>
434 <groupId>org.aspectj</groupId>
435 <artifactId>aspectjweaver</artifactId>
436 <version>1.9.6</version>
437 </dependency>
438 <dependency>
439 <groupId>org.aspectj</groupId>
440 <artifactId>aspectjrt</artifactId>
441 <version>1.9.6</version>
442 </dependency>
443 <dependency>
444 <groupId>org.hibernate.javax.persistence</groupId>
445 <artifactId>hibernate-jpa-2.1-api</artifactId>
446 <version>1.0.2.Final</version>
447 </dependency>
448 <dependency>
449 <groupId>org.javassist</groupId>
450 <artifactId>javassist</artifactId>
451 <version>3.27.0-GA</version>
452 </dependency>
453 <dependency>
454 <groupId>org.hibernate.common</groupId>
455 <artifactId>hibernate-commons-annotations</artifactId>
456 <version>5.1.0.Final</version>
457 </dependency>
458 <dependency>
459 <groupId>xml-apis</groupId>
460 <artifactId>xml-apis</artifactId>
461 <version>1.4.01</version>
462 </dependency>
463 <dependency>
464 <groupId>com.ibm.lsid</groupId>
465 <artifactId>lsid-client</artifactId>
466 <version>1.1.2</version>
467 </dependency>
468
469 <!-- poi -->
470 <!-- needed -->
471 <dependency>
472 <groupId>org.apache.poi</groupId>
473 <artifactId>poi</artifactId>
474 <version>${poi.version}</version>
475 </dependency>
476 <dependency>
477 <groupId>org.apache.poi</groupId>
478 <artifactId>poi-ooxml-schemas</artifactId>
479 <version>${poi.version}</version>
480 </dependency>
481 <dependency>
482 <groupId>org.apache.poi</groupId>
483 <artifactId>poi-ooxml</artifactId>
484 <version>${poi.version}</version>
485 </dependency>
486 <dependency>
487 <groupId>org.apache.xmlbeans</groupId>
488 <artifactId>xmlbeans</artifactId>
489 <version>3.1.0</version>
490 </dependency>
491 <dependency>
492 <groupId>org.apache.commons</groupId>
493 <artifactId>commons-collections4</artifactId>
494 <version>4.4</version>
495 </dependency>
496 <dependency>
497 <groupId>org.apache.commons</groupId>
498 <artifactId>commons-math3</artifactId>
499 <version>3.6.1</version>
500 </dependency>
501 <!-- not yet included
502 poi: com.zaxxer:SparseBitSet
503 poi-ooxml commons-compress,curvesapi
504 -->
505
506 <!-- logging -->
507 <dependency>
508 <!-- needed? -->
509 <groupId>org.jboss.logging</groupId>
510 <artifactId>jboss-logging</artifactId>
511 <version>3.4.1.Final</version>
512 </dependency>
513 <dependency>
514 <groupId>org.slf4j</groupId>
515 <artifactId>slf4j-api</artifactId>
516 <version>1.7.30</version>
517 </dependency>
518 <dependency>
519 <groupId>org.slf4j</groupId>
520 <artifactId>slf4j-log4j12</artifactId>
521 <version>1.7.30</version>
522 </dependency>
523 <!-- slf4j-nop is not needed -->
524
525 <!-- validation, needed? -->
526 <dependency>
527 <groupId>org.hibernate.validator</groupId>
528 <artifactId>hibernate-validator</artifactId>
529 <version>6.1.5.Final</version>
530 </dependency>
531 <dependency>
532 <groupId>org.hibernate.validator</groupId>
533 <artifactId>hibernate-validator-cdi</artifactId>
534 <version>6.1.5.Final</version>
535 </dependency>
536 <dependency>
537 <groupId>com.fasterxml</groupId>
538 <artifactId>classmate</artifactId>
539 <version>1.5.1</version>
540 </dependency>
541 <dependency>
542 <groupId>javax.el</groupId>
543 <artifactId>javax.el-api</artifactId>
544 <version>3.0.0</version>
545 </dependency>
546
547 <dependency>
548 <!-- used in AuthenticatingHttpInvokerRequestExecutor -->
549 <groupId>commons-codec</groupId>
550 <artifactId>commons-codec</artifactId>
551 <version>1.14</version>
552 </dependency>
553
554 <!-- only for supporting test button in datasource dialogue, dialogue should be moved to taxeditor.webapp -->
555 <dependency>
556 <groupId>com.h2database</groupId>
557 <artifactId>h2</artifactId>
558 <version>1.4.190</version>
559 </dependency>
560 <dependency>
561 <groupId>mysql</groupId>
562 <artifactId>mysql-connector-java</artifactId>
563 <version>8.0.21</version>
564 </dependency>
565 <dependency>
566 <groupId>org.postgresql</groupId>
567 <artifactId>postgresql</artifactId>
568 <version>42.2.15</version>
569 </dependency>
570
571 <!-- For Unit Tests Start -->
572 <!-- still needed? -->
573
574 <dependency>
575 <groupId>commons-dbcp</groupId>
576 <artifactId>commons-dbcp</artifactId>
577 <version>1.4</version>
578 </dependency>
579 <dependency>
580 <groupId>commons-pool</groupId>
581 <artifactId>commons-pool</artifactId>
582 <version>1.5.4</version>
583 </dependency>
584
585 <!-- For Unit Tests End -->
586
587 <!-- For Hibernate Mapping Start -->
588 <dependency>
589 <groupId>wsdl4j</groupId>
590 <artifactId>wsdl4j</artifactId>
591 <version>1.6.3</version>
592 </dependency>
593 <dependency>
594 <groupId>javax.validation</groupId>
595 <artifactId>validation-api</artifactId>
596 <version>2.0.1.Final</version>
597 </dependency>
598 <!-- For Hibernate Mapping End -->
599
600 <!-- KML/IIIF dependencies should not bee needed for the taxeditor, but at current the KMLDocumentBuilder
601 is used in the EditGeoService bean which is needed to display the distribution maps in the editor.
602 -->
603 <dependency>
604 <groupId>de.micromata.jak</groupId>
605 <artifactId>JavaAPIforKml</artifactId>
606 <version>2.2.1</version><!-- must be same version as in cdmlib -->
607 </dependency>
608 <dependency>
609 <groupId>de.digitalcollections.iiif</groupId>
610 <artifactId>iiif-apis</artifactId>
611 <version>0.3.7</version>
612 </dependency>
613 </dependencies>
614 </project>
615