Updated version in pom / project files to taxeditor version : 5.28.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.28.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 <properties>
14 <unitils.version>3.4.2</unitils.version>
15 </properties>
16 <description>Holds all Tests for the Taxonomic Editor</description>
17 <build>
18 <resources>
19 <resource>
20 <!-- replace the place holders like ${...} in datasources.xml -->
21 <filtering>true</filtering>
22 <directory>src/test/resources</directory>
23 <targetPath>../test-classes</targetPath>
24 <includes>
25 <include>datasources.xml</include>
26 </includes>
27 </resource>
28 <resource>
29 <!-- all other test resources without filtering -->
30 <directory>src/test/resources</directory>
31 <targetPath>../test-classes</targetPath>
32 <excludes>
33 <exclude>datasources.xml</exclude>
34 </excludes>
35 </resource>
36 <resource>
37 <!-- all main resources without filtering -->
38 <directory>src/main/resources</directory>
39 </resource>
40 </resources>
41 <plugins>
42 <plugin>
43 <groupId>org.eclipse.tycho</groupId>
44 <artifactId>target-platform-configuration</artifactId>
45 <version>${tycho.version}</version>
46 <configuration>
47 <filters>
48 <!-- Work around for https://bugs.eclipse.org/bugs/show_bug.cgi?id=348045 -->
49 <!-- taken from https://wiki.eclipse.org/index.php?title=Tycho/Target_Platform#Filtering -->
50 <filter>
51 <type>p2-installable-unit</type>
52 <id>org.eclipse.equinox.servletbridge.extensionbundle</id>
53 <removeAll />
54 </filter>
55 </filters>
56 <dependency-resolution>
57 <extraRequirements>
58 <requirement>
59 <type>eclipse-feature</type>
60 <id>eu.etaxonomy.taxeditor.feature</id>
61 <versionRange>1.0.0</versionRange>
62 </requirement>
63 </extraRequirements>
64 </dependency-resolution>
65 </configuration>
66 </plugin>
67 <plugin>
68 <groupId>org.eclipse.tycho</groupId>
69 <artifactId>tycho-surefire-plugin</artifactId>
70 <version>${tycho.version}</version>
71 </plugin>
72 <plugin>
73 <groupId>org.eclipse.jetty</groupId>
74 <artifactId>jetty-maven-plugin</artifactId>
75 <version>${jetty-version}</version>
76 <configuration>
77 <systemProperties>
78 <force>true</force>
79 <systemProperty>
80 <name>cdm.datasource</name>
81 <value>cdmTest</value>
82 </systemProperty>
83 <systemProperty>
84 <!--
85 The lucene index should be placed into the target folder,
86 so user.home needs to be set to this folder.
87 user.home needs to be overridden since it already
88 exists, thus the force option is turned on above
89 -->
90 <name>user.home</name>
91 <value>${basedir}/target/</value>
92 </systemProperty>
93 <systemProperty>
94 <name>spring.profiles.active</name>
95 <value>remoting</value>
96 </systemProperty>
97 <systemProperty>
98 <name>cdm.beanDefinitionFile</name>
99 <value>${basedir}/target/test-classes/datasources.xml</value>
100 </systemProperty>
101 </systemProperties>
102 <stopPort>9191</stopPort>
103 <stopKey>jetty-cdm-server</stopKey>
104 <stopWait>10</stopWait>
105 <httpConnector>
106 <port>9090</port>
107 </httpConnector>
108 <!--
109 ${project.parent.basedir} can not be used due to the bug
110 https://issues.apache.org/jira/browse/MNG-5522
111 as long as this is unfixed we replace it by
112 ${basedir}/../
113 -->
114 <war>${basedir}/../eu.etaxonomy.taxeditor.local/lib/cdmlib-remote-webapp.war</war>
115 <daemon>true</daemon>
116 <supportedPackagings>
117 <!-- see https://github.com/eclipse/jetty.project/issues/2372 -->
118 <supportedPackaging>eclipse-test-plugin</supportedPackaging>
119 </supportedPackagings>
120 </configuration>
121 <dependencies>
122 <!-- NOTE: This dependency requires that the
123 EditRepository is configured as pluginRepository -->
124 <dependency>
125 <groupId>eu.etaxonomy</groupId>
126 <artifactId>cdmlib-db</artifactId>
127 <version>${cdmlib.version}</version>
128 </dependency>
129 <!-- Do we still need this? If yes, should we move it to cdmlib-db? -->
130 <dependency>
131 <groupId>commons-dbcp</groupId>
132 <artifactId>commons-dbcp</artifactId>
133 <version>1.4</version>
134 </dependency>
135 </dependencies>
136 <executions>
137 <execution>
138 <id>start-jetty</id>
139 <phase>pre-integration-test</phase>
140 <goals>
141 <goal>deploy-war</goal>
142 </goals>
143 <configuration>
144 <scanIntervalSeconds>0</scanIntervalSeconds>
145 </configuration>
146 </execution>
147 <execution>
148 <id>stop-jetty</id>
149 <phase>post-integration-test</phase>
150 <goals>
151 <goal>stop</goal>
152 </goals>
153 </execution>
154 </executions>
155 </plugin>
156 <plugin>
157 <groupId>org.apache.maven.plugins</groupId>
158 <artifactId>maven-dependency-plugin</artifactId>
159 <version>2.4</version>
160 <executions>
161 <execution>
162 <id>copy-dependency-jars</id>
163 <phase>validate</phase>
164 <goals>
165 <goal>copy-dependencies</goal>
166 </goals>
167 <configuration>
168 <includeArtifactIds>
169 junit,unitils-core,unitils-database,unitils-dbmaintainer,unitils-dbunit,unitils-spring,
170 dbunit,c3p0,commons-dbcp,commons-pool,hamcrest-core
171 </includeArtifactIds>
172 <outputDirectory>
173 ${basedir}/lib
174 </outputDirectory>
175 <overWriteReleases>true</overWriteReleases>
176 <overWriteSnapshots>true</overWriteSnapshots>
177 <excludeTransitive>true</excludeTransitive>
178 </configuration>
179 </execution>
180 </executions>
181 </plugin>
182 </plugins>
183 </build>
184 <dependencies>
185 <dependency>
186 <groupId>junit</groupId>
187 <artifactId>junit</artifactId>
188 <version>4.13.1</version>
189 <scope>test</scope>
190 </dependency>
191 <dependency>
192 <groupId>org.unitils</groupId>
193 <artifactId>unitils-core</artifactId>
194 <version>${unitils.version}</version>
195 <scope>test</scope>
196 </dependency>
197 <dependency>
198 <groupId>org.unitils</groupId>
199 <artifactId>unitils-database</artifactId>
200 <version>${unitils.version}</version>
201 <scope>test</scope>
202 <exclusions>
203 <exclusion>
204 <groupId>org.springframework</groupId>
205 <artifactId>spring-jdbc</artifactId>
206 </exclusion>
207 </exclusions>
208 </dependency>
209 <dependency>
210 <groupId>org.unitils</groupId>
211 <artifactId>unitils-dbmaintainer</artifactId>
212 <version>${unitils.version}</version>
213 <scope>test</scope>
214 <exclusions>
215 <exclusion>
216 <groupId>org.hibernate</groupId>
217 <artifactId>hibernate</artifactId>
218 </exclusion>
219 <exclusion>
220 <groupId>org.slf4j</groupId>
221 <artifactId>slf4j-nop</artifactId>
222 </exclusion>
223 </exclusions>
224 </dependency>
225 <dependency>
226 <groupId>org.unitils</groupId>
227 <artifactId>unitils-dbunit</artifactId>
228 <version>${unitils.version}</version>
229 <scope>test</scope>
230 </dependency>
231 <dependency>
232 <groupId>org.unitils</groupId>
233 <artifactId>unitils-spring</artifactId>
234 <version>${unitils.version}</version>
235 <scope>test</scope>
236 </dependency>
237
238 <dependency>
239 <groupId>org.dbunit</groupId>
240 <artifactId>dbunit</artifactId>
241 <version>2.4.9</version>
242 <scope>test</scope>
243 </dependency>
244 <dependency>
245 <groupId>com.mchange</groupId>
246 <artifactId>c3p0</artifactId>
247 <version>0.9.5.2</version>
248 <scope>test</scope>
249 </dependency>
250 <dependency>
251 <groupId>commons-dbcp</groupId>
252 <artifactId>commons-dbcp</artifactId>
253 <version>1.4</version>
254 </dependency>
255 <dependency>
256 <groupId>commons-pool</groupId>
257 <artifactId>commons-pool</artifactId>
258 <version>1.6</version>
259 </dependency>
260 <dependency>
261 <groupId>org.hamcrest</groupId>
262 <artifactId>hamcrest-core</artifactId>
263 <version>1.3</version>
264 <scope>test</scope>
265 </dependency>
266
267 </dependencies>
268 </project>