1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<!-- |
3 |
Copyright 2011-2014 Hippo B.V. (http://www.onehippo.com) |
4 |
|
5 |
Licensed under the Apache License, Version 2.0 (the "License"); |
6 |
you may not use this file except in compliance with the License. |
7 |
You may obtain a copy of the License at |
8 |
|
9 |
http://www.apache.org/licenses/LICENSE-2.0 |
10 |
|
11 |
Unless required by applicable law or agreed to in writing, software |
12 |
distributed under the License is distributed on an "AS IS" BASIS, |
13 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 |
See the License for the specific language governing permissions and |
15 |
limitations under the License. |
16 |
--> |
17 |
<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/maven-v4_0_0.xsd"> |
18 |
<modelVersion>4.0.0</modelVersion> |
19 |
|
20 |
<parent> |
21 |
<groupId>com.onehippo.gogreen</groupId> |
22 |
<artifactId>hippogogreen</artifactId> |
23 |
<version>3.10.00-restyling-SNAPSHOT</version> |
24 |
<relativePath>../pom.xml</relativePath> |
25 |
</parent> |
26 |
|
27 |
<name>Hippo Go Green Integration Tests</name> |
28 |
<description>Hippo Go Green Integration Tests</description> |
29 |
<artifactId>hippogogreen-integration-tests</artifactId> |
30 |
<packaging>pom</packaging> |
31 |
|
32 |
<properties> |
33 |
<selenium.version>2.43.1</selenium.version> |
34 |
<lib.xercesImpl.version>2.9.1</lib.xercesImpl.version> |
35 |
<buildPath>${project.build.directory}/${project.artifactId}-${project.version}</buildPath> |
36 |
<display>:20</display> |
37 |
</properties> |
38 |
|
39 |
<dependencies> |
40 |
<dependency> |
41 |
<groupId>com.onehippo.gogreen</groupId> |
42 |
<artifactId>hippogogreen-cms</artifactId> |
43 |
<version>${project.version}</version> |
44 |
<type>war</type> |
45 |
</dependency> |
46 |
|
47 |
<dependency> |
48 |
<groupId>com.onehippo.gogreen</groupId> |
49 |
<artifactId>hippogogreen-site</artifactId> |
50 |
<version>${project.version}</version> |
51 |
<type>war</type> |
52 |
</dependency> |
53 |
<dependency> |
54 |
<groupId>org.testng</groupId> |
55 |
<artifactId>testng</artifactId> |
56 |
<version>5.14.1</version> |
57 |
<scope>test</scope> |
58 |
</dependency> |
59 |
|
60 |
<dependency> |
61 |
<groupId>org.seleniumhq.selenium</groupId> |
62 |
<artifactId>selenium-api</artifactId> |
63 |
<version>${selenium.version}</version> |
64 |
<scope>test</scope> |
65 |
</dependency> |
66 |
|
67 |
<dependency> |
68 |
<groupId>org.seleniumhq.selenium</groupId> |
69 |
<artifactId>selenium-firefox-driver</artifactId> |
70 |
<version>${selenium.version}</version> |
71 |
<scope>test</scope> |
72 |
</dependency> |
73 |
<dependency> |
74 |
<groupId>org.seleniumhq.selenium</groupId> |
75 |
<artifactId>selenium-java</artifactId> |
76 |
<version>${selenium.version}</version> |
77 |
<scope>test</scope> |
78 |
</dependency> |
79 |
<!-- Xerces is required by FirefoxDriver --> |
80 |
<dependency> |
81 |
<groupId>xerces</groupId> |
82 |
<artifactId>xercesImpl</artifactId> |
83 |
<version>${lib.xercesImpl.version}</version> |
84 |
<scope>test</scope> |
85 |
</dependency> |
86 |
</dependencies> |
87 |
|
88 |
<build> |
89 |
<defaultGoal>package</defaultGoal> |
90 |
</build> |
91 |
|
92 |
<profiles> |
93 |
<profile> |
94 |
<id>debug</id> |
95 |
<properties> |
96 |
<display>:0</display> |
97 |
</properties> |
98 |
</profile> |
99 |
<profile> |
100 |
<id>headless</id> |
101 |
|
102 |
<dependencies> |
103 |
<dependency> |
104 |
<groupId>log4j</groupId> |
105 |
<artifactId>log4j</artifactId> |
106 |
<scope>provided</scope> |
107 |
</dependency> |
108 |
<dependency> |
109 |
<groupId>org.slf4j</groupId> |
110 |
<artifactId>slf4j-log4j12</artifactId> |
111 |
<scope>provided</scope> |
112 |
</dependency> |
113 |
<dependency> |
114 |
<groupId>org.slf4j</groupId> |
115 |
<artifactId>jcl-over-slf4j</artifactId> |
116 |
<scope>provided</scope> |
117 |
</dependency> |
118 |
</dependencies> |
119 |
|
120 |
<build> |
121 |
<plugins> |
122 |
<plugin> |
123 |
<groupId>org.apache.maven.plugins</groupId> |
124 |
<artifactId>maven-compiler-plugin</artifactId> |
125 |
<executions> |
126 |
<execution> |
127 |
<goals> |
128 |
<goal>testCompile</goal> |
129 |
</goals> |
130 |
</execution> |
131 |
</executions> |
132 |
</plugin> |
133 |
|
134 |
<plugin> |
135 |
<groupId>org.codehaus.cargo</groupId> |
136 |
<artifactId>cargo-maven2-plugin</artifactId> |
137 |
<executions> |
138 |
<execution> |
139 |
<id>cargo-start</id> |
140 |
<phase>pre-integration-test</phase> |
141 |
<goals> |
142 |
<goal>start</goal> |
143 |
</goals> |
144 |
</execution> |
145 |
<execution> |
146 |
<id>cargo-stop</id> |
147 |
<phase>post-integration-test</phase> |
148 |
<goals> |
149 |
<goal>stop</goal> |
150 |
</goals> |
151 |
</execution> |
152 |
</executions> |
153 |
<configuration> |
154 |
<configuration> |
155 |
<home>${project.build.directory}/tomcat${cargo.tomcat.major.version}x</home> |
156 |
<properties> |
157 |
<cargo.remote.username>admin</cargo.remote.username> |
158 |
<cargo.remote.password /> |
159 |
<cargo.servlet.port>18888</cargo.servlet.port> |
160 |
<cargo.jvmargs> |
161 |
<![CDATA[-noverify ${javaagent}]]> |
162 |
</cargo.jvmargs> |
163 |
<catalina.servlet.uriencoding>UTF-8</catalina.servlet.uriencoding> |
164 |
</properties> |
165 |
</configuration> |
166 |
<deployables> |
167 |
<deployable> |
168 |
<groupId>com.onehippo.gogreen</groupId> |
169 |
<artifactId>hippogogreen-cms</artifactId> |
170 |
<type>war</type> |
171 |
<properties> |
172 |
<context>/cms</context> |
173 |
</properties> |
174 |
</deployable> |
175 |
<deployable> |
176 |
<groupId>com.onehippo.gogreen</groupId> |
177 |
<artifactId>hippogogreen-site</artifactId> |
178 |
<type>war</type> |
179 |
<properties> |
180 |
<context>/site</context> |
181 |
</properties> |
182 |
</deployable> |
183 |
</deployables> |
184 |
<container> |
185 |
<containerId>tomcat${cargo.tomcat.major.version}x</containerId> |
186 |
<systemProperties> |
187 |
<repo.path>${project.build.directory}/storage</repo.path> |
188 |
<log4j.configuration>file:${project.basedir}/../conf/log4j-dev.xml</log4j.configuration> |
189 |
</systemProperties> |
190 |
<zipUrlInstaller> |
191 |
<url>${cargo.tomcat.distribution.url}</url> |
192 |
</zipUrlInstaller> |
193 |
<timeout>600000</timeout> |
194 |
<dependencies> |
195 |
<dependency> |
196 |
<groupId>org.apache.geronimo.specs</groupId> |
197 |
<artifactId>geronimo-jta_1.1_spec</artifactId> |
198 |
<classpath>extra</classpath> |
199 |
</dependency> |
200 |
<dependency> |
201 |
<groupId>javax.jcr</groupId> |
202 |
<artifactId>jcr</artifactId> |
203 |
<classpath>extra</classpath> |
204 |
</dependency> |
205 |
<dependency> |
206 |
<groupId>javax.mail</groupId> |
207 |
<artifactId>mail</artifactId> |
208 |
<classpath>extra</classpath> |
209 |
</dependency> |
210 |
<dependency> |
211 |
<groupId>org.onehippo.cms7</groupId> |
212 |
<artifactId>hippo-cms7-commons</artifactId> |
213 |
<classpath>shared</classpath> |
214 |
</dependency> |
215 |
<dependency> |
216 |
<groupId>org.onehippo.cms7</groupId> |
217 |
<artifactId>hippo-services</artifactId> |
218 |
<classpath>shared</classpath> |
219 |
</dependency> |
220 |
<dependency> |
221 |
<groupId>org.onehippo.cms7</groupId> |
222 |
<artifactId>hippo-repository-api</artifactId> |
223 |
<classpath>shared</classpath> |
224 |
</dependency> |
225 |
<dependency> |
226 |
<groupId>org.onehippo.cms7</groupId> |
227 |
<artifactId>hippo-repository-builtin</artifactId> |
228 |
<classpath>shared</classpath> |
229 |
</dependency> |
230 |
<dependency> |
231 |
<groupId>log4j</groupId> |
232 |
<artifactId>log4j</artifactId> |
233 |
<classpath>shared</classpath> |
234 |
</dependency> |
235 |
<dependency> |
236 |
<groupId>org.slf4j</groupId> |
237 |
<artifactId>slf4j-api</artifactId> |
238 |
<classpath>shared</classpath> |
239 |
</dependency> |
240 |
<dependency> |
241 |
<groupId>org.slf4j</groupId> |
242 |
<artifactId>jcl-over-slf4j</artifactId> |
243 |
<classpath>shared</classpath> |
244 |
</dependency> |
245 |
<dependency> |
246 |
<groupId>org.slf4j</groupId> |
247 |
<artifactId>slf4j-log4j12</artifactId> |
248 |
<classpath>shared</classpath> |
249 |
</dependency> |
250 |
</dependencies> |
251 |
</container> |
252 |
</configuration> |
253 |
</plugin> |
254 |
|
255 |
<plugin> |
256 |
<groupId>org.codehaus.mojo</groupId> |
257 |
<artifactId>selenium-maven-plugin</artifactId> |
258 |
<version>2.3</version> |
259 |
<executions> |
260 |
<execution> |
261 |
<phase>pre-integration-test</phase> |
262 |
<goals> |
263 |
<goal>xvfb</goal> |
264 |
</goals> |
265 |
</execution> |
266 |
</executions> |
267 |
<configuration> |
268 |
<xauthEnabled>false</xauthEnabled> |
269 |
</configuration> |
270 |
</plugin> |
271 |
|
272 |
<plugin> |
273 |
<groupId>org.apache.maven.plugins</groupId> |
274 |
<artifactId>maven-surefire-plugin</artifactId> |
275 |
<configuration> |
276 |
<skip>true</skip> |
277 |
</configuration> |
278 |
<executions> |
279 |
<execution> |
280 |
<phase>integration-test</phase> |
281 |
<goals> |
282 |
<goal>test</goal> |
283 |
</goals> |
284 |
<configuration> |
285 |
<skip>false</skip> |
286 |
<environmentVariables> |
287 |
<DISPLAY>${display}</DISPLAY> |
288 |
</environmentVariables> |
289 |
<suiteXmlFiles> |
290 |
<suiteXmlFile>src/test/resources/tests.xml</suiteXmlFile> |
291 |
</suiteXmlFiles> |
292 |
</configuration> |
293 |
</execution> |
294 |
</executions> |
295 |
</plugin> |
296 |
</plugins> |
297 |
</build> |
298 |
</profile> |
299 |
</profiles> |
300 |
</project> |