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.15.0</version>
8 <relativePath>../pom.xml
</relativePath>
10 <artifactId>cdmlib-remote-webapp
</artifactId>
11 <name>CDM Remote Webapp
</name>
12 <packaging>war
</packaging>
15 <project.build.sourceEncoding
>UTF-
8</project.build.sourceEncoding
>
17 no further args by now, see profiles for alternative run configurations -->
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>
43 <!-- ========================= PROFILE : db-create ========================= -->
44 <!-- How to execute from parent project:
45 1.) mvn package -DskipTests
46 2.) mvn integration-test -pl cdmlib-remote-webapp -Pdb-create
52 <name>db-create
</name>
56 <integrationTest.jvmArgs.cdm.datasource
>h2_cdm_blank
</integrationTest.jvmArgs.cdm.datasource
>
57 <integrationTest.jvmArgs.cdm.forceSchemaCreate
>true
</integrationTest.jvmArgs.cdm.forceSchemaCreate
>
58 <integrationTest.log4j.configuration
>${project.build.directory}/target/test-classes/log4j.properties
</integrationTest.log4j.configuration
>
63 <artifactId>maven-failsafe-plugin
</artifactId>
64 <version>2.16</version>
66 <forkCount>3</forkCount>
67 <reuseForks>true
</reuseForks>
72 <goal>integration-test
</goal>
77 <include>**/ForceSchemaCreateIT.java
</include>
86 <!-- ========================= DEFAULT-PROFILE : db-use ========================= -->
90 <activeByDefault>true
</activeByDefault>
96 <integrationTest.jvmArgs.cdm.datasource
>h2_cdmTest
</integrationTest.jvmArgs.cdm.datasource
>
97 <integrationTest.jvmArgs.cdm.forceSchemaCreate
>false
</integrationTest.jvmArgs.cdm.forceSchemaCreate
>
98 <integrationTest.log4j.configuration
>${project.build.directory}/target/test-classes/log4j.properties
</integrationTest.log4j.configuration
>
103 <artifactId>maven-failsafe-plugin
</artifactId>
104 <version>2.16</version>
106 <forkCount>3</forkCount>
107 <reuseForks>true
</reuseForks>
112 <goal>integration-test
</goal>
116 <systemPropertyVariables>
117 <cdm.datasource
>h2_cdmTest
</cdm.datasource
>
118 </systemPropertyVariables>
120 <exclude>**/ForceSchemaCreateIT.java
</exclude>
132 <groupId>eu.etaxonomy
</groupId>
133 <artifactId>cdmlib-remote
</artifactId>
135 <!-- exclude all jdbc drivers from the war. Jdbc drivers must only
136 be added to {APPLICATION_CONTAINER}/lib see http://dev.e-taxonomy.eu/trac/ticket/4955
137 and http://stackoverflow.com/questions/6981564/why-must-the-jdbc-driver-be-put-in-tomcat-home-lib-folder -->
139 <groupId>eu.etaxonomy
</groupId>
140 <artifactId>cdmlib-db
</artifactId>
145 <groupId>commons-io
</groupId>
146 <artifactId>commons-io
</artifactId>
149 <groupId>eu.etaxonomy
</groupId>
150 <artifactId>cdmlib-test
</artifactId>
154 <!-- TODO this is also offered by cdmlib-remote, can it be removed?
155 What does provided mean? -->
156 <groupId>javax.servlet
</groupId>
157 <artifactId>javax.servlet-api
</artifactId>
158 <scope>provided
</scope>
162 <groupId>xmlunit
</groupId>
163 <artifactId>xmlunit
</artifactId>
168 <groupId>org.springframework
</groupId>
169 <artifactId>spring-oxm
</artifactId>
174 <groupId>com.thoughtworks.xstream
</groupId>
175 <artifactId>xstream
</artifactId>
178 <groupId>xpp3
</groupId>
179 <artifactId>xpp3
</artifactId>
182 <groupId>stax
</groupId>
183 <artifactId>stax
</artifactId>
186 <!-- JSP TAG LIBS -->
188 <groupId>taglibs
</groupId>
189 <artifactId>standard
</artifactId>
190 <version>1.1.2</version>
193 <groupId>taglibs
</groupId>
194 <artifactId>x
</artifactId>
195 <version>1.1.2</version>
200 <groupId>io.springfox
</groupId>
201 <artifactId>springfox-swagger2
</artifactId>
204 <!-- dependencies for springfox-swagger2, added explicitly to pin the
205 version these dependencies are also required by the cdmlib! -->
207 <groupId>com.fasterxml.jackson.core
</groupId>
208 <artifactId>jackson-databind
</artifactId>
211 <groupId>com.fasterxml.jackson.core
</groupId>
212 <artifactId>jackson-core
</artifactId>
215 <groupId>com.fasterxml.jackson.core
</groupId>
216 <artifactId>jackson-annotations
</artifactId>
218 <!-- END of dependencies for swagger-springmvc, added explicitely -->
222 <groupId>junit
</groupId>
223 <artifactId>junit
</artifactId>
227 <!-- Connection Pooling and jdbc -->
229 <groupId>org.hibernate
</groupId>
230 <artifactId>hibernate-c3p0
</artifactId>
233 <!-- <dependency> -->
234 <!-- <groupId>com.mchange</groupId> -->
235 <!-- <artifactId>c3p0</artifactId> -->
236 <!-- <scope>test</scope> -->
237 <!-- </dependency> -->
240 <groupId>com.yourkit
</groupId>
241 <artifactId>yjp-controller-api-redist
</artifactId>
249 <!-- replace the place holders like ${...} in datasources.xml -->
250 <filtering>true
</filtering>
251 <directory>src/test/resources
</directory>
252 <targetPath>../test-classes
</targetPath>
254 <include>datasources.xml
</include>
258 <!-- all other test resources without filtering -->
259 <directory>src/test/resources
</directory>
260 <targetPath>../test-classes
</targetPath>
262 <exclude>datasources.xml
</exclude>
266 <!-- all main resources without filtering -->
267 <directory>src/main/resources
</directory>
272 <artifactId>maven-failsafe-plugin
</artifactId>
273 <version>2.16</version>
274 <!-- configuration per maven profile -->
276 <!-- <configuration> -->
277 <!-- <forkCount>3</forkCount> -->
278 <!-- <reuseForks>true</reuseForks> -->
279 <!-- </configuration> -->
280 <!-- <executions> -->
282 <!-- <id>default</id> -->
284 <!-- <goal>integration-test</goal> -->
285 <!-- <goal>verify</goal> -->
287 <!-- <configuration> -->
288 <!-- <systemPropertyVariables> -->
289 <!-- <cdm.datasource>h2_cdmTest</cdm.datasource> -->
290 <!-- </systemPropertyVariables> -->
292 <!-- <exclude>**/ForceSchemaCreateIT.java</exclude> -->
294 <!-- </configuration> -->
295 <!-- </execution> -->
296 <!-- </executions> -->
299 <groupId>org.eclipse.jetty
</groupId>
300 <artifactId>jetty-maven-plugin
</artifactId>
301 <version>9.4.15.v20190215
</version>
303 <stopKey>stop
</stopKey>
304 <stopPort>9199</stopPort>
305 <scanIntervalSeconds>10</scanIntervalSeconds>
306 <useTestScope>true
</useTestScope>
307 <!-- jvmArgs will only be used when running mvn jetty:run-forked -->
309 -Dcdm.datasource=${integrationTest.jvmArgs.cdm.datasource}
310 -Duser.home=${basedir}/target/target/
311 -Dcdm.beanDefinitionFile=${project.build.directory}/test-classes/datasources.xml
312 -Dspring.profiles.active=remoting
313 -Dcdm.forceSchemaCreate=${integrationTest.jvmArgs.cdm.forceSchemaCreate}
314 -Dlog4j.configuration=${integrationTest.jvmArgs.log4j.configuration}
315 -Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
317 <jettyXml>${basedir}/src/test/resources/etc/jetty/jetty.xml,${basedir}/src/test/resources/etc/jetty/jetty-http.xml
</jettyXml>
318 <!-- <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> -->
322 <name>cdm.datasource
</name>
323 <value>${integrationTest.jvmArgs.cdm.datasource}
</value>
326 <!-- The lucene index should be placed into the target folder,
327 so user.home needs to be set to this folder. user.home needs to be overridden
328 since it already exists, thus the force option is turned on above -->
329 <name>user.home
</name>
330 <value>${basedir}/target/
</value>
333 <!-- datasources.xml is prepared by <plugins><resources>..</resources> above -->
334 <name>cdm.beanDefinitionFile
</name>
335 <value>${project.build.directory}/test-classes/datasources.xml
</value>
338 <name>cdm.forceSchemaCreate
</name>
339 <value>${integrationTest.jvmArgs.cdm.forceSchemaCreate}
</value>
342 <!-- start with swagger profile so that the swagger doc can
344 <name>spring.profiles.active
</name>
345 <value>swagger
</value>
348 <name>log4j.configuration
</name>
349 <value>${integrationTest.jvmArgs.log4j.configuration}
</value>
356 <phase>pre-integration-test
</phase>
361 <scanIntervalSeconds>0</scanIntervalSeconds>
362 <daemon>true
</daemon>
367 <phase>post-integration-test
</phase>
375 <groupId>org.apache.taglibs
</groupId>
376 <artifactId>taglibs-standard-impl
</artifactId>
377 <version>1.2.5</version>
382 <groupId>org.apache.maven.plugins
</groupId>
383 <artifactId>maven-war-plugin
</artifactId>
384 <version>2.6</version>
387 <!-- The war must be created after running the integration-tests,
388 since the SwaggerGroupsIT test populates the classes/api-docs-static/ folder
389 with static swagger doc files. They are otherwise not packed into the war
391 <phase>verify
</phase>
399 <artifactId>maven-resources-plugin
</artifactId>
400 <version>2.7</version>
402 <escapeWindowsPaths>false
</escapeWindowsPaths>