fixed issues with resource loading for maven int tests
[taxeditor.git] / eu.etaxonomy.taxeditor.test / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project>
3
4 <parent>
5 <groupId>eu.etaxonomy</groupId>
6 <artifactId>taxeditor-parent</artifactId>
7 <version>3.6.1-SNAPSHOT</version>
8 </parent>
9 <modelVersion>4.0.0</modelVersion>
10 <artifactId>eu.etaxonomy.taxeditor.test</artifactId>
11 <packaging>eclipse-test-plugin</packaging>
12 <name>UI Test Bundle</name>
13 <description>Holds all Tests for the Taxonomic Editor</description>
14 <build>
15 <plugins>
16 <!-- <plugin> -->
17 <!-- <groupId>org.eclipse.tycho</groupId> -->
18 <!-- <artifactId>tycho-compiler-plugin</artifactId> -->
19 <!-- <version>${tycho.version}</version> -->
20 <!-- <configuration> -->
21 <!-- <excludes> -->
22 <!-- <exclude>**/*.*</exclude> -->
23 <!-- </excludes> -->
24 <!-- </configuration> -->
25 <!-- </plugin> -->
26 <plugin>
27 <groupId>org.eclipse.tycho</groupId>
28 <artifactId>target-platform-configuration</artifactId>
29 <version>${tycho.version}</version>
30 <configuration>
31 <filters>
32 <!-- Work around for https://bugs.eclipse.org/bugs/show_bug.cgi?id=348045 -->
33 <!-- taken from https://wiki.eclipse.org/index.php?title=Tycho/Target_Platform#Filtering -->
34 <filter>
35 <type>p2-installable-unit</type>
36 <id>org.eclipse.equinox.servletbridge.extensionbundle</id>
37 <removeAll />
38 </filter>
39 </filters>
40 </configuration>
41 </plugin>
42 <plugin>
43 <groupId>org.eclipse.tycho</groupId>
44 <artifactId>tycho-surefire-plugin</artifactId>
45 <version>${tycho.version}</version>
46 <configuration>
47 <!-- currently we run only the non-ui unit tests so we don't the
48 harness -->
49 <!-- <useUIHarness>true</useUIHarness> -->
50 <dependencies>
51 <!-- This will pull the feature and its dependent plugins into
52 the classpath for the tests. Note that this requires ALL taxeditor projects
53 to be installed. -->
54 <dependency>
55 <type>eclipse-feature</type>
56 <artifactId>eu.etaxonomy.taxeditor.feature</artifactId>
57 <!-- This is the minimum required version -->
58 <version>1.0.0</version>
59 </dependency>
60 </dependencies>
61 </configuration>
62 </plugin>
63 <plugin>
64 <groupId>org.eclipse.jetty</groupId>
65 <artifactId>jetty-maven-plugin</artifactId>
66 <version>9.2.9.v20150224</version>
67 <configuration>
68 <systemProperties>
69 <systemProperty>
70 <name>spring.profiles.active</name>
71 <value>remoting</value>
72 </systemProperty>
73 <systemProperty>
74 <name>cdm.beanDefinitionFile</name>
75 <value>${basedir}/src/test/resources/datasources.xml</value>
76 </systemProperty>
77 <systemProperty>
78 <name>cdm.datasource</name>
79 <value>cdmTest</value>
80 </systemProperty>
81 </systemProperties>
82 <stopPort>9191</stopPort>
83 <stopKey>jetty-cdm-server</stopKey>
84 <stopWait>10</stopWait>
85 <httpConnector>
86 <port>9090</port>
87 </httpConnector>
88 <war>${project.parent.basedir}/eu.etaxonomy.taxeditor.cdmlib/src/main/resources/etc/jetty/cdmlib-remote-webapp.war</war>
89 <daemon>true</daemon>
90 </configuration>
91 <executions>
92 <execution>
93 <id>start-jetty</id>
94 <phase>pre-integration-test</phase>
95 <goals>
96 <goal>deploy-war</goal>
97 </goals>
98 <configuration>
99 <scanIntervalSeconds>0</scanIntervalSeconds>
100 </configuration>
101 </execution>
102 <execution>
103 <id>stop-jetty</id>
104 <phase>post-integration-test</phase>
105 <goals>
106 <goal>stop</goal>
107 </goals>
108 </execution>
109 </executions>
110 </plugin>
111 </plugins>
112 </build>
113 </project>