Project

General

Profile

Download (21.4 KB) Statistics
| Branch: | Tag: | Revision:
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-io,
68
                json,
69
                log4j-core,log4j-api,slf4j-api,jboss-logging,jcl-over-slf4j,log4j-slf4j-impl,
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-aspects,spring-beans,
76
                spring-tx,spring-web,spring-core,spring-aop,
77
                spring-jdbc,spring-security-core,
78
                aspectjweaver,
79
                byte-buddy,
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
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
    <dependency>
411
      <groupId>org.apache.commons</groupId>
412
      <artifactId>commons-imaging</artifactId>
413
      <version>1.0-alpha3</version>
414
    </dependency>
415
    
416
    <!-- used by taxeditor.editor -> character matrix -->
417
    <dependency>
418
      <groupId>org.apache.commons</groupId>
419
      <artifactId>commons-math3</artifactId>
420
      <version>3.6.1</version>
421
    </dependency>
422
    
423
    <!-- used by bulkeditor -->
424
    <dependency>
425
      <!-- used by CharacterMatrix/bulkeditor (LinkedList)  -->
426
      <groupId>org.apache.commons</groupId>
427
      <artifactId>commons-collections4</artifactId>
428
      <version>4.4</version>
429
    </dependency>
430
    
431
    <!-- used by taxeditor.local -->
432
    <dependency>
433
      <!-- used by datasource dialogue finish button  -->
434
      <groupId>com.mchange</groupId>
435
      <artifactId>mchange-commons-java</artifactId>
436
      <version>0.2.11</version>
437
    </dependency>
438
    
439
    <!-- needed by taxeditor.test during test run, maybe move to test package only -->
440
    <dependency>
441
      <!-- used by hibernate -->
442
      <groupId>net.bytebuddy</groupId>
443
      <artifactId>byte-buddy</artifactId>
444
      <version>1.12.10</version>
445
    </dependency>
446
    <dependency>
447
      <!-- dependency of xerces -->
448
      <groupId>xml-apis</groupId>
449
      <artifactId>xml-apis</artifactId>
450
      <version>1.4.01</version>
451
    </dependency>
452
    <!-- needed only for H2Local and unitils, move maybe to test + local together with c3p0 -->
453
    <dependency>
454
      <groupId>commons-pool</groupId>
455
      <artifactId>commons-pool</artifactId>
456
      <version>1.6</version>
457
    </dependency>
458
    
459
    <!-- For Unit Tests Start -->
460
    <!-- keep junit and its dependency hamcrest here as long as each plugin
461
         has its own unit tests and junit is not yet added there in a way
462
         that it does not appear in production bundles -->
463
    <dependency>
464
        <groupId>junit</groupId>
465
        <artifactId>junit</artifactId>
466
        <version>4.13.2</version>
467
        <scope>test</scope>
468
    </dependency>
469
    <dependency>
470
        <groupId>org.hamcrest</groupId>
471
        <artifactId>hamcrest-core</artifactId>
472
        <version>1.3</version>
473
    <!--     <scope>test</scope> -->
474
    </dependency>
475
     
476
    <!-- END for Unit Tests -->
477
    
478
    <!-- required during RUNTIME -->
479
    
480
    <dependency>
481
      <!-- throws exception in bulk editor after search if not present -->
482
      <groupId>org.hibernate</groupId>
483
      <artifactId>hibernate-envers</artifactId>
484
      <version>${hibernate.version}</version>
485
    </dependency>
486
    <dependency>
487
      <!-- throws exception in bulk editor after search during deserialization if not present -->
488
      <groupId>org.apache.lucene</groupId>
489
      <artifactId>lucene-core</artifactId>
490
      <version>${lucene.version}</version>
491
    </dependency>
492
    <dependency>
493
      <!-- e.g. when opening character matrix
494
           probably only used by hibernate-core, so remove when removing hibernate-core -->
495
      <groupId>antlr</groupId>
496
      <artifactId>antlr</artifactId>
497
      <version>2.7.7</version>
498
    </dependency>
499
    <dependency>
500
      <!-- used e.g. by login dialog, CdmServerInfo:411 -->  
501
      <groupId>com.fasterxml.jackson.core</groupId>
502
      <artifactId>jackson-annotations</artifactId>
503
      <version>${jackson.version}</version>
504
    </dependency>
505
    <dependency>
506
        <!-- for any transactions, e.g. when first time logging in -->
507
        <groupId>org.jboss.spec.javax.transaction</groupId>
508
        <artifactId>jboss-transaction-api_1.2_spec</artifactId>
509
        <version>1.1.1.Final</version>
510
    </dependency>
511
    
512
    <dependency>
513
        <!-- for showing maps in distribution details view -->
514
        <groupId>de.micromata.jak</groupId>
515
        <!-- Java11 required <groupId>uk.m0nom</groupId>  -->
516
        <artifactId>JavaAPIforKml</artifactId>
517
        <version>2.2.1</version>
518
    </dependency>
519
    
520
    <dependency>
521
      <!-- used in datasource view and in test, maybe enough if in taxeditor.local and taxeditor.test -->
522
      <groupId>com.mchange</groupId>
523
      <artifactId>c3p0</artifactId>
524
      <version>0.9.5.2</version>
525
    </dependency>
526
    
527
    <!-- database related, should be moved to local/test when possible -->
528
    <!-- only for supporting test button in datasource dialogue, dialogue should be moved to taxeditor.webapp -->
529
    <dependency>
530
      <groupId>mysql</groupId>
531
      <artifactId>mysql-connector-java</artifactId>
532
      <version>8.0.29</version>
533
    </dependency>
534
    <dependency>
535
        <groupId>com.h2database</groupId>
536
        <artifactId>h2</artifactId>
537
        <version>1.4.190</version>
538
    </dependency>
539
    <dependency>
540
        <groupId>org.postgresql</groupId>
541
        <artifactId>postgresql</artifactId>
542
        <version>42.3.6</version>
543
    </dependency>
544
    
545
    <!-- Only added for correct package export, but reported as needed -->
546
    
547
    <!-- dbcp and pool needed for H2Local and unitils, 
548
     move to taxeditor.webapp and taxedtior.test once all db dependencies are moved to webapp-->   
549
    <dependency>
550
      <groupId>commons-dbcp</groupId>
551
      <artifactId>commons-dbcp</artifactId>
552
      <version>1.4</version>
553
    </dependency>
554
    
555
    <!-- For Hibernate Mapping Start -->
556
    <dependency>
557
      <groupId>jakarta.validation</groupId>
558
      <artifactId>jakarta.validation-api</artifactId>
559
      <version>3.0.2</version>
560
    </dependency>
561
    
562
    <!-- needed at least in taxeditor.test by BundleLoader; try to move there but test carefully -->
563
    <dependency>
564
      <groupId>commons-lang</groupId>
565
      <artifactId>commons-lang</artifactId>
566
      <version>2.6</version>
567
    </dependency>
568
    <dependency>
569
      <!-- required when running test -->
570
      <groupId>org.springframework</groupId>
571
      <artifactId>spring-jdbc</artifactId>
572
      <version>${spring.version}</version>
573
    </dependency>
574
    
575
    <!-- logging -->
576
    <dependency> 
577
        <groupId>org.slf4j</groupId>
578
        <artifactId>slf4j-api</artifactId>
579
        <version>1.7.36</version>
580
    </dependency>
581
    <dependency>
582
      <groupId>org.apache.logging.log4j</groupId>
583
      <artifactId>log4j-slf4j-impl</artifactId>
584
      <version>${log4j.version}</version>
585
    </dependency>
586
    <dependency>
587
      <groupId>org.slf4j</groupId>
588
      <artifactId>jcl-over-slf4j</artifactId>
589
      <version>1.7.36</version>
590
    </dependency>
591

    
592
    <dependency>
593
      <!-- https://stackoverflow.com/questions/38727655/maven-dependency-plugin-nosuchelementexception-for-aether-repositorysystem -->
594
      <groupId>org.apache.maven.resolver</groupId>
595
      <artifactId>maven-resolver-api</artifactId>
596
      <version>1.4.1</version>
597
    </dependency>
598
     
599
  </dependencies>
600
</project>
601

    
(5-5/5)