Project

General

Profile

Download (9.25 KB) Statistics
| Branch: | Tag: | Revision:
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 a31431c6 jenkins
    <version>5.42.0</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 72a0a6e9 Katja Luther
          <war>${basedir}/../eu.etaxonomy.taxeditor.local/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 44952742 Andreas Müller
      <plugin>
157 3dfc2334 Andreas Müller
        <groupId>org.apache.maven.plugins</groupId>
158
        <artifactId>maven-dependency-plugin</artifactId>
159 1858ff62 Andreas Müller
        <version>3.2.0</version>
160 3dfc2334 Andreas Müller
        <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 7a318f97 Andreas Müller
                junit,unitils-core,unitils-database,unitils-dbmaintainer,unitils-dbunit,unitils-spring,
170
                dbunit,c3p0,commons-dbcp,commons-pool,hamcrest-core
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 aab5bbc7 Katja Luther
	 <dependency>
186 44952742 Andreas Müller
	    <groupId>junit</groupId>
187
	    <artifactId>junit</artifactId>
188 9884d3db Andreas Müller
	    <version>4.13.2</version>
189 44952742 Andreas Müller
	    <scope>test</scope>
190 aab5bbc7 Katja Luther
	  </dependency>
191 3dfc2334 Andreas Müller
      <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 46812ea4 Andreas Müller
      
238
      <dependency>
239
        <groupId>org.dbunit</groupId>
240
        <artifactId>dbunit</artifactId>
241 a6c945f3 Andreas Müller
        <version>2.4.9</version>
242 8341d984 Andreas Müller
        <scope>test</scope>
243 46812ea4 Andreas Müller
      </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 afa66a6d Andreas Müller
	  <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 44952742 Andreas Müller
	  <dependency>
261
	    <groupId>org.hamcrest</groupId>
262
	    <artifactId>hamcrest-core</artifactId>
263
	    <version>1.3</version>
264
	    <scope>test</scope>
265 821fe02d Katja Luther
	  </dependency>
266
	  
267 3dfc2334 Andreas Müller
  </dependencies>
268 af22f444 n.hoffmann
</project>