Updated version in pom / project files to taxeditor version : 5.16.0-SNAPSHOT and...
[taxeditor.git] / eu.etaxonomy.taxeditor.test / pom.xml
1 <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">
2 <modelVersion>4.0.0</modelVersion>
3 <parent>
4 <groupId>eu.etaxonomy</groupId>
5 <artifactId>taxeditor-parent</artifactId>
6 <version>5.16.0-SNAPSHOT</version>
7 </parent>
8 <artifactId>eu.etaxonomy.taxeditor.test</artifactId>
9 <!-- for packaging=eclipse-test-plugin
10 see https://wiki.eclipse.org/Tycho/Packaging_Types#eclipse-test-plugin -->
11 <packaging>eclipse-test-plugin</packaging>
12 <name>UI Test Bundle</name>
13 <description>Holds all Tests for the Taxonomic Editor</description>
14 <build>
15 <resources>
16 <resource>
17 <!-- replace the place holders like ${...} in datasources.xml -->
18 <filtering>true</filtering>
19 <directory>src/test/resources</directory>
20 <targetPath>../test-classes</targetPath>
21 <includes>
22 <include>datasources.xml</include>
23 </includes>
24 </resource>
25 <resource>
26 <!-- all other test resources without filtering -->
27 <directory>src/test/resources</directory>
28 <targetPath>../test-classes</targetPath>
29 <excludes>
30 <exclude>datasources.xml</exclude>
31 </excludes>
32 </resource>
33 <resource>
34 <!-- all main resources without filtering -->
35 <directory>src/main/resources</directory>
36 </resource>
37 </resources>
38 <plugins>
39 <plugin>
40 <groupId>org.eclipse.tycho</groupId>
41 <artifactId>target-platform-configuration</artifactId>
42 <version>${tycho.version}</version>
43 <configuration>
44 <filters>
45 <!-- Work around for https://bugs.eclipse.org/bugs/show_bug.cgi?id=348045 -->
46 <!-- taken from https://wiki.eclipse.org/index.php?title=Tycho/Target_Platform#Filtering -->
47 <filter>
48 <type>p2-installable-unit</type>
49 <id>org.eclipse.equinox.servletbridge.extensionbundle</id>
50 <removeAll />
51 </filter>
52 </filters>
53 <dependency-resolution>
54 <extraRequirements>
55 <requirement>
56 <type>eclipse-feature</type>
57 <id>eu.etaxonomy.taxeditor.feature</id>
58 <versionRange>1.0.0</versionRange>
59 </requirement>
60 </extraRequirements>
61 </dependency-resolution>
62 </configuration>
63 </plugin>
64 <plugin>
65 <groupId>org.eclipse.tycho</groupId>
66 <artifactId>tycho-surefire-plugin</artifactId>
67 <version>${tycho.version}</version>
68
69 </plugin>
70 <plugin>
71 <groupId>org.eclipse.jetty</groupId>
72 <artifactId>jetty-maven-plugin</artifactId>
73 <version>${jetty-version}</version>
74 <configuration>
75 <systemProperties>
76 <force>true</force>
77 <systemProperty>
78 <name>cdm.datasource</name>
79 <value>cdmTest</value>
80 </systemProperty>
81 <systemProperty>
82 <!--
83 The lucene index should be placed into the target folder,
84 so user.home needs to be set to this folder.
85 user.home needs to be overridden since it already
86 exists, thus the force option is turned on above
87 -->
88 <name>user.home</name>
89 <value>${basedir}/target/</value>
90 </systemProperty>
91 <systemProperty>
92 <name>spring.profiles.active</name>
93 <value>remoting</value>
94 </systemProperty>
95 <systemProperty>
96 <name>cdm.beanDefinitionFile</name>
97 <value>${basedir}/target/test-classes/datasources.xml</value>
98 </systemProperty>
99 </systemProperties>
100 <stopPort>9191</stopPort>
101 <stopKey>jetty-cdm-server</stopKey>
102 <stopWait>10</stopWait>
103 <httpConnector>
104 <port>9090</port>
105 </httpConnector>
106 <!--
107 ${project.parent.basedir} can not be used due to the bug
108 https://issues.apache.org/jira/browse/MNG-5522
109 as long as this is unfixed we replace it by
110 ${basedir}/../
111 -->
112 <war>${basedir}/../eu.etaxonomy.taxeditor.cdmlib/src/main/resources/etc/jetty/cdmlib-remote-webapp.war</war>
113 <daemon>true</daemon>
114 <supportedPackagings>
115 <!-- see https://github.com/eclipse/jetty.project/issues/2372 -->
116 <supportedPackaging>eclipse-test-plugin</supportedPackaging>
117 </supportedPackagings>
118 </configuration>
119 <dependencies>
120 <!-- NOTE: This dependency requires that the
121 EditRepository is configured as pluginRepository -->
122 <dependency>
123 <groupId>eu.etaxonomy</groupId>
124 <artifactId>cdmlib-db</artifactId>
125 <version>${cdmlib.version}</version>
126 </dependency>
127 <!-- Do we still need this? If yes, should we move it to cdmlib-db? -->
128 <dependency>
129 <groupId>commons-dbcp</groupId>
130 <artifactId>commons-dbcp</artifactId>
131 <version>1.4</version>
132 </dependency>
133 </dependencies>
134 <executions>
135 <execution>
136 <id>start-jetty</id>
137 <phase>pre-integration-test</phase>
138 <goals>
139 <goal>deploy-war</goal>
140 </goals>
141 <configuration>
142 <scanIntervalSeconds>0</scanIntervalSeconds>
143 </configuration>
144 </execution>
145 <execution>
146 <id>stop-jetty</id>
147 <phase>post-integration-test</phase>
148 <goals>
149 <goal>stop</goal>
150 </goals>
151 </execution>
152 </executions>
153 </plugin>
154 </plugins>
155 </build>
156 </project>