ref #5752 remove cdmlib-remote-webapp.war from taxeditor.cdmlib
[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.17.0-SNAPSHOT</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,commons-beanutils
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 </includeArtifactIds>
78 <outputDirectory>
79 ${basedir}/lib
80 </outputDirectory>
81 <overWriteReleases>true</overWriteReleases>
82 <overWriteSnapshots>true</overWriteSnapshots>
83 <excludeTransitive>false</excludeTransitive>
84 </configuration>
85 </execution>
86 </executions>
87 </plugin>
88 <plugin>
89 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-antrun-plugin</artifactId>
91 <version>1.7</version>
92 <executions>
93 <execution>
94 <id>update-snapshot-jar-names</id>
95 <phase>validate</phase>
96 <goals>
97 <goal>run</goal>
98 </goals>
99 <configuration>
100 <target>
101 <echo>Anonymizing war</echo>
102 <move todir="./src/main/resources/etc/jetty">
103 <fileset dir="./src/main/resources/etc/jetty" />
104 <mapper type="regexp"
105 from="(^cdmlib\-remote\-webapp).*(\.war)" to="\1\2" />
106 </move>
107 <echo>Update cdmlib jars to SNAPSHOT when build with
108 timestamp
109 </echo>
110 <move todir="./lib">
111 <fileset dir="./lib" />
112 <mapper type="regexp"
113 from="(^cdmlib\-.*\-\d+\.\d+\.\d+\-)[\d.-]+(\.jar)"
114 to="\1SNAPSHOT\2" />
115 </move>
116 <move todir="./lib">
117 <fileset dir="./lib" />
118 <mapper type="regexp"
119 from="(^cdmlib\-.*\-\d+\.\d+\.\d+\-)[\d.-]+(\-sources\.jar)"
120 to="\1SNAPSHOT\2" />
121 </move>
122 </target>
123 </configuration>
124 </execution>
125 <execution>
126 <id>remove-existing-jars</id>
127 <phase>clean</phase>
128 <goals>
129 <goal>run</goal>
130 </goals>
131 <configuration>
132 <target>
133 <echo>Remove all cdmlib jars</echo>
134 <delete>
135 <fileset dir="./lib" includes="cdmlib-*" />
136 </delete>
137 </target>
138 </configuration>
139 </execution>
140 </executions>
141 </plugin>
142 </plugins>
143 </build>
144 <profiles>
145 <profile>
146 <id>copyAllJars</id>
147 <build>
148 <plugins>
149 <plugin>
150 <groupId>org.apache.maven.plugins</groupId>
151 <artifactId>maven-dependency-plugin</artifactId>
152 <version>2.4</version>
153 <executions>
154 <execution>
155 <id>copy-all-dependencies</id>
156 <phase>validate</phase>
157 <goals>
158 <goal>copy-dependencies</goal>
159 </goals>
160 <configuration>
161 <excludeArtifactIds>
162 cdmlib-remote-webapp
163 </excludeArtifactIds>
164 <outputDirectory>${basedir}/lib</outputDirectory>
165 <overWriteReleases>true</overWriteReleases>
166 <overWriteSnapshots>true</overWriteSnapshots>
167 <excludeTransitive>true</excludeTransitive>
168 </configuration>
169 </execution>
170 </executions>
171 </plugin>
172 </plugins>
173 </build>
174 </profile>
175 </profiles>
176 <repositories>
177 <repository>
178 <id>SpringSource Enterprise Bundle Repository - External Bundle
179 Milestones
180 </id>
181 <url>http://repository.springsource.com/maven/bundles/milestone
182 </url>
183 </repository>
184 <repository>
185 <id>SpringSource Enterprise Bundle Repository - SpringSource
186 Bundle
187 Releases
188 </id>
189 <url>http://repository.springsource.com/maven/bundles/release
190 </url>
191 </repository>
192 <repository>
193 <id>SpringSource Enterprise Bundle Repository - External Bundle
194 Releases
195 </id>
196 <url>http://repository.springsource.com/maven/bundles/external
197 </url>
198 </repository>
199 <repository>
200 <id>repository.springsource.release</id>
201 <name>SpringSource GA Repository</name>
202 <url>http://repo.springsource.org/release</url>
203 </repository>
204 </repositories>
205 <dependencies>
206 <dependency>
207 <groupId>eu.etaxonomy</groupId>
208 <artifactId>cdmlib-remote-webapp</artifactId>
209 <version>${cdmlib.version}</version>
210 <type>war</type>
211 </dependency>
212 <dependency>
213 <groupId>eu.etaxonomy</groupId>
214 <artifactId>cdmlib-commons</artifactId>
215 <version>${cdmlib.version}</version>
216 </dependency>
217 <dependency>
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-persistence</artifactId>
225 <version>${cdmlib.version}</version>
226 </dependency>
227 <dependency>
228 <groupId>eu.etaxonomy</groupId>
229 <artifactId>cdmlib-remote</artifactId>
230 <version>${cdmlib.version}</version>
231 </dependency>
232 <dependency>
233 <groupId>eu.etaxonomy</groupId>
234 <artifactId>cdmlib-print</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>eu.etaxonomy</groupId>
244 <artifactId>cdmlib-io</artifactId>
245 <version>${cdmlib.version}</version>
246 </dependency>
247 <dependency>
248 <groupId>eu.etaxonomy</groupId>
249 <artifactId>cdmlib-ext</artifactId>
250 <version>${cdmlib.version}</version>
251 </dependency>
252 <dependency>
253 <groupId>eu.etaxonomy</groupId>
254 <artifactId>cdmlib-cache</artifactId>
255 <version>${cdmlib.version}</version>
256 </dependency>
257 <dependency>
258 <groupId>dom4j</groupId>
259 <artifactId>dom4j</artifactId>
260 <version>1.6</version>
261 </dependency>
262 <dependency>
263 <groupId>log4j</groupId>
264 <artifactId>log4j</artifactId>
265 <version>1.2.17</version>
266 </dependency>
267 <dependency>
268 <groupId>org.jdom</groupId>
269 <artifactId>jdom</artifactId>
270 <version>1.1.3</version>
271 </dependency>
272 <dependency>
273 <groupId>org.springframework</groupId>
274 <artifactId>spring-context</artifactId>
275 <version>4.2.4.RELEASE</version>
276 </dependency>
277 <dependency>
278 <groupId>org.springframework</groupId>
279 <artifactId>spring-context-support</artifactId>
280 <version>4.2.4.RELEASE</version>
281 </dependency>
282 <dependency>
283 <groupId>org.springframework</groupId>
284 <artifactId>spring-aspects</artifactId>
285 <version>4.2.4.RELEASE</version>
286 </dependency>
287 <dependency>
288 <groupId>org.springframework</groupId>
289 <artifactId>spring-test</artifactId>
290 <version>4.2.4.RELEASE</version>
291 </dependency>
292 <dependency>
293 <groupId>org.springframework</groupId>
294 <artifactId>spring-beans</artifactId>
295 <version>4.2.4.RELEASE</version>
296 </dependency>
297 <dependency>
298 <groupId>org.springframework</groupId>
299 <artifactId>spring-tx</artifactId>
300 <version>4.2.4.RELEASE</version>
301 </dependency>
302 <dependency>
303 <groupId>org.springframework</groupId>
304 <artifactId>spring-web</artifactId>
305 <version>4.2.4.RELEASE</version>
306 </dependency>
307 <dependency>
308 <groupId>org.springframework</groupId>
309 <artifactId>spring-core</artifactId>
310 <version>4.2.4.RELEASE</version>
311 </dependency>
312 <dependency>
313 <groupId>org.springframework</groupId>
314 <artifactId>spring-aop</artifactId>
315 <version>4.2.4.RELEASE</version>
316 </dependency>
317 <dependency>
318 <groupId>org.springframework</groupId>
319 <artifactId>spring-expression</artifactId>
320 <version>4.2.4.RELEASE</version>
321 </dependency>
322 <dependency>
323 <groupId>org.springframework</groupId>
324 <artifactId>spring-orm</artifactId>
325 <version>4.2.4.RELEASE</version>
326 </dependency>
327 <dependency>
328 <groupId>org.springframework</groupId>
329 <artifactId>spring-jdbc</artifactId>
330 <version>4.2.4.RELEASE</version>
331 </dependency>
332 <dependency>
333 <groupId>org.springframework.security</groupId>
334 <artifactId>spring-security-core</artifactId>
335 <version>4.0.3.RELEASE</version>
336 </dependency>
337 <dependency>
338 <groupId>org.springframework.security</groupId>
339 <artifactId>spring-security-config</artifactId>
340 <version>4.0.3.RELEASE</version>
341 </dependency>
342 <dependency>
343 <groupId>org.springframework.security</groupId>
344 <artifactId>spring-security-remoting</artifactId>
345 <version>4.0.3.RELEASE</version>
346 </dependency>
347 <dependency>
348 <groupId>commons-lang</groupId>
349 <artifactId>commons-lang</artifactId>
350 <version>2.6</version>
351 </dependency>
352 <dependency>
353 <groupId>commons-beanutils</groupId>
354 <artifactId>commons-beanutils</artifactId>
355 <version>1.9.4</version>
356 </dependency>
357 <dependency>
358 <groupId>au.com.bytecode</groupId>
359 <artifactId>opencsv</artifactId>
360 <version>2.4</version>
361 </dependency>
362
363 <dependency>
364 <groupId>org.apache.httpcomponents</groupId>
365 <artifactId>httpclient</artifactId>
366 </dependency>
367
368 <!-- For Unit Tests Start -->
369 <!-- still needed? -->
370
371 <dependency>
372 <groupId>commons-dbcp</groupId>
373 <artifactId>commons-dbcp</artifactId>
374 <version>1.4</version>
375 </dependency>
376 <dependency>
377 <groupId>commons-pool</groupId>
378 <artifactId>commons-pool</artifactId>
379 <version>1.5.4</version>
380 </dependency>
381
382 <!-- For Unit Tests End -->
383
384 <!-- For Hibernate Mapping Start -->
385 <dependency>
386 <groupId>wsdl4j</groupId>
387 <artifactId>wsdl4j</artifactId>
388 <version>1.6.3</version>
389 </dependency>
390 <dependency>
391 <groupId>javax.validation</groupId>
392 <artifactId>validation-api</artifactId>
393 <version>1.1.0.Final</version>
394 </dependency>
395 <!-- For Hibernate Mapping End -->
396
397 <!-- KML/IIIF dependencies should not bee needed for the taxeditor, but at current the KMLDocumentBuilder
398 is used in the EditGeoService bean which is needed to display the distribution maps in the editor.
399 -->
400 <dependency>
401 <groupId>de.micromata.jak</groupId>
402 <artifactId>JavaAPIforKml</artifactId>
403 <version>2.2.1</version><!-- must be same version as in cdmlib -->
404 </dependency>
405 <dependency>
406 <groupId>de.digitalcollections.iiif</groupId>
407 <artifactId>iiif-apis</artifactId>
408 <version>0.3.7</version>
409 </dependency>
410 </dependencies>
411 </project>
412