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" xsi:
schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <artifactId>cdmlib-parent
</artifactId>
6 <groupId>eu.etaxonomy
</groupId>
7 <version>4.6.0</version>
8 <relativePath>../pom.xml
</relativePath>
11 <groupId>eu.etaxonomy
</groupId>
12 <artifactId>cdmlib-remote-webapp
</artifactId>
13 <name>CDM Remote Webapp
</name>
14 <packaging>war
</packaging>
17 <project.build.sourceEncoding
>UTF-
8</project.build.sourceEncoding
>
22 scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/
25 scm:svn:https://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/
26 </developerConnection>
28 http://dev.e-taxonomy.eu/trac/browser/trunk/cdmlib/cdmlib-remote/
34 <id>local-repository
</id>
37 <name>localrepo
</name>
42 <id>EditLocalRepository
</id>
43 <url>file://${localrepo}/eu/etaxonomy/
</url>
45 <enabled>false
</enabled>
46 <updatePolicy>always
</updatePolicy>
49 <enabled>true
</enabled>
50 <updatePolicy>always
</updatePolicy>
59 <groupId>eu.etaxonomy
</groupId>
60 <artifactId>cdmlib-remote
</artifactId>
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
69 <groupId>eu.etaxonomy
</groupId>
70 <artifactId>cdmlib-db
</artifactId>
75 <groupId>commons-io
</groupId>
76 <artifactId>commons-io
</artifactId>
79 <groupId>eu.etaxonomy
</groupId>
80 <artifactId>cdmlib-test
</artifactId>
84 <!-- TODO this is also offered by cdmlib-remote, can it be removed?
85 What does provided mean? -->
86 <groupId>javax.servlet
</groupId>
87 <artifactId>javax.servlet-api
</artifactId>
88 <scope>provided
</scope>
92 <groupId>xmlunit
</groupId>
93 <artifactId>xmlunit
</artifactId>
99 <groupId>org.springframework
</groupId>
100 <artifactId>spring-oxm
</artifactId>
106 <groupId>com.thoughtworks.xstream
</groupId>
107 <artifactId>xstream
</artifactId>
110 <groupId>xpp3
</groupId>
111 <artifactId>xpp3
</artifactId>
114 <groupId>stax
</groupId>
115 <artifactId>stax
</artifactId>
118 <!-- JSP TAG LIBS -->
120 <groupId>taglibs
</groupId>
121 <artifactId>standard
</artifactId>
122 <version>1.1.2</version>
125 <groupId>taglibs
</groupId>
126 <artifactId>x
</artifactId>
127 <version>1.1.2</version>
132 <groupId>io.springfox
</groupId>
133 <artifactId>springfox-swagger2
</artifactId>
137 dependencies for springfox-swagger2, added explicitly to pin the version
138 these dependencies are also required by the cdmlib!
141 <groupId>com.fasterxml.jackson.core
</groupId>
142 <artifactId>jackson-databind
</artifactId>
145 <groupId>com.fasterxml.jackson.core
</groupId>
146 <artifactId>jackson-core
</artifactId>
149 <groupId>com.fasterxml.jackson.core
</groupId>
150 <artifactId>jackson-annotations
</artifactId>
152 <!-- END of dependencies for swagger-springmvc, added explicitely -->
156 <groupId>junit
</groupId>
157 <artifactId>junit
</artifactId>
161 <!-- Connection Pooling and jdbc -->
163 <groupId>org.hibernate
</groupId>
164 <artifactId>hibernate-c3p0
</artifactId>
167 <!-- <dependency> -->
168 <!-- <groupId>com.mchange</groupId> -->
169 <!-- <artifactId>c3p0</artifactId> -->
170 <!-- <scope>test</scope> -->
171 <!-- </dependency> -->
174 <groupId>com.yourkit
</groupId>
175 <artifactId>yjp-controller-api-redist
</artifactId>
183 <!-- replace the place holders like ${...} in datasources.xml -->
184 <filtering>true
</filtering>
185 <directory>src/test/resources
</directory>
186 <targetPath>../test-classes
</targetPath>
188 <include>datasources.xml
</include>
192 <!-- all other test resources without filtering -->
193 <directory>src/test/resources
</directory>
194 <targetPath>../test-classes
</targetPath>
196 <exclude>datasources.xml
</exclude>
200 <!-- all main resources without filtering -->
201 <directory>src/main/resources
</directory>
206 <artifactId>maven-failsafe-plugin
</artifactId>
207 <version>2.16</version>
209 <forkCount>3</forkCount>
210 <reuseForks>true
</reuseForks>
215 <goal>integration-test
</goal>
222 <groupId>org.eclipse.jetty
</groupId>
223 <artifactId>jetty-maven-plugin
</artifactId>
224 <version>9.4.1.v20170120
</version>
226 <stopKey>stop
</stopKey>
227 <stopPort>9199</stopPort>
228 <scanIntervalSeconds>10</scanIntervalSeconds>
229 <useTestScope>true
</useTestScope>
230 <jettyXml>${basedir}/src/test/resources/etc/jetty/jetty.xml,${basedir}/src/test/resources/etc/jetty/jetty-http.xml
</jettyXml>
231 <!-- <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> -->
235 <name>cdm.datasource
</name>
236 <value>h2_cdmTest
</value>
240 The lucene index should be placed into the target folder,
241 so user.home needs to be set to this folder.
242 user.home needs to be overriden since it already
243 exists, thus the force option is turned on above
245 <name>user.home
</name>
246 <value>${basedir}/target/
</value>
249 <!-- datasources.xml is prepared by <plugins><resources>..</resources>
251 <name>cdm.beanDefinitionFile
</name>
252 <value>${project.build.directory}/test-classes/datasources.xml
</value>
256 start with swagger profile so that the swagger doc
259 <name>spring.profiles.active
</name>
260 <value>swagger
</value>
267 <phase>pre-integration-test
</phase>
272 <scanIntervalSeconds>0</scanIntervalSeconds>
273 <daemon>true
</daemon>
278 <phase>post-integration-test
</phase>
286 <groupId>org.apache.maven.plugins
</groupId>
287 <artifactId>maven-war-plugin
</artifactId>
288 <version>2.6</version>
292 The war must be created after running the integration-tests,
293 since the SwaggerGroupsIT test populates the classes/api-docs-static/
294 folder with static swagger doc files. The are otherwise not packed
297 <phase>verify
</phase>
305 <artifactId>maven-resources-plugin
</artifactId>
306 <version>2.7</version>
308 <escapeWindowsPaths>false
</escapeWindowsPaths>