Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

taxeditor / eu.etaxonomy.taxeditor.test / pom.xml @ a6c945f3

History | View | Annotate | Download (8.63 KB)

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.18.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.webapp/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
                unitils-core,unitils-database,unitils-dbmaintainer,unitils-dbunit,unitils-spring,
170
                dbunit,c3p0
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>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
      
232
      <dependency>
233
        <groupId>org.dbunit</groupId>
234
        <artifactId>dbunit</artifactId>
235
        <version>2.4.9</version>
236
         <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
  </dependencies>
245
</project>
Add picture from clipboard (Maximum size: 40 MB)