1 |
d8e5242c
|
Andreas Kohlbecker
|
<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 |
78e19669
|
Andreas Müller
|
<parent>
|
4 |
|
|
<groupId>eu.etaxonomy</groupId>
|
5 |
|
|
<artifactId>taxeditor-parent</artifactId>
|
6 |
38b8028b
|
jenkins
|
<version>5.18.0-SNAPSHOT</version>
|
7 |
78e19669
|
Andreas Müller
|
</parent>
|
8 |
|
|
<artifactId>eu.etaxonomy.taxeditor.test</artifactId>
|
9 |
2174ddff
|
Andreas Kohlbecker
|
<!-- for packaging=eclipse-test-plugin
|
10 |
|
|
see https://wiki.eclipse.org/Tycho/Packaging_Types#eclipse-test-plugin -->
|
11 |
78e19669
|
Andreas Müller
|
<packaging>eclipse-test-plugin</packaging>
|
12 |
|
|
<name>UI Test Bundle</name>
|
13 |
dc1c8ae4
|
Andreas Müller
|
<properties>
|
14 |
|
|
<unitils.version>3.4.2</unitils.version>
|
15 |
|
|
</properties>
|
16 |
78e19669
|
Andreas Müller
|
<description>Holds all Tests for the Taxonomic Editor</description>
|
17 |
|
|
<build>
|
18 |
3dfc2334
|
Andreas Müller
|
<resources>
|
19 |
3e5aa473
|
Andreas Kohlbecker
|
<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 |
ca35dbce
|
Andreas Kohlbecker
|
<include>datasources.xml</include>
|
26 |
3e5aa473
|
Andreas Kohlbecker
|
</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 |
78e19669
|
Andreas Müller
|
<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 |
59b24aa6
|
Andreas Kohlbecker
|
<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 |
78e19669
|
Andreas Müller
|
</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 |
5c3f2528
|
Andreas Kohlbecker
|
<version>${jetty-version}</version>
|
76 |
1e181426
|
Andreas Kohlbecker
|
<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 |
3bed8372
|
Andreas Kohlbecker
|
<value>${basedir}/target/test-classes/datasources.xml</value>
|
100 |
1e181426
|
Andreas Kohlbecker
|
</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 |
773143f9
|
Andreas Müller
|
<war>${basedir}/../eu.etaxonomy.taxeditor.webapp/lib/cdmlib-remote-webapp.war</war>
|
115 |
1e181426
|
Andreas Kohlbecker
|
<daemon>true</daemon>
|
116 |
2174ddff
|
Andreas Kohlbecker
|
<supportedPackagings>
|
117 |
|
|
<!-- see https://github.com/eclipse/jetty.project/issues/2372 -->
|
118 |
|
|
<supportedPackaging>eclipse-test-plugin</supportedPackaging>
|
119 |
|
|
</supportedPackagings>
|
120 |
1e181426
|
Andreas Kohlbecker
|
</configuration>
|
121 |
da101315
|
Andreas Kohlbecker
|
<dependencies>
|
122 |
24dbe552
|
Andreas Kohlbecker
|
<!-- NOTE: This dependency requires that the
|
123 |
|
|
EditRepository is configured as pluginRepository -->
|
124 |
1c56dd72
|
Andreas Müller
|
<dependency>
|
125 |
32c7e878
|
Andreas Müller
|
<groupId>eu.etaxonomy</groupId>
|
126 |
|
|
<artifactId>cdmlib-db</artifactId>
|
127 |
|
|
<version>${cdmlib.version}</version>
|
128 |
|
|
</dependency>
|
129 |
1c56dd72
|
Andreas Müller
|
<!-- Do we still need this? If yes, should we move it to cdmlib-db? -->
|
130 |
24dbe552
|
Andreas Kohlbecker
|
<dependency>
|
131 |
7938c1aa
|
Andreas Kohlbecker
|
<groupId>commons-dbcp</groupId>
|
132 |
|
|
<artifactId>commons-dbcp</artifactId>
|
133 |
|
|
<version>1.4</version>
|
134 |
|
|
</dependency>
|
135 |
da101315
|
Andreas Kohlbecker
|
</dependencies>
|
136 |
78e19669
|
Andreas Müller
|
<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 |
3dfc2334
|
Andreas Müller
|
</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 |
46812ea4
|
Andreas Müller
|
unitils-core,unitils-database,unitils-dbmaintainer,unitils-dbunit,unitils-spring,
|
170 |
|
|
dbunit,c3p0
|
171 |
3dfc2334
|
Andreas Müller
|
</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 |
78e19669
|
Andreas Müller
|
</plugin>
|
182 |
|
|
</plugins>
|
183 |
|
|
</build>
|
184 |
3dfc2334
|
Andreas Müller
|
<dependencies>
|
185 |
|
|
<dependency>
|
186 |
|
|
<groupId>org.unitils</groupId>
|
187 |
|
|
<artifactId>unitils-core</artifactId>
|
188 |
|
|
<version>${unitils.version}</version>
|
189 |
|
|
<scope>test</scope>
|
190 |
|
|
</dependency>
|
191 |
|
|
<dependency>
|
192 |
|
|
<groupId>org.unitils</groupId>
|
193 |
|
|
<artifactId>unitils-database</artifactId>
|
194 |
|
|
<version>${unitils.version}</version>
|
195 |
|
|
<scope>test</scope>
|
196 |
|
|
<exclusions>
|
197 |
|
|
<exclusion>
|
198 |
|
|
<groupId>org.springframework</groupId>
|
199 |
|
|
<artifactId>spring-jdbc</artifactId>
|
200 |
|
|
</exclusion>
|
201 |
|
|
</exclusions>
|
202 |
|
|
</dependency>
|
203 |
|
|
<dependency>
|
204 |
|
|
<groupId>org.unitils</groupId>
|
205 |
|
|
<artifactId>unitils-dbmaintainer</artifactId>
|
206 |
|
|
<version>${unitils.version}</version>
|
207 |
|
|
<scope>test</scope>
|
208 |
|
|
<exclusions>
|
209 |
|
|
<exclusion>
|
210 |
|
|
<groupId>org.hibernate</groupId>
|
211 |
|
|
<artifactId>hibernate</artifactId>
|
212 |
|
|
</exclusion>
|
213 |
|
|
<exclusion>
|
214 |
|
|
<groupId>org.slf4j</groupId>
|
215 |
|
|
<artifactId>slf4j-nop</artifactId>
|
216 |
|
|
</exclusion>
|
217 |
|
|
</exclusions>
|
218 |
|
|
</dependency>
|
219 |
|
|
<dependency>
|
220 |
|
|
<groupId>org.unitils</groupId>
|
221 |
|
|
<artifactId>unitils-dbunit</artifactId>
|
222 |
|
|
<version>${unitils.version}</version>
|
223 |
|
|
<scope>test</scope>
|
224 |
|
|
</dependency>
|
225 |
|
|
<dependency>
|
226 |
|
|
<groupId>org.unitils</groupId>
|
227 |
|
|
<artifactId>unitils-spring</artifactId>
|
228 |
|
|
<version>${unitils.version}</version>
|
229 |
|
|
<scope>test</scope>
|
230 |
|
|
</dependency>
|
231 |
46812ea4
|
Andreas Müller
|
|
232 |
|
|
<dependency>
|
233 |
|
|
<groupId>org.dbunit</groupId>
|
234 |
|
|
<artifactId>dbunit</artifactId>
|
235 |
a6c945f3
|
Andreas Müller
|
<version>2.4.9</version>
|
236 |
46812ea4
|
Andreas Müller
|
<scope>test</scope>
|
237 |
|
|
</dependency>
|
238 |
|
|
<dependency>
|
239 |
|
|
<groupId>com.mchange</groupId>
|
240 |
|
|
<artifactId>c3p0</artifactId>
|
241 |
|
|
<version>0.9.5.2</version>
|
242 |
|
|
<scope>test</scope>
|
243 |
|
|
</dependency>
|
244 |
3dfc2334
|
Andreas Müller
|
</dependencies>
|
245 |
af22f444
|
n.hoffmann
|
</project>
|