Project

General

Profile

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