setting namespaces correctly in pom
[taxeditor.git] / eu.etaxonomy.taxeditor.test / pom.xml
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.0.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 <plugins>
14 <plugin>
15 <groupId>org.eclipse.tycho</groupId>
16 <artifactId>target-platform-configuration</artifactId>
17 <version>${tycho.version}</version>
18 <configuration>
19 <filters>
20 <!-- Work around for https://bugs.eclipse.org/bugs/show_bug.cgi?id=348045 -->
21 <!-- taken from https://wiki.eclipse.org/index.php?title=Tycho/Target_Platform#Filtering -->
22 <filter>
23 <type>p2-installable-unit</type>
24 <id>org.eclipse.equinox.servletbridge.extensionbundle</id>
25 <removeAll />
26 </filter>
27 </filters>
28 </configuration>
29 </plugin>
30 <plugin>
31 <groupId>org.eclipse.tycho</groupId>
32 <artifactId>tycho-surefire-plugin</artifactId>
33 <version>${tycho.version}</version>
34 <configuration>
35 <!-- currently we run only the non-ui unit tests so we don't the
36 harness -->
37 <!-- <useUIHarness>true</useUIHarness> -->
38 <dependencies>
39 <!-- This will pull the feature and its dependent plugins into
40 the classpath for the tests. Note that this requires ALL taxeditor projects
41 to be installed. -->
42 <dependency>
43 <type>eclipse-feature</type>
44 <artifactId>eu.etaxonomy.taxeditor.feature</artifactId>
45 <!-- This is the minimum required version -->
46 <version>1.0.0</version>
47 </dependency>
48 </dependencies>
49 </configuration>
50 </plugin>
51 <plugin>
52 <groupId>org.eclipse.jetty</groupId>
53 <artifactId>jetty-maven-plugin</artifactId>
54 <version>9.1.3.v20140225</version><!-- do not update, since later versions are no longer compatible to java 7 -->
55 <dependencies>
56 <dependency>
57 <groupId>com.mchange</groupId>
58 <artifactId>c3p0</artifactId>
59 <!--
60 IMPORTANT!!!
61 this must exactly match the version as set in
62 cdmlib-parent pom.xml otherwise the connection
63 through jndi will not work
64 -->
65 <version>0.9.5.2</version>
66 </dependency>
67 <!-- DATABASE DRIVER -->
68 <dependency>
69 <groupId>com.h2database</groupId>
70 <artifactId>h2</artifactId>
71 <version>1.4.190</version>
72 </dependency>
73 <dependency>
74 <groupId>mysql</groupId>
75 <artifactId>mysql-connector-java</artifactId>
76 <version>5.1.38</version>
77 </dependency>
78 <dependency>
79 <groupId>commons-dbcp</groupId>
80 <artifactId>commons-dbcp</artifactId>
81 <version>1.4</version>
82 </dependency>
83 <dependency>
84 <!-- needed to make eu.etaxonomy.cdm.database.LocalH2 available -->
85 <groupId>eu.etaxonomy</groupId>
86 <artifactId>cdmlib-persistence</artifactId>
87 <version>${project.version}</version>
88 </dependency>
89 <dependency>
90 <groupId>log4j</groupId>
91 <artifactId>log4j</artifactId>
92 <version>1.2.17</version>
93 </dependency>
94 </dependencies>
95 <configuration>
96 <jvmArgs>-Xmx512m -XX:MaxPermSize=512m</jvmArgs>
97 <systemProperties>
98 <force>true</force>
99 <systemProperty>
100 <!--
101 The lucene index should be placed into the target folder,
102 so user.home needs to be set to this folder.
103 user.home needs to be overridden since it already
104 exists, thus the force option is turned on above
105 -->
106 <name>user.home</name>
107 <value>${basedir}/target/</value>
108 </systemProperty>
109 <systemProperty>
110 <name>spring.profiles.active</name>
111 <value>remoting</value>
112 </systemProperty>
113 <systemProperty>
114 <name>cdm.beanDefinitionFile</name>
115 <value>${basedir}/src/test/resources/datasources.xml</value>
116 </systemProperty>
117 <systemProperty>
118 <name>cdm.datasource</name>
119 <value>cdmTest</value>
120 </systemProperty>
121 </systemProperties>
122 <stopPort>9191</stopPort>
123 <stopKey>jetty-cdm-server</stopKey>
124 <stopWait>10</stopWait>
125 <httpConnector>
126 <port>9090</port>
127 </httpConnector>
128 <!--
129 ${project.parent.basedir} can not be used due to the bug
130 https://issues.apache.org/jira/browse/MNG-5522
131 as long as this is unfixed we replace it by
132 ${basedir}/../
133 -->
134 <war>${basedir}/../eu.etaxonomy.taxeditor.cdmlib/src/main/resources/etc/jetty/cdmlib-remote-webapp.war</war>
135 <daemon>true</daemon>
136 </configuration>
137 <executions>
138 <execution>
139 <id>start-jetty</id>
140 <phase>pre-integration-test</phase>
141 <goals>
142 <goal>deploy-war</goal>
143 </goals>
144 <configuration>
145 <scanIntervalSeconds>0</scanIntervalSeconds>
146 </configuration>
147 </execution>
148 <execution>
149 <id>stop-jetty</id>
150 <phase>post-integration-test</phase>
151 <goals>
152 <goal>stop</goal>
153 </goals>
154 </execution>
155 </executions>
156 </plugin>
157 </plugins>
158 </build>
159 </project>