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>3.13.0-SNAPSHOT
</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>net.sourceforge.jtds
</groupId>
70 <artifactId>jtds
</artifactId>
73 <groupId>mysql
</groupId>
74 <artifactId>mysql-connector-java
</artifactId>
77 <groupId>org.postgresql
</groupId>
78 <artifactId>postgresql
</artifactId>
81 <groupId>org.hsqldb
</groupId>
82 <artifactId>hsqldb
</artifactId>
85 <groupId>com.microsoft.sqlserver
</groupId>
86 <artifactId>jdbc4
</artifactId>
89 <groupId>oracle
</groupId>
90 <artifactId>ojdbc14
</artifactId>
93 <groupId>com.h2database
</groupId>
94 <artifactId>h2
</artifactId>
97 <groupId>com.mchange
</groupId>
98 <artifactId>c3p0
</artifactId>
103 <groupId>commons-io
</groupId>
104 <artifactId>commons-io
</artifactId>
107 <groupId>eu.etaxonomy
</groupId>
108 <artifactId>cdmlib-test
</artifactId>
112 <!-- TODO this is also offered by cdmlib-remote, can it be removed?
113 What does provided mean? -->
114 <groupId>javax.servlet
</groupId>
115 <artifactId>javax.servlet-api
</artifactId>
116 <scope>provided
</scope>
120 <groupId>xmlunit
</groupId>
121 <artifactId>xmlunit
</artifactId>
127 <groupId>org.springframework
</groupId>
128 <artifactId>spring-oxm
</artifactId>
134 <groupId>com.thoughtworks.xstream
</groupId>
135 <artifactId>xstream
</artifactId>
138 <groupId>xpp3
</groupId>
139 <artifactId>xpp3
</artifactId>
142 <groupId>stax
</groupId>
143 <artifactId>stax
</artifactId>
146 <!-- JSP TAG LIBS -->
148 <groupId>taglibs
</groupId>
149 <artifactId>standard
</artifactId>
150 <version>1.1.2</version>
153 <groupId>taglibs
</groupId>
154 <artifactId>x
</artifactId>
155 <version>1.1.2</version>
160 <groupId>io.springfox
</groupId>
161 <artifactId>springfox-swagger2
</artifactId>
163 <!-- dependencies for swagger-springmvc, added explicitly -->
165 <groupId>com.fasterxml.jackson.core
</groupId>
166 <artifactId>jackson-databind
</artifactId>
169 <groupId>com.fasterxml.jackson.core
</groupId>
170 <artifactId>jackson-core
</artifactId>
173 <groupId>com.fasterxml.jackson.core
</groupId>
174 <artifactId>jackson-annotations
</artifactId>
176 <!-- END of dependencies for swagger-springmvc, added explicitely -->
180 <groupId>junit
</groupId>
181 <artifactId>junit
</artifactId>
185 <!-- Connection Pooling and jdbc -->
187 <groupId>org.hibernate
</groupId>
188 <artifactId>hibernate-c3p0
</artifactId>
192 <artifactId>c3p0
</artifactId>
193 <groupId>com.mchange
</groupId>
198 <groupId>com.yourkit
</groupId>
199 <artifactId>yjp-controller-api-redist
</artifactId>
206 <!-- ${basedir}/src/test/resources -->
208 <!-- replace the place holders like ${...} in datasources.xml -->
209 <targetPath>${project.build.directory}/test-classes
</targetPath>
210 <filtering>true
</filtering>
211 <directory>${basedir}/src/test/resources
</directory>
213 <include>datasources.xml
</include>
217 <!-- all other test resources without filtering -->
218 <targetPath>test-classes
</targetPath>
219 <directory>${basedir}/src/test/resources
</directory>
221 <exclude>datasources.xml
</exclude>
225 <!-- all main resources without filtering -->
226 <targetPath>classes
</targetPath>
227 <directory>${basedir}/src/test/resources
</directory>
232 <artifactId>maven-failsafe-plugin
</artifactId>
233 <version>2.16</version>
235 <forkCount>3</forkCount>
236 <reuseForks>true
</reuseForks>
241 <goal>integration-test
</goal>
249 <groupId>org.eclipse.jetty
</groupId>
250 <artifactId>jetty-maven-plugin
</artifactId>
251 <version>9.1.3.v20140225
</version><!-- do not update, since later versions are no longer compatible to java 7 -->
253 <stopKey>stop
</stopKey>
254 <stopPort>9199</stopPort>
255 <scanIntervalSeconds>10</scanIntervalSeconds>
256 <useTestScope>true
</useTestScope>
257 <jettyXml>${basedir}/src/test/resources/etc/jetty/jetty.xml,${basedir}/src/test/resources/etc/jetty/jetty-http.xml
</jettyXml>
258 <!-- <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> -->
262 <name>cdm.datasource
</name>
263 <value>h2_cdmTest
</value>
267 The lucene index should be placed into the target folder,
268 so user.home needs to be set to this folder.
269 user.home needs to be overriden since it already
270 exists, thus the force option is turned on above
272 <name>user.home
</name>
273 <value>${basedir}/target/
</value>
276 <!-- datasources.xml is prepared by <plugins><resources>..</resources>
278 <name>cdm.beanDefinitionFile
</name>
279 <value>${project.build.directory}/test-classes/datasources.xml
</value>
286 <phase>pre-integration-test
</phase>
291 <scanIntervalSeconds>0</scanIntervalSeconds>
292 <daemon>true
</daemon>
297 <phase>post-integration-test
</phase>