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>5.14.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 <id>local-repository
</id>
25 <name>localrepo
</name>
30 <id>EditLocalRepository
</id>
31 <url>file://${localrepo}/eu/etaxonomy/
</url>
33 <enabled>false
</enabled>
34 <updatePolicy>always
</updatePolicy>
37 <enabled>true
</enabled>
38 <updatePolicy>always
</updatePolicy>
47 <groupId>eu.etaxonomy
</groupId>
48 <artifactId>cdmlib-remote
</artifactId>
51 exclude all jdbc drivers from the war.
52 Jdbc drivers must only be added to {APPLICATION_CONTAINER}/lib
53 see http://dev.e-taxonomy.eu/trac/ticket/4955
54 and http://stackoverflow.com/questions/6981564/why-must-the-jdbc-driver-be-put-in-tomcat-home-lib-folder
57 <groupId>eu.etaxonomy
</groupId>
58 <artifactId>cdmlib-db
</artifactId>
63 <groupId>commons-io
</groupId>
64 <artifactId>commons-io
</artifactId>
67 <groupId>eu.etaxonomy
</groupId>
68 <artifactId>cdmlib-test
</artifactId>
72 <!-- TODO this is also offered by cdmlib-remote, can it be removed?
73 What does provided mean? -->
74 <groupId>javax.servlet
</groupId>
75 <artifactId>javax.servlet-api
</artifactId>
76 <scope>provided
</scope>
80 <groupId>xmlunit
</groupId>
81 <artifactId>xmlunit
</artifactId>
87 <groupId>org.springframework
</groupId>
88 <artifactId>spring-oxm
</artifactId>
94 <groupId>com.thoughtworks.xstream
</groupId>
95 <artifactId>xstream
</artifactId>
98 <groupId>xpp3
</groupId>
99 <artifactId>xpp3
</artifactId>
102 <groupId>stax
</groupId>
103 <artifactId>stax
</artifactId>
106 <!-- JSP TAG LIBS -->
108 <groupId>taglibs
</groupId>
109 <artifactId>standard
</artifactId>
110 <version>1.1.2</version>
113 <groupId>taglibs
</groupId>
114 <artifactId>x
</artifactId>
115 <version>1.1.2</version>
120 <groupId>io.springfox
</groupId>
121 <artifactId>springfox-swagger2
</artifactId>
125 dependencies for springfox-swagger2, added explicitly to pin the version
126 these dependencies are also required by the cdmlib!
129 <groupId>com.fasterxml.jackson.core
</groupId>
130 <artifactId>jackson-databind
</artifactId>
133 <groupId>com.fasterxml.jackson.core
</groupId>
134 <artifactId>jackson-core
</artifactId>
137 <groupId>com.fasterxml.jackson.core
</groupId>
138 <artifactId>jackson-annotations
</artifactId>
140 <!-- END of dependencies for swagger-springmvc, added explicitely -->
144 <groupId>junit
</groupId>
145 <artifactId>junit
</artifactId>
149 <!-- Connection Pooling and jdbc -->
151 <groupId>org.hibernate
</groupId>
152 <artifactId>hibernate-c3p0
</artifactId>
155 <!-- <dependency> -->
156 <!-- <groupId>com.mchange</groupId> -->
157 <!-- <artifactId>c3p0</artifactId> -->
158 <!-- <scope>test</scope> -->
159 <!-- </dependency> -->
162 <groupId>com.yourkit
</groupId>
163 <artifactId>yjp-controller-api-redist
</artifactId>
171 <!-- replace the place holders like ${...} in datasources.xml -->
172 <filtering>true
</filtering>
173 <directory>src/test/resources
</directory>
174 <targetPath>../test-classes
</targetPath>
176 <include>datasources.xml
</include>
180 <!-- all other test resources without filtering -->
181 <directory>src/test/resources
</directory>
182 <targetPath>../test-classes
</targetPath>
184 <exclude>datasources.xml
</exclude>
188 <!-- all main resources without filtering -->
189 <directory>src/main/resources
</directory>
194 <artifactId>maven-failsafe-plugin
</artifactId>
195 <version>2.16</version>
197 <forkCount>3</forkCount>
198 <reuseForks>true
</reuseForks>
203 <goal>integration-test
</goal>
210 <groupId>org.eclipse.jetty
</groupId>
211 <artifactId>jetty-maven-plugin
</artifactId>
212 <version>9.4.15.v20190215
</version>
214 <stopKey>stop
</stopKey>
215 <stopPort>9199</stopPort>
216 <scanIntervalSeconds>10</scanIntervalSeconds>
217 <useTestScope>true
</useTestScope>
219 jvmArgs will only be used when running mvn jetty:run-forked
221 <jvmArgs>-Xmx2000M -Dcdm.datasource=h2_cdmTest -Duser.home=${basedir}/target/target/ -Dcdm.beanDefinitionFile=${project.build.directory}/test-classes/datasources.xml -Dspring.profiles.active=remoting
</jvmArgs>
222 <jettyXml>${basedir}/src/test/resources/etc/jetty/jetty.xml,${basedir}/src/test/resources/etc/jetty/jetty-http.xml
</jettyXml>
223 <!-- <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> -->
227 <name>cdm.datasource
</name>
228 <value>h2_cdmTest
</value>
232 The lucene index should be placed into the target folder,
233 so user.home needs to be set to this folder.
234 user.home needs to be overriden since it already
235 exists, thus the force option is turned on above
237 <name>user.home
</name>
238 <value>${basedir}/target/
</value>
241 <!-- datasources.xml is prepared by <plugins><resources>..</resources>
243 <name>cdm.beanDefinitionFile
</name>
244 <value>${project.build.directory}/test-classes/datasources.xml
</value>
248 start with swagger profile so that the swagger doc
251 <name>spring.profiles.active
</name>
252 <value>swagger
</value>
259 <phase>pre-integration-test
</phase>
264 <scanIntervalSeconds>0</scanIntervalSeconds>
265 <daemon>true
</daemon>
270 <phase>post-integration-test
</phase>
278 <groupId>org.apache.maven.plugins
</groupId>
279 <artifactId>maven-war-plugin
</artifactId>
280 <version>2.6</version>
284 The war must be created after running the integration-tests,
285 since the SwaggerGroupsIT test populates the classes/api-docs-static/
286 folder with static swagger doc files. The are otherwise not packed
289 <phase>verify
</phase>
297 <artifactId>maven-resources-plugin
</artifactId>
298 <version>2.7</version>
300 <escapeWindowsPaths>false
</escapeWindowsPaths>