fixing maven-jetty-plugin dependencies
[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 <!--
56 To see the detailed list of parameters that can be configured for a particular goal:
57 mvn jetty:help -Ddetail=true -Dgoal= goal-name
58 -->
59 <configuration>
60 <systemProperties>
61 <force>true</force>
62 <systemProperty>
63 <name>cdm.datasource</name>
64 <value>cdmTest</value>
65 </systemProperty>
66 <systemProperty>
67 <!--
68 The lucene index should be placed into the target folder,
69 so user.home needs to be set to this folder.
70 user.home needs to be overridden since it already
71 exists, thus the force option is turned on above
72 -->
73 <name>user.home</name>
74 <value>${basedir}/target/</value>
75 </systemProperty>
76 <systemProperty>
77 <name>spring.profiles.active</name>
78 <value>remoting</value>
79 </systemProperty>
80 <systemProperty>
81 <name>cdm.beanDefinitionFile</name>
82 <value>${basedir}/src/test/resources/datasources.xml</value>
83 </systemProperty>
84 </systemProperties>
85 <stopPort>9191</stopPort>
86 <stopKey>jetty-cdm-server</stopKey>
87 <stopWait>10</stopWait>
88 <httpConnector>
89 <port>9090</port>
90 </httpConnector>
91 <!--
92 ${project.parent.basedir} can not be used due to the bug
93 https://issues.apache.org/jira/browse/MNG-5522
94 as long as this is unfixed we replace it by
95 ${basedir}/../
96 -->
97 <war>${basedir}/../eu.etaxonomy.taxeditor.cdmlib/src/main/resources/etc/jetty/cdmlib-remote-webapp.war</war>
98 <daemon>true</daemon>
99 </configuration>
100 <dependencies>
101 <dependency>
102 <groupId>com.mchange</groupId>
103 <artifactId>c3p0</artifactId>
104 <!--
105 IMPORTANT!!!
106 this must exactly match the version as set in
107 cdmlib-parent pom.xml
108 -->
109 <version>0.9.5.2</version>
110 </dependency>
111 <!-- DATABASE DRIVER -->
112 <dependency>
113 <groupId>com.h2database</groupId>
114 <artifactId>h2</artifactId>
115 <version>1.4.190</version>
116 </dependency>
117 <dependency>
118 <groupId>mysql</groupId>
119 <artifactId>mysql-connector-java</artifactId>
120 <version>5.1.38</version>
121 </dependency>
122 <dependency>
123 <groupId>commons-dbcp</groupId>
124 <artifactId>commons-dbcp</artifactId>
125 <version>1.4</version>
126 </dependency>
127 <!-- <dependency>
128 <groupId>log4j</groupId>
129 <artifactId>log4j</artifactId>
130 <version>1.2.17</version>
131 </dependency> -->
132 <!--
133 <dependency>
134 <groupId>eu.etaxonomy</groupId>
135 <artifactId>cdmlib-persistence</artifactId>
136 <version>${project.version}</version>
137 <exclusions>
138 </exclusions>
139 </dependency>
140 -->
141 </dependencies>
142 <executions>
143 <execution>
144 <id>start-jetty</id>
145 <phase>pre-integration-test</phase>
146 <goals>
147 <goal>deploy-war</goal>
148 </goals>
149 <configuration>
150 <scanIntervalSeconds>0</scanIntervalSeconds>
151 </configuration>
152 </execution>
153 <execution>
154 <id>stop-jetty</id>
155 <phase>post-integration-test</phase>
156 <goals>
157 <goal>stop</goal>
158 </goals>
159 </execution>
160 </executions>
161 </plugin>
162 </plugins>
163 </build>
164 </project>