Project

General

Profile

Download (14.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.15.0</version>
8
  </parent>
9
  <modelVersion>4.0.0</modelVersion>
10
  <artifactId>eu.etaxonomy.taxeditor.cdmlib</artifactId>
11
  <packaging>eclipse-plugin</packaging>
12
  <name>CDM Library Dependencies Plugin</name>
13
  <description>CDM Library and dependencies as a plugin</description>
14

    
15
  <build>
16
    <pluginManagement>
17
      <plugins>
18
        <plugin>
19
          <groupId>org.apache.maven.plugins</groupId>
20
          <artifactId>maven-surefire-plugin</artifactId>
21
          <version>2.7</version>
22
        </plugin>
23
      </plugins>
24
    </pluginManagement>
25
    <plugins>
26
      <plugin>
27
        <groupId>org.apache.maven.plugins</groupId>
28
        <artifactId>maven-dependency-plugin</artifactId>
29
        <version>2.4</version>
30
        <executions>
31
          <execution>
32
            <id>copy-dependencies</id>
33
            <phase>validate</phase>
34
            <goals>
35
              <goal>copy-dependencies</goal>
36
            </goals>
37
            <configuration>
38
              <excludeArtifactIds>
39
                cdmlib-remote-webapp
40
              </excludeArtifactIds>
41
              <includeArtifactIds>
42
                cdmlib-services,cdmlib-commons,cdmlib-cache,cdmlib-persistence,cdmlib-ext,cdmlib-model,cdmlib-io,cdmlib-print,cdmlib-remote,cdmlib-test
43
              </includeArtifactIds>
44
              <outputDirectory>${basedir}/lib</outputDirectory>
45
              <overWriteReleases>true</overWriteReleases>
46
              <overWriteSnapshots>true</overWriteSnapshots>
47
              <excludeTransitive>true</excludeTransitive>
48
            </configuration>
49
          </execution>
50
          <execution>
51
            <id>copy-dependency-jars</id>
52
            <phase>validate</phase>
53
            <goals>
54
              <goal>copy-dependencies</goal>
55
            </goals>
56
            <configuration>
57
              <includeArtifactIds>
58
                httpclient,JavaAPIforKml,iiif-apis
59
              </includeArtifactIds>
60
              <outputDirectory>
61
                ${basedir}/lib
62
              </outputDirectory>
63
              <overWriteReleases>true</overWriteReleases>
64
              <overWriteSnapshots>true</overWriteSnapshots>
65
              <excludeTransitive>true</excludeTransitive>
66
            </configuration>
67
          </execution>
68
          <execution>
69
            <id>copy-dependency-jars-transitive</id>
70
            <phase>validate</phase>
71
            <goals>
72
              <goal>copy-dependencies</goal>
73
            </goals>
74
            <configuration>
75
              <includeArtifactIds>
76
                httpclient-cache,httpcore,httpmime
77
<!--                 c3p0,mchange-commons-java,h2,postgresql,mysql-connector-java,jdbc4 -->
78
              </includeArtifactIds>
79
              <outputDirectory>
80
                ${basedir}/lib
81
              </outputDirectory>
82
              <overWriteReleases>true</overWriteReleases>
83
              <overWriteSnapshots>true</overWriteSnapshots>
84
              <excludeTransitive>false</excludeTransitive>
85
            </configuration>
86
          </execution>
87
          <execution>
88
            <id>copy-dependency-war</id>
89
            <phase>validate</phase>
90
            <goals>
91
              <goal>copy-dependencies</goal>
92
            </goals>
93
            <configuration>
94
              <includeArtifactIds>
95
                cdmlib-remote-webapp
96
              </includeArtifactIds>
97
              <outputDirectory>
98
                ${basedir}/src/main/resources/etc/jetty
99
              </outputDirectory>
100
              <overWriteReleases>true</overWriteReleases>
101
              <overWriteSnapshots>true</overWriteSnapshots>
102
              <excludeTransitive>true</excludeTransitive>
103
            </configuration>
104
          </execution>
105
        </executions>
106
      </plugin>
107
      <plugin>
108
        <groupId>org.apache.maven.plugins</groupId>
109
        <artifactId>maven-antrun-plugin</artifactId>
110
        <version>1.7</version>
111
        <executions>
112
          <execution>
113
            <id>update-snapshot-jar-names</id>
114
            <phase>validate</phase>
115
            <goals>
116
              <goal>run</goal>
117
            </goals>
118
            <configuration>
119
              <target>
120
                <echo>Anonymizing war</echo>
121
                <move todir="./src/main/resources/etc/jetty">
122
                  <fileset dir="./src/main/resources/etc/jetty" />
123
                  <mapper type="regexp"
124
                    from="(^cdmlib\-remote\-webapp).*(\.war)" to="\1\2" />
125
                </move>
126
                <echo>Update cdmlib jars to SNAPSHOT when build with
127
                  timestamp
128
                </echo>
129
                <move todir="./lib">
130
                  <fileset dir="./lib" />
131
                  <mapper type="regexp"
132
                    from="(^cdmlib\-.*\-\d+\.\d+\.\d+\-)[\d.-]+(\.jar)"
133
                    to="\1SNAPSHOT\2" />
134
                </move>
135
                <move todir="./lib">
136
                  <fileset dir="./lib" />
137
                  <mapper type="regexp"
138
                    from="(^cdmlib\-.*\-\d+\.\d+\.\d+\-)[\d.-]+(\-sources\.jar)"
139
                    to="\1SNAPSHOT\2" />
140
                </move>
141
              </target>
142
            </configuration>
143
          </execution>
144
          <execution>
145
            <id>remove-existing-jars</id>
146
            <phase>clean</phase>
147
            <goals>
148
              <goal>run</goal>
149
            </goals>
150
            <configuration>
151
              <target>
152
                <echo>Remove all cdmlib jars</echo>
153
                <delete>
154
                  <fileset dir="./lib" includes="cdmlib-*" />
155
                </delete>
156
              </target>
157
            </configuration>
158
          </execution>
159
        </executions>
160
      </plugin>
161
    </plugins>
162
  </build>
163
  <profiles>
164
    <profile>
165
      <id>copyAllJars</id>
166
      <build>
167
        <plugins>
168
          <plugin>
169
            <groupId>org.apache.maven.plugins</groupId>
170
            <artifactId>maven-dependency-plugin</artifactId>
171
            <version>2.4</version>
172
            <executions>
173
              <execution>
174
                <id>copy-all-dependencies</id>
175
                <phase>validate</phase>
176
                <goals>
177
                  <goal>copy-dependencies</goal>
178
                </goals>
179
                <configuration>
180
                  <excludeArtifactIds>
181
                    cdmlib-remote-webapp
182
                  </excludeArtifactIds>
183
                  <outputDirectory>${basedir}/lib</outputDirectory>
184
                  <overWriteReleases>true</overWriteReleases>
185
                  <overWriteSnapshots>true</overWriteSnapshots>
186
                  <excludeTransitive>true</excludeTransitive>
187
                </configuration>
188
              </execution>
189
            </executions>
190
          </plugin>
191
        </plugins>
192
      </build>
193
    </profile>
194
  </profiles>
195
  <repositories>
196
    <repository>
197
      <id>SpringSource Enterprise Bundle Repository - External Bundle
198
        Milestones
199
      </id>
200
      <url>http://repository.springsource.com/maven/bundles/milestone
201
      </url>
202
    </repository>
203
    <repository>
204
      <id>SpringSource Enterprise Bundle Repository - SpringSource
205
        Bundle
206
        Releases
207
      </id>
208
      <url>http://repository.springsource.com/maven/bundles/release
209
      </url>
210
    </repository>
211
    <repository>
212
      <id>SpringSource Enterprise Bundle Repository - External Bundle
213
        Releases
214
      </id>
215
      <url>http://repository.springsource.com/maven/bundles/external
216
      </url>
217
    </repository>
218
	 <repository>
219
        <id>repository.springsource.release</id>
220
        <name>SpringSource GA Repository</name>
221
        <url>http://repo.springsource.org/release</url>
222
    </repository>
223
  </repositories>
224
  <dependencies>
225
    <dependency>
226
      <groupId>eu.etaxonomy</groupId>
227
      <artifactId>cdmlib-remote-webapp</artifactId>
228
      <version>${cdmlib.version}</version>
229
      <type>war</type>
230
    </dependency>
231
    <dependency>
232
      <groupId>eu.etaxonomy</groupId>
233
      <artifactId>cdmlib-commons</artifactId>
234
      <version>${cdmlib.version}</version>
235
    </dependency>
236
    <dependency>
237
      <groupId>eu.etaxonomy</groupId>
238
      <artifactId>cdmlib-model</artifactId>
239
      <version>${cdmlib.version}</version>
240
    </dependency>
241
    <dependency>
242
      <groupId>eu.etaxonomy</groupId>
243
      <artifactId>cdmlib-persistence</artifactId>
244
      <version>${cdmlib.version}</version>
245
    </dependency>
246
    <dependency>
247
      <groupId>eu.etaxonomy</groupId>
248
      <artifactId>cdmlib-remote</artifactId>
249
      <version>${cdmlib.version}</version>
250
    </dependency>
251
    <dependency>
252
      <groupId>eu.etaxonomy</groupId>
253
      <artifactId>cdmlib-print</artifactId>
254
      <version>${cdmlib.version}</version>
255
    </dependency>
256
    <dependency>
257
      <groupId>eu.etaxonomy</groupId>
258
      <artifactId>cdmlib-services</artifactId>
259
      <version>${cdmlib.version}</version>
260
    </dependency>
261
    <dependency>
262
      <groupId>eu.etaxonomy</groupId>
263
      <artifactId>cdmlib-io</artifactId>
264
      <version>${cdmlib.version}</version>
265
    </dependency>
266
    <dependency>
267
      <groupId>eu.etaxonomy</groupId>
268
      <artifactId>cdmlib-ext</artifactId>
269
      <version>${cdmlib.version}</version>
270
    </dependency>
271
    <dependency>
272
      <groupId>eu.etaxonomy</groupId>
273
      <artifactId>cdmlib-cache</artifactId>
274
      <version>${cdmlib.version}</version>
275
    </dependency>
276
    <dependency>
277
      <groupId>dom4j</groupId>
278
      <artifactId>dom4j</artifactId>
279
      <version>1.6</version>
280
    </dependency>
281
    <dependency>
282
      <groupId>log4j</groupId>
283
      <artifactId>log4j</artifactId>
284
      <version>1.2.17</version>
285
    </dependency>
286
    <dependency>
287
      <groupId>org.jdom</groupId>
288
      <artifactId>jdom</artifactId>
289
      <version>1.1.3</version>
290
    </dependency>
291
    <dependency>
292
      <groupId>org.springframework</groupId>
293
      <artifactId>spring-context</artifactId>
294
      <version>4.2.4.RELEASE</version>
295
    </dependency>
296
    <dependency>
297
      <groupId>org.springframework</groupId>
298
      <artifactId>spring-context-support</artifactId>
299
      <version>4.2.4.RELEASE</version>
300
    </dependency>
301
    <dependency>
302
      <groupId>org.springframework</groupId>
303
      <artifactId>spring-aspects</artifactId>
304
      <version>4.2.4.RELEASE</version>
305
    </dependency>
306
    <dependency>
307
      <groupId>org.springframework</groupId>
308
      <artifactId>spring-test</artifactId>
309
      <version>4.2.4.RELEASE</version>
310
    </dependency>
311
    <dependency>
312
      <groupId>org.springframework</groupId>
313
      <artifactId>spring-beans</artifactId>
314
      <version>4.2.4.RELEASE</version>
315
    </dependency>
316
    <dependency>
317
      <groupId>org.springframework</groupId>
318
      <artifactId>spring-tx</artifactId>
319
      <version>4.2.4.RELEASE</version>
320
    </dependency>
321
    <dependency>
322
		<groupId>org.springframework</groupId>
323
		<artifactId>spring-web</artifactId>
324
		<version>4.2.4.RELEASE</version>
325
	</dependency>
326
    <dependency>
327
      <groupId>org.springframework</groupId>
328
      <artifactId>spring-core</artifactId>
329
      <version>4.2.4.RELEASE</version>
330
    </dependency>
331
    <dependency>
332
      <groupId>org.springframework</groupId>
333
      <artifactId>spring-aop</artifactId>
334
      <version>4.2.4.RELEASE</version>
335
    </dependency>
336
    <dependency>
337
		<groupId>org.springframework</groupId>
338
		<artifactId>spring-expression</artifactId>
339
		<version>4.2.4.RELEASE</version>
340
	</dependency>
341
   <dependency>
342
		<groupId>org.springframework</groupId>
343
		<artifactId>spring-orm</artifactId>
344
		<version>4.2.4.RELEASE</version>
345
	</dependency>
346
    <dependency>
347
		<groupId>org.springframework</groupId>
348
		<artifactId>spring-jdbc</artifactId>
349
		<version>4.2.4.RELEASE</version>
350
	</dependency>
351
    <dependency>
352
      <groupId>org.springframework.security</groupId>
353
      <artifactId>spring-security-core</artifactId>
354
      <version>4.0.3.RELEASE</version>
355
    </dependency>
356
    <dependency>
357
      <groupId>org.springframework.security</groupId>
358
      <artifactId>spring-security-config</artifactId>
359
      <version>4.0.3.RELEASE</version>
360
    </dependency>
361
    <dependency>
362
      <groupId>org.springframework.security</groupId>
363
      <artifactId>spring-security-remoting</artifactId>
364
      <version>4.0.3.RELEASE</version>
365
    </dependency>
366
    <dependency>
367
      <groupId>commons-lang</groupId>
368
      <artifactId>commons-lang</artifactId>
369
      <version>2.6</version>
370
    </dependency>
371
    <dependency>
372
      <groupId>au.com.bytecode</groupId>
373
      <artifactId>opencsv</artifactId>
374
      <version>2.4</version>
375
    </dependency>
376

    
377
    <dependency>
378
      <groupId>org.apache.httpcomponents</groupId>
379
      <artifactId>httpclient</artifactId>
380
    </dependency>
381

    
382
    <!-- For Unit Tests Start -->
383
	<!-- still needed? -->
384

    
385
    <dependency>
386
      <groupId>commons-dbcp</groupId>
387
      <artifactId>commons-dbcp</artifactId>
388
      <version>1.4</version>
389
    </dependency>
390
    <dependency>
391
      <groupId>commons-pool</groupId>
392
      <artifactId>commons-pool</artifactId>
393
      <version>1.5.4</version>
394
    </dependency>
395
 
396
    <!-- For Unit Tests End -->
397

    
398
    <!-- For Hibernate Mapping Start -->
399
    <dependency>
400
      <groupId>wsdl4j</groupId>
401
      <artifactId>wsdl4j</artifactId>
402
      <version>1.6.3</version>
403
    </dependency>
404
    <dependency>
405
      <groupId>javax.validation</groupId>
406
      <artifactId>validation-api</artifactId>
407
      <version>1.1.0.Final</version>
408
    </dependency>
409
    <!-- For Hibernate Mapping End -->
410
    
411
    <!-- KML/IIIF dependencies should not bee needed for the taxeditor, but at current the KMLDocumentBuilder 
412
         is used in the EditGeoService bean which is needed to display the distribution maps in the editor.
413
     -->
414
     <dependency>
415
        <groupId>de.micromata.jak</groupId>
416
        <artifactId>JavaAPIforKml</artifactId>
417
        <version>2.2.1</version><!-- must be same version as in cdmlib -->
418
    </dependency>
419
    <dependency>
420
        <groupId>de.digitalcollections.iiif</groupId>
421
        <artifactId>iiif-apis</artifactId>
422
        <version>0.3.7</version>
423
    </dependency>
424
  </dependencies>
425
</project>
426

    
(5-5/5)