1 |
252b7206
|
n.hoffmann
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
f2e32cd9
|
edit-jenkins
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
3 |
252b7206
|
n.hoffmann
|
<modelVersion>4.0.0</modelVersion>
|
4 |
|
|
<parent>
|
5 |
|
|
<artifactId>cdmlib-parent</artifactId>
|
6 |
|
|
<groupId>eu.etaxonomy</groupId>
|
7 |
7224d141
|
jenkins
|
<version>4.1.0</version>
|
8 |
96cb908c
|
Andreas Kohlbecker
|
<relativePath>../pom.xml</relativePath>
|
9 |
252b7206
|
n.hoffmann
|
</parent>
|
10 |
180e68a8
|
Andreas Kohlbecker
|
|
11 |
252b7206
|
n.hoffmann
|
<groupId>eu.etaxonomy</groupId>
|
12 |
afbed711
|
Cherian Mathew
|
<artifactId>cdmlib-remote-webapp</artifactId>
|
13 |
252b7206
|
n.hoffmann
|
<name>CDM Remote Webapp</name>
|
14 |
|
|
<packaging>war</packaging>
|
15 |
180e68a8
|
Andreas Kohlbecker
|
|
16 |
|
|
<properties>
|
17 |
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
18 |
|
|
</properties>
|
19 |
|
|
|
20 |
252b7206
|
n.hoffmann
|
<scm>
|
21 |
|
|
<connection>
|
22 |
fe8e39ef
|
edit-jenkins
|
scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/
|
23 |
252b7206
|
n.hoffmann
|
</connection>
|
24 |
|
|
<developerConnection>
|
25 |
fe8e39ef
|
edit-jenkins
|
scm:svn:https://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/
|
26 |
252b7206
|
n.hoffmann
|
</developerConnection>
|
27 |
|
|
<url>
|
28 |
fe8e39ef
|
edit-jenkins
|
http://dev.e-taxonomy.eu/trac/browser/trunk/cdmlib/cdmlib-remote/
|
29 |
252b7206
|
n.hoffmann
|
</url>
|
30 |
|
|
</scm>
|
31 |
180e68a8
|
Andreas Kohlbecker
|
|
32 |
7a61c9d3
|
Cherian Mathew
|
<profiles>
|
33 |
96cb908c
|
Andreas Kohlbecker
|
<profile>
|
34 |
|
|
<id>local-repository</id>
|
35 |
|
|
<activation>
|
36 |
|
|
<property>
|
37 |
|
|
<name>localrepo</name>
|
38 |
|
|
</property>
|
39 |
|
|
</activation>
|
40 |
|
|
<repositories>
|
41 |
|
|
<repository>
|
42 |
|
|
<id>EditLocalRepository</id>
|
43 |
|
|
<url>file://${localrepo}/eu/etaxonomy/</url>
|
44 |
|
|
<releases>
|
45 |
|
|
<enabled>false</enabled>
|
46 |
|
|
<updatePolicy>always</updatePolicy>
|
47 |
|
|
</releases>
|
48 |
|
|
<snapshots>
|
49 |
|
|
<enabled>true</enabled>
|
50 |
|
|
<updatePolicy>always</updatePolicy>
|
51 |
|
|
</snapshots>
|
52 |
|
|
</repository>
|
53 |
|
|
</repositories>
|
54 |
|
|
</profile>
|
55 |
|
|
</profiles>
|
56 |
|
|
|
57 |
252b7206
|
n.hoffmann
|
<dependencies>
|
58 |
|
|
<dependency>
|
59 |
|
|
<groupId>eu.etaxonomy</groupId>
|
60 |
|
|
<artifactId>cdmlib-remote</artifactId>
|
61 |
cbaa793a
|
Andreas Kohlbecker
|
<exclusions>
|
62 |
|
|
<!--
|
63 |
|
|
exclude all jdbc drivers from the war.
|
64 |
|
|
Jdbc drivers must only be added to {APPLICATION_CONTAINER}/lib
|
65 |
|
|
see http://dev.e-taxonomy.eu/trac/ticket/4955
|
66 |
|
|
and http://stackoverflow.com/questions/6981564/why-must-the-jdbc-driver-be-put-in-tomcat-home-lib-folder
|
67 |
|
|
-->
|
68 |
|
|
<exclusion>
|
69 |
a991c122
|
Andreas Kohlbecker
|
<groupId>net.sourceforge.jtds</groupId>
|
70 |
|
|
<artifactId>jtds</artifactId>
|
71 |
cbaa793a
|
Andreas Kohlbecker
|
</exclusion>
|
72 |
|
|
<exclusion>
|
73 |
|
|
<groupId>mysql</groupId>
|
74 |
a991c122
|
Andreas Kohlbecker
|
<artifactId>mysql-connector-java</artifactId>
|
75 |
cbaa793a
|
Andreas Kohlbecker
|
</exclusion>
|
76 |
|
|
<exclusion>
|
77 |
a991c122
|
Andreas Kohlbecker
|
<groupId>org.postgresql</groupId>
|
78 |
|
|
<artifactId>postgresql</artifactId>
|
79 |
|
|
</exclusion>
|
80 |
|
|
<exclusion>
|
81 |
|
|
<groupId>org.hsqldb</groupId>
|
82 |
|
|
<artifactId>hsqldb</artifactId>
|
83 |
|
|
</exclusion>
|
84 |
|
|
<exclusion>
|
85 |
|
|
<groupId>com.microsoft.sqlserver</groupId>
|
86 |
|
|
<artifactId>jdbc4</artifactId>
|
87 |
cbaa793a
|
Andreas Kohlbecker
|
</exclusion>
|
88 |
|
|
<exclusion>
|
89 |
|
|
<groupId>oracle</groupId>
|
90 |
|
|
<artifactId>ojdbc14</artifactId>
|
91 |
|
|
</exclusion>
|
92 |
|
|
<exclusion>
|
93 |
a991c122
|
Andreas Kohlbecker
|
<groupId>com.h2database</groupId>
|
94 |
|
|
<artifactId>h2</artifactId>
|
95 |
|
|
</exclusion>
|
96 |
|
|
<exclusion>
|
97 |
|
|
<groupId>com.mchange</groupId>
|
98 |
|
|
<artifactId>c3p0</artifactId>
|
99 |
cbaa793a
|
Andreas Kohlbecker
|
</exclusion>
|
100 |
|
|
</exclusions>
|
101 |
252b7206
|
n.hoffmann
|
</dependency>
|
102 |
43e6b43d
|
Andreas Kohlbecker
|
<dependency>
|
103 |
|
|
<groupId>commons-io</groupId>
|
104 |
|
|
<artifactId>commons-io</artifactId>
|
105 |
|
|
</dependency>
|
106 |
5830445c
|
Andreas Kohlbecker
|
<dependency>
|
107 |
|
|
<groupId>eu.etaxonomy</groupId>
|
108 |
|
|
<artifactId>cdmlib-test</artifactId>
|
109 |
ab08d708
|
Andreas Kohlbecker
|
<scope>test</scope>
|
110 |
5830445c
|
Andreas Kohlbecker
|
</dependency>
|
111 |
96cb908c
|
Andreas Kohlbecker
|
<dependency>
|
112 |
fcb2c8b8
|
Andreas Kohlbecker
|
<!-- TODO this is also offered by cdmlib-remote, can it be removed?
|
113 |
96cb908c
|
Andreas Kohlbecker
|
What does provided mean? -->
|
114 |
|
|
<groupId>javax.servlet</groupId>
|
115 |
7a61c9d3
|
Cherian Mathew
|
<artifactId>javax.servlet-api</artifactId>
|
116 |
96cb908c
|
Andreas Kohlbecker
|
<scope>provided</scope>
|
117 |
|
|
</dependency>
|
118 |
|
|
|
119 |
|
|
<dependency>
|
120 |
|
|
<groupId>xmlunit</groupId>
|
121 |
|
|
<artifactId>xmlunit</artifactId>
|
122 |
|
|
</dependency>
|
123 |
|
|
<!-- JsonView -->
|
124 |
43e6b43d
|
Andreas Kohlbecker
|
<!--
|
125 |
|
|
-->
|
126 |
96cb908c
|
Andreas Kohlbecker
|
<dependency>
|
127 |
|
|
<groupId>org.springframework</groupId>
|
128 |
71e146f7
|
Andreas Müller
|
<artifactId>spring-oxm</artifactId>
|
129 |
96cb908c
|
Andreas Kohlbecker
|
</dependency>
|
130 |
|
|
|
131 |
43e6b43d
|
Andreas Kohlbecker
|
<!-- XmlView
|
132 |
|
|
-->
|
133 |
96cb908c
|
Andreas Kohlbecker
|
<dependency>
|
134 |
|
|
<groupId>com.thoughtworks.xstream</groupId>
|
135 |
|
|
<artifactId>xstream</artifactId>
|
136 |
|
|
</dependency>
|
137 |
|
|
<dependency>
|
138 |
|
|
<groupId>xpp3</groupId>
|
139 |
|
|
<artifactId>xpp3</artifactId>
|
140 |
|
|
</dependency>
|
141 |
|
|
<dependency>
|
142 |
|
|
<groupId>stax</groupId>
|
143 |
|
|
<artifactId>stax</artifactId>
|
144 |
|
|
</dependency>
|
145 |
|
|
|
146 |
|
|
<!-- JSP TAG LIBS -->
|
147 |
|
|
<dependency>
|
148 |
|
|
<groupId>taglibs</groupId>
|
149 |
|
|
<artifactId>standard</artifactId>
|
150 |
|
|
<version>1.1.2</version>
|
151 |
|
|
</dependency>
|
152 |
|
|
<dependency>
|
153 |
|
|
<groupId>taglibs</groupId>
|
154 |
|
|
<artifactId>x</artifactId>
|
155 |
|
|
<version>1.1.2</version>
|
156 |
|
|
<type>tld</type>
|
157 |
|
|
</dependency>
|
158 |
30936368
|
Andreas Kohlbecker
|
<!-- swagger -->
|
159 |
|
|
<dependency>
|
160 |
e6a83c5b
|
Andreas Kohlbecker
|
<groupId>io.springfox</groupId>
|
161 |
|
|
<artifactId>springfox-swagger2</artifactId>
|
162 |
4ccc0ea3
|
Andreas Kohlbecker
|
<scope>test</scope>
|
163 |
30936368
|
Andreas Kohlbecker
|
</dependency>
|
164 |
2e6412f2
|
Andreas Kohlbecker
|
<!--
|
165 |
|
|
dependencies for springfox-swagger2, added explicitly to pin the version
|
166 |
|
|
these dependencies are also required by the cdmlib!
|
167 |
|
|
-->
|
168 |
30936368
|
Andreas Kohlbecker
|
<dependency>
|
169 |
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
170 |
|
|
<artifactId>jackson-databind</artifactId>
|
171 |
|
|
</dependency>
|
172 |
252b7206
|
n.hoffmann
|
<dependency>
|
173 |
30936368
|
Andreas Kohlbecker
|
<groupId>com.fasterxml.jackson.core</groupId>
|
174 |
|
|
<artifactId>jackson-core</artifactId>
|
175 |
|
|
</dependency>
|
176 |
|
|
<dependency>
|
177 |
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
178 |
|
|
<artifactId>jackson-annotations</artifactId>
|
179 |
|
|
</dependency>
|
180 |
fcb2c8b8
|
Andreas Kohlbecker
|
<!-- END of dependencies for swagger-springmvc, added explicitely -->
|
181 |
43e6b43d
|
Andreas Kohlbecker
|
|
182 |
30936368
|
Andreas Kohlbecker
|
<!-- testing -->
|
183 |
946bbfb5
|
Andreas Müller
|
<dependency>
|
184 |
252b7206
|
n.hoffmann
|
<groupId>junit</groupId>
|
185 |
|
|
<artifactId>junit</artifactId>
|
186 |
|
|
<scope>test</scope>
|
187 |
|
|
</dependency>
|
188 |
43e6b43d
|
Andreas Kohlbecker
|
|
189 |
ca3e00f4
|
Andreas Kohlbecker
|
<!-- Connection Pooling and jdbc -->
|
190 |
|
|
<dependency>
|
191 |
|
|
<groupId>org.hibernate</groupId>
|
192 |
|
|
<artifactId>hibernate-c3p0</artifactId>
|
193 |
|
|
<scope>test</scope>
|
194 |
|
|
</dependency>
|
195 |
|
|
<dependency>
|
196 |
|
|
<artifactId>c3p0</artifactId>
|
197 |
|
|
<groupId>com.mchange</groupId>
|
198 |
f37f981e
|
Andreas Kohlbecker
|
<scope>test</scope>
|
199 |
ca3e00f4
|
Andreas Kohlbecker
|
</dependency>
|
200 |
43e6b43d
|
Andreas Kohlbecker
|
<!-- Profiling -->
|
201 |
|
|
<dependency>
|
202 |
|
|
<groupId>com.yourkit</groupId>
|
203 |
|
|
<artifactId>yjp-controller-api-redist</artifactId>
|
204 |
|
|
<scope>test</scope>
|
205 |
|
|
</dependency>
|
206 |
252b7206
|
n.hoffmann
|
</dependencies>
|
207 |
180e68a8
|
Andreas Kohlbecker
|
|
208 |
96cb908c
|
Andreas Kohlbecker
|
<build>
|
209 |
7a61c9d3
|
Cherian Mathew
|
<resources>
|
210 |
96cb908c
|
Andreas Kohlbecker
|
<resource>
|
211 |
0e847a56
|
Andreas Kohlbecker
|
<!-- replace the place holders like ${...} in datasources.xml -->
|
212 |
96cb908c
|
Andreas Kohlbecker
|
<filtering>true</filtering>
|
213 |
8d3c3996
|
Katja Luther
|
<directory>src/test/resources</directory>
|
214 |
4ccc0ea3
|
Andreas Kohlbecker
|
<targetPath>../test-classes</targetPath>
|
215 |
96cb908c
|
Andreas Kohlbecker
|
<includes>
|
216 |
7a61c9d3
|
Cherian Mathew
|
<include>datasources.xml</include>
|
217 |
96cb908c
|
Andreas Kohlbecker
|
</includes>
|
218 |
|
|
</resource>
|
219 |
|
|
<resource>
|
220 |
7a61c9d3
|
Cherian Mathew
|
<!-- all other test resources without filtering -->
|
221 |
4ccc0ea3
|
Andreas Kohlbecker
|
<directory>src/test/resources</directory>
|
222 |
|
|
<targetPath>../test-classes</targetPath>
|
223 |
96cb908c
|
Andreas Kohlbecker
|
<excludes>
|
224 |
7a61c9d3
|
Cherian Mathew
|
<exclude>datasources.xml</exclude>
|
225 |
96cb908c
|
Andreas Kohlbecker
|
</excludes>
|
226 |
|
|
</resource>
|
227 |
0e847a56
|
Andreas Kohlbecker
|
<resource>
|
228 |
7a61c9d3
|
Cherian Mathew
|
<!-- all main resources without filtering -->
|
229 |
4ccc0ea3
|
Andreas Kohlbecker
|
<directory>src/main/resources</directory>
|
230 |
0e847a56
|
Andreas Kohlbecker
|
</resource>
|
231 |
7a61c9d3
|
Cherian Mathew
|
</resources>
|
232 |
96cb908c
|
Andreas Kohlbecker
|
<plugins>
|
233 |
|
|
<plugin>
|
234 |
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
235 |
|
|
<version>2.16</version>
|
236 |
|
|
<configuration>
|
237 |
|
|
<forkCount>3</forkCount>
|
238 |
|
|
<reuseForks>true</reuseForks>
|
239 |
|
|
</configuration>
|
240 |
|
|
<executions>
|
241 |
|
|
<execution>
|
242 |
|
|
<goals>
|
243 |
|
|
<goal>integration-test</goal>
|
244 |
|
|
<goal>verify</goal>
|
245 |
|
|
</goals>
|
246 |
|
|
</execution>
|
247 |
|
|
</executions>
|
248 |
|
|
</plugin>
|
249 |
|
|
<plugin>
|
250 |
|
|
<groupId>org.eclipse.jetty</groupId>
|
251 |
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
252 |
45090e06
|
Andreas Kohlbecker
|
<version>9.1.3.v20140225</version><!-- do not update, since later versions are no longer compatible to java 7 -->
|
253 |
96cb908c
|
Andreas Kohlbecker
|
<configuration>
|
254 |
7a61c9d3
|
Cherian Mathew
|
<stopKey>stop</stopKey>
|
255 |
|
|
<stopPort>9199</stopPort>
|
256 |
|
|
<scanIntervalSeconds>10</scanIntervalSeconds>
|
257 |
f37f981e
|
Andreas Kohlbecker
|
<useTestScope>true</useTestScope>
|
258 |
7a61c9d3
|
Cherian Mathew
|
<jettyXml>${basedir}/src/test/resources/etc/jetty/jetty.xml,${basedir}/src/test/resources/etc/jetty/jetty-http.xml</jettyXml>
|
259 |
|
|
<!-- <jettyXml>./src/test/resources/etc/jetty/jetty.xml,./src/test/resources/etc/jetty/jetty-http.xml,./src/test/resources/etc/jetty/jetty-ssl.xml,./src/test/resources/etc/jetty/jetty-https.xml</jettyXml> -->
|
260 |
|
|
<systemProperties>
|
261 |
45090e06
|
Andreas Kohlbecker
|
<force>true</force>
|
262 |
7a61c9d3
|
Cherian Mathew
|
<systemProperty>
|
263 |
|
|
<name>cdm.datasource</name>
|
264 |
|
|
<value>h2_cdmTest</value>
|
265 |
|
|
</systemProperty>
|
266 |
45090e06
|
Andreas Kohlbecker
|
<systemProperty>
|
267 |
|
|
<!--
|
268 |
|
|
The lucene index should be placed into the target folder,
|
269 |
|
|
so user.home needs to be set to this folder.
|
270 |
|
|
user.home needs to be overriden since it already
|
271 |
|
|
exists, thus the force option is turned on above
|
272 |
|
|
-->
|
273 |
|
|
<name>user.home</name>
|
274 |
|
|
<value>${basedir}/target/</value>
|
275 |
|
|
</systemProperty>
|
276 |
7a61c9d3
|
Cherian Mathew
|
<systemProperty>
|
277 |
fcb2c8b8
|
Andreas Kohlbecker
|
<!-- datasources.xml is prepared by <plugins><resources>..</resources>
|
278 |
7a61c9d3
|
Cherian Mathew
|
above -->
|
279 |
|
|
<name>cdm.beanDefinitionFile</name>
|
280 |
|
|
<value>${project.build.directory}/test-classes/datasources.xml</value>
|
281 |
|
|
</systemProperty>
|
282 |
4ccc0ea3
|
Andreas Kohlbecker
|
<systemProperty>
|
283 |
|
|
<!--
|
284 |
|
|
start with swagger profile so that the swagger doc
|
285 |
|
|
can be generated
|
286 |
|
|
-->
|
287 |
|
|
<name>spring.profiles.active</name>
|
288 |
|
|
<value>swagger</value>
|
289 |
|
|
</systemProperty>
|
290 |
7a61c9d3
|
Cherian Mathew
|
</systemProperties>
|
291 |
96cb908c
|
Andreas Kohlbecker
|
</configuration>
|
292 |
|
|
<executions>
|
293 |
|
|
<execution>
|
294 |
|
|
<id>start-jetty</id>
|
295 |
|
|
<phase>pre-integration-test</phase>
|
296 |
|
|
<goals>
|
297 |
|
|
<goal>start</goal>
|
298 |
|
|
</goals>
|
299 |
|
|
<configuration>
|
300 |
|
|
<scanIntervalSeconds>0</scanIntervalSeconds>
|
301 |
|
|
<daemon>true</daemon>
|
302 |
|
|
</configuration>
|
303 |
|
|
</execution>
|
304 |
|
|
<execution>
|
305 |
|
|
<id>stop-jetty</id>
|
306 |
|
|
<phase>post-integration-test</phase>
|
307 |
|
|
<goals>
|
308 |
|
|
<goal>stop</goal>
|
309 |
|
|
</goals>
|
310 |
|
|
</execution>
|
311 |
|
|
</executions>
|
312 |
|
|
</plugin>
|
313 |
4ccc0ea3
|
Andreas Kohlbecker
|
<plugin>
|
314 |
|
|
<groupId>org.apache.maven.plugins</groupId>
|
315 |
|
|
<artifactId>maven-war-plugin</artifactId>
|
316 |
|
|
<version>2.6</version>
|
317 |
|
|
<executions>
|
318 |
|
|
<execution>
|
319 |
|
|
<!--
|
320 |
|
|
The war must be created after running the integration-tests,
|
321 |
|
|
since the SwaggerGroupsIT test populates the classes/api-docs-static/
|
322 |
|
|
folder with static swagger doc files. The are otherwise not packed
|
323 |
|
|
into the wae file.
|
324 |
|
|
-->
|
325 |
|
|
<phase>verify</phase>
|
326 |
|
|
<goals>
|
327 |
|
|
<goal>war</goal>
|
328 |
|
|
</goals>
|
329 |
|
|
</execution>
|
330 |
|
|
</executions>
|
331 |
|
|
</plugin>
|
332 |
8d3c3996
|
Katja Luther
|
<plugin>
|
333 |
|
|
<artifactId>maven-resources-plugin</artifactId>
|
334 |
|
|
<version>2.7</version>
|
335 |
|
|
<configuration>
|
336 |
|
|
<escapeWindowsPaths>false</escapeWindowsPaths>
|
337 |
|
|
</configuration>
|
338 |
|
|
</plugin>
|
339 |
|
|
|
340 |
96cb908c
|
Andreas Kohlbecker
|
</plugins>
|
341 |
|
|
</build>
|
342 |
252b7206
|
n.hoffmann
|
</project>
|