Project

General

Profile

Download (5.45 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 c80f158b jenkins
    <version>4.15.0-SNAPSHOT</version>
7 78e19669 Andreas Müller
  </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 3e5aa473 Andreas Kohlbecker
  <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 ca35dbce Andreas Kohlbecker
          <include>datasources.xml</include>
21 3e5aa473 Andreas Kohlbecker
        </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 78e19669 Andreas Müller
    <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 59b24aa6 Andreas Kohlbecker
          <dependency-resolution>
52
           <extraRequirements>
53
              <requirement>
54
                 <type>eclipse-feature</type>
55
                 <id>eu.etaxonomy.taxeditor.feature</id>
56
                 <versionRange>1.0.0</versionRange>
57
              </requirement>
58
           </extraRequirements>
59
        </dependency-resolution>
60 78e19669 Andreas Müller
        </configuration>
61
      </plugin>
62
      <plugin>
63
        <groupId>org.eclipse.tycho</groupId>
64
        <artifactId>tycho-surefire-plugin</artifactId>
65
        <version>${tycho.version}</version>
66 59b24aa6 Andreas Kohlbecker
        
67 78e19669 Andreas Müller
      </plugin>
68
      <plugin>
69
        <groupId>org.eclipse.jetty</groupId>
70
        <artifactId>jetty-maven-plugin</artifactId>
71 02569618 Patrick Plitzner
        <version>9.4.1.v20170120</version>
72 1e181426 Andreas Kohlbecker
        <configuration>
73
          <systemProperties>
74
            <force>true</force>
75
            <systemProperty>
76
              <name>cdm.datasource</name>
77
              <value>cdmTest</value>
78
            </systemProperty>
79
            <systemProperty>
80
              <!-- 
81
                The lucene index should be placed into the target folder,
82
                so user.home needs to be set to this folder.
83
                user.home needs to be overridden since it already 
84
                exists, thus the force option is turned on above 
85
              -->
86
              <name>user.home</name>
87
              <value>${basedir}/target/</value>
88
            </systemProperty> 
89
            <systemProperty>
90
              <name>spring.profiles.active</name>
91
              <value>remoting</value>
92
            </systemProperty>
93
            <systemProperty>
94
              <name>cdm.beanDefinitionFile</name>
95 3bed8372 Andreas Kohlbecker
              <value>${basedir}/target/test-classes/datasources.xml</value>
96 1e181426 Andreas Kohlbecker
            </systemProperty>
97
          </systemProperties>
98
          <stopPort>9191</stopPort>
99
          <stopKey>jetty-cdm-server</stopKey>
100
          <stopWait>10</stopWait>
101
          <httpConnector>
102
            <port>9090</port>
103
          </httpConnector>
104
      <!-- 
105
        ${project.parent.basedir} can not be used due to the bug
106
        https://issues.apache.org/jira/browse/MNG-5522 
107
        as long as this is unfixed we replace it by 
108
        ${basedir}/../
109
      -->
110
          <war>${basedir}/../eu.etaxonomy.taxeditor.cdmlib/src/main/resources/etc/jetty/cdmlib-remote-webapp.war</war>
111
          <daemon>true</daemon>
112
        </configuration>
113 da101315 Andreas Kohlbecker
        <dependencies>
114 24dbe552 Andreas Kohlbecker
            <!-- NOTE: This dependency requires that the  
115
                EditRepository is configured as pluginRepository -->
116 1c56dd72 Andreas Müller
        	<dependency>
117 32c7e878 Andreas Müller
	        	<groupId>eu.etaxonomy</groupId>
118
	      		<artifactId>cdmlib-db</artifactId>
119
	      		<version>${cdmlib.version}</version>
120
	      	</dependency>
121 1c56dd72 Andreas Müller
		  <!-- Do we still need this? If yes, should we move it to cdmlib-db? -->
122 24dbe552 Andreas Kohlbecker
           <dependency>
123 7938c1aa Andreas Kohlbecker
              <groupId>commons-dbcp</groupId>
124
              <artifactId>commons-dbcp</artifactId>
125
              <version>1.4</version>
126
          </dependency>
127 da101315 Andreas Kohlbecker
        </dependencies>
128 78e19669 Andreas Müller
        <executions>
129
          <execution>
130
            <id>start-jetty</id>
131
            <phase>pre-integration-test</phase>
132
            <goals>
133
              <goal>deploy-war</goal>
134
            </goals>
135
            <configuration>
136
              <scanIntervalSeconds>0</scanIntervalSeconds>
137
            </configuration>
138
          </execution>
139
          <execution>
140
            <id>stop-jetty</id>
141
            <phase>post-integration-test</phase>
142
            <goals>
143
              <goal>stop</goal>
144
            </goals>
145
          </execution>
146
        </executions>
147
      </plugin>
148
    </plugins>
149
  </build>
150 af22f444 n.hoffmann
</project>