You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. -->
  20. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  22. <modelVersion>4.0.0</modelVersion>
  23. <parent>
  24. <groupId>org.apache.archiva</groupId>
  25. <artifactId>archiva-web</artifactId>
  26. <version>3.0.0-SNAPSHOT</version>
  27. </parent>
  28. <artifactId>archiva-webapp-test</artifactId>
  29. <packaging>pom</packaging>
  30. <name>Archiva Web :: Javascript Application Tests</name>
  31. <properties>
  32. <webappDirectory>${project.build.directory}/container/webapps/archiva</webappDirectory>
  33. <container.propertiesPortFilePath>${project.build.directory}/container-port.properties
  34. </container.propertiesPortFilePath>
  35. <maxWaitTimeInMs>10000</maxWaitTimeInMs>
  36. <selenium-server.version>3.4.0</selenium-server.version>
  37. <fluentlenium.version>3.2.0</fluentlenium.version>
  38. <fluentlenium.festassert.version>0.13.2</fluentlenium.festassert.version>
  39. <browserPath/>
  40. <site.staging.base>${project.parent.parent.basedir}</site.staging.base>
  41. </properties>
  42. <dependencies>
  43. <dependency>
  44. <groupId>commons-io</groupId>
  45. <artifactId>commons-io</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.archiva</groupId>
  49. <artifactId>archiva-webapp</artifactId>
  50. <type>war</type>
  51. </dependency>
  52. <!--
  53. jcr-oak currently needs guava 15.0 and selenium webdriver needs 22.0
  54. This is a rather poor workaround here better would be a way to use
  55. the higher version for all scopes.
  56. TODO: Check what's necessary to get jcr oak running with 22.0
  57. -->
  58. <dependency>
  59. <groupId>com.google.guava</groupId>
  60. <artifactId>guava</artifactId>
  61. <version>22.0</version>
  62. </dependency>
  63. <!-- Selenium dependencies -->
  64. <dependency>
  65. <groupId>org.seleniumhq.selenium</groupId>
  66. <artifactId>selenium-java</artifactId>
  67. <scope>test</scope>
  68. <version>${selenium-server.version}</version>
  69. <exclusions>
  70. <exclusion>
  71. <groupId>commons-logging</groupId>
  72. <artifactId>commons-logging</artifactId>
  73. </exclusion>
  74. <exclusion>
  75. <groupId>jakarta.servlet</groupId>
  76. <artifactId>jakarta.servlet-api</artifactId>
  77. </exclusion>
  78. <exclusion>
  79. <groupId>org.eclipse.jetty</groupId>
  80. <artifactId>jetty-io</artifactId>
  81. </exclusion>
  82. <exclusion>
  83. <groupId>org.eclipse.jetty.websocket</groupId>
  84. <artifactId>websocket-client</artifactId>
  85. </exclusion>
  86. <exclusion>
  87. <groupId>org.eclipse.jetty</groupId>
  88. <artifactId>jetty-util</artifactId>
  89. </exclusion>
  90. <exclusion>
  91. <groupId>org.eclipse.jetty.websocket</groupId>
  92. <artifactId>websocket-api</artifactId>
  93. </exclusion>
  94. <exclusion>
  95. <groupId>org.eclipse.jetty.websocket</groupId>
  96. <artifactId>websocket-common</artifactId>
  97. </exclusion>
  98. <exclusion>
  99. <groupId>net.sourceforge.htmlunit</groupId>
  100. <artifactId>neko-htmlunit</artifactId>
  101. </exclusion>
  102. <exclusion>
  103. <groupId>net.sourceforge.htmlunit</groupId>
  104. <artifactId>htmlunit-core-js</artifactId>
  105. </exclusion>
  106. <exclusion>
  107. <groupId>net.sourceforge.cssparser</groupId>
  108. <artifactId>cssparser</artifactId>
  109. </exclusion>
  110. <exclusion>
  111. <groupId>org.seleniumhq.selenium</groupId>
  112. <artifactId>htmlunit-driver</artifactId>
  113. </exclusion>
  114. </exclusions>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.seleniumhq.selenium</groupId>
  118. <artifactId>selenium-leg-rc</artifactId>
  119. <scope>test</scope>
  120. <version>${selenium-server.version}</version>
  121. <exclusions>
  122. <exclusion>
  123. <groupId>org.testng</groupId>
  124. <artifactId>testng</artifactId>
  125. </exclusion>
  126. <exclusion>
  127. <groupId>commons-logging</groupId>
  128. <artifactId>commons-logging</artifactId>
  129. </exclusion>
  130. <exclusion>
  131. <groupId>jakarta.servlet</groupId>
  132. <artifactId>jakarta.servlet-api</artifactId>
  133. </exclusion>
  134. <exclusion>
  135. <groupId>org.eclipse.jetty</groupId>
  136. <artifactId>jetty-io</artifactId>
  137. </exclusion>
  138. <exclusion>
  139. <groupId>org.eclipse.jetty.websocket</groupId>
  140. <artifactId>websocket-client</artifactId>
  141. </exclusion>
  142. <exclusion>
  143. <groupId>org.eclipse.jetty</groupId>
  144. <artifactId>jetty-util</artifactId>
  145. </exclusion>
  146. <exclusion>
  147. <groupId>org.eclipse.jetty.websocket</groupId>
  148. <artifactId>websocket-api</artifactId>
  149. </exclusion>
  150. <exclusion>
  151. <groupId>org.eclipse.jetty.websocket</groupId>
  152. <artifactId>websocket-common</artifactId>
  153. </exclusion>
  154. </exclusions>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.seleniumhq.selenium</groupId>
  158. <artifactId>selenium-server</artifactId>
  159. <scope>test</scope>
  160. <version>${selenium-server.version}</version>
  161. <exclusions>
  162. <exclusion>
  163. <groupId>commons-logging</groupId>
  164. <artifactId>commons-logging</artifactId>
  165. </exclusion>
  166. <exclusion>
  167. <groupId>jakarta.servlet</groupId>
  168. <artifactId>jakarta.servlet-api</artifactId>
  169. </exclusion>
  170. <exclusion>
  171. <groupId>org.eclipse.jetty</groupId>
  172. <artifactId>jetty-io</artifactId>
  173. </exclusion>
  174. <exclusion>
  175. <groupId>org.eclipse.jetty</groupId>
  176. <artifactId>jetty-util</artifactId>
  177. </exclusion>
  178. <exclusion>
  179. <groupId>org.eclipse.jetty.websocket</groupId>
  180. <artifactId>websocket-client</artifactId>
  181. </exclusion>
  182. <exclusion>
  183. <groupId>org.eclipse.jetty.websocket</groupId>
  184. <artifactId>websocket-api</artifactId>
  185. </exclusion>
  186. <exclusion>
  187. <groupId>org.eclipse.jetty.websocket</groupId>
  188. <artifactId>websocket-common</artifactId>
  189. </exclusion>
  190. <exclusion>
  191. <groupId>net.sourceforge.htmlunit</groupId>
  192. <artifactId>neko-htmlunit</artifactId>
  193. </exclusion>
  194. <exclusion>
  195. <groupId>net.sourceforge.htmlunit</groupId>
  196. <artifactId>htmlunit-core-js</artifactId>
  197. </exclusion>
  198. <exclusion>
  199. <groupId>net.sourceforge.cssparser</groupId>
  200. <artifactId>cssparser</artifactId>
  201. </exclusion>
  202. </exclusions>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.fluentlenium</groupId>
  206. <artifactId>fluentlenium-core</artifactId>
  207. <version>${fluentlenium.version}</version>
  208. <scope>test</scope>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.fluentlenium</groupId>
  212. <artifactId>fluentlenium-festassert</artifactId>
  213. <version>${fluentlenium.festassert.version}</version>
  214. <scope>test</scope>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.fluentlenium</groupId>
  218. <artifactId>fluentlenium-junit</artifactId>
  219. <version>${fluentlenium.version}</version>
  220. <scope>test</scope>
  221. </dependency>
  222. <!-- End of Selenium dependencies -->
  223. <!-- Dependencies below are provided by the appserver -->
  224. <dependency>
  225. <groupId>org.apache.derby</groupId>
  226. <artifactId>derby</artifactId>
  227. </dependency>
  228. <dependency>
  229. <groupId>jakarta.mail</groupId>
  230. <artifactId>jakarta.mail-api</artifactId>
  231. </dependency>
  232. <dependency>
  233. <groupId>jakarta.activation</groupId>
  234. <artifactId>jakarta.activation-api</artifactId>
  235. </dependency>
  236. <dependency>
  237. <groupId>org.apache.commons</groupId>
  238. <artifactId>commons-lang3</artifactId>
  239. </dependency>
  240. <dependency>
  241. <groupId>org.assertj</groupId>
  242. <artifactId>assertj-core</artifactId>
  243. <scope>test</scope>
  244. </dependency>
  245. <dependency>
  246. <groupId>org.apache.logging.log4j</groupId>
  247. <artifactId>log4j-jcl</artifactId>
  248. </dependency>
  249. <dependency>
  250. <groupId>org.apache.logging.log4j</groupId>
  251. <artifactId>log4j-slf4j-impl</artifactId>
  252. </dependency>
  253. <dependency>
  254. <groupId>org.apache.logging.log4j</groupId>
  255. <artifactId>log4j-1.2-api</artifactId>
  256. </dependency>
  257. <dependency>
  258. <groupId>org.eclipse.jetty</groupId>
  259. <artifactId>jetty-io</artifactId>
  260. <version>${jetty.version}</version>
  261. </dependency>
  262. <dependency>
  263. <groupId>org.eclipse.jetty</groupId>
  264. <artifactId>jetty-util</artifactId>
  265. <version>${jetty.version}</version>
  266. <scope>test</scope>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.eclipse.jetty.websocket</groupId>
  270. <artifactId>websocket-api</artifactId>
  271. <version>${jetty.version}</version>
  272. <scope>test</scope>
  273. </dependency>
  274. <dependency>
  275. <groupId>org.eclipse.jetty.websocket</groupId>
  276. <artifactId>websocket-client</artifactId>
  277. <version>${jetty.version}</version>
  278. <scope>test</scope>
  279. </dependency>
  280. <dependency>
  281. <groupId>org.seleniumhq.selenium</groupId>
  282. <artifactId>htmlunit-driver</artifactId>
  283. <version>${html.unit.version}</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>net.sourceforge.htmlunit</groupId>
  287. <artifactId>htmlunit</artifactId>
  288. <version>${html.unit.version}</version>
  289. <scope>test</scope>
  290. </dependency>
  291. </dependencies>
  292. <build>
  293. <testResources>
  294. <testResource>
  295. <directory>src/test/resources</directory>
  296. <filtering>true</filtering>
  297. <includes>
  298. <include>**/*</include>
  299. </includes>
  300. </testResource>
  301. </testResources>
  302. <pluginManagement>
  303. <plugins>
  304. <plugin>
  305. <groupId>org.apache.rat</groupId>
  306. <artifactId>apache-rat-plugin</artifactId>
  307. <configuration>
  308. <excludes>
  309. <exclude>src/test/resources/appserver-base/**</exclude>
  310. <exclude>src/test/resources/repository/**</exclude>
  311. <exclude>src/test/resources/local-repo/**</exclude>
  312. <exclude>src/test/resources/projects/**</exclude>
  313. <exclude>src/test/resources/snapshots/**</exclude>
  314. </excludes>
  315. </configuration>
  316. </plugin>
  317. </plugins>
  318. </pluginManagement>
  319. <plugins>
  320. <plugin>
  321. <groupId>org.codehaus.mojo</groupId>
  322. <artifactId>build-helper-maven-plugin</artifactId>
  323. <configuration>
  324. <portNames>
  325. <portName>container.http.port</portName>
  326. <portName>container.stop.port</portName>
  327. </portNames>
  328. <fileSet/>
  329. <name/>
  330. <regex/>
  331. <source/>
  332. <value/>
  333. </configuration>
  334. <executions>
  335. <execution>
  336. <id>reserve-port</id>
  337. <phase>pre-integration-test</phase>
  338. <goals>
  339. <goal>reserve-network-port</goal>
  340. </goals>
  341. </execution>
  342. </executions>
  343. </plugin>
  344. <plugin>
  345. <artifactId>maven-resources-plugin</artifactId>
  346. <executions>
  347. <execution>
  348. <goals>
  349. <goal>testResources</goal>
  350. </goals>
  351. </execution>
  352. </executions>
  353. </plugin>
  354. <plugin>
  355. <groupId>org.apache.maven.plugins</groupId>
  356. <artifactId>maven-compiler-plugin</artifactId>
  357. <executions>
  358. <execution>
  359. <goals>
  360. <goal>testCompile</goal>
  361. </goals>
  362. </execution>
  363. </executions>
  364. </plugin>
  365. <plugin>
  366. <groupId>org.apache.maven.plugins</groupId>
  367. <artifactId>maven-failsafe-plugin</artifactId>
  368. <version>2.22.2</version>
  369. <configuration>
  370. <redirectTestOutputToFile>false</redirectTestOutputToFile>
  371. <runOrder>alphabetical</runOrder>
  372. <includes>
  373. <include>**/*Test.java</include>
  374. </includes>
  375. </configuration>
  376. <executions>
  377. <execution>
  378. <id>integration-tests</id>
  379. <goals>
  380. <goal>integration-test</goal>
  381. </goals>
  382. <configuration>
  383. <systemPropertyVariables>
  384. <browser>${selenium.browser}</browser>
  385. <selenium.browser>${selenium.browser}</selenium.browser>
  386. <baseUrl>${baseUrl}</baseUrl>
  387. <maxWaitTimeInMs>${maxWaitTimeInMs}</maxWaitTimeInMs>
  388. <seleniumHost>${seleniumHost}</seleniumHost>
  389. <seleniumPort>${seleniumPort}</seleniumPort>
  390. <seleniumRemote>${seleniumRemote}</seleniumRemote>
  391. <container.propertiesPortFilePath>${container.propertiesPortFilePath}</container.propertiesPortFilePath>
  392. <container.http.port>${container.http.port}</container.http.port>
  393. <org.sonatype.inject.debug>true</org.sonatype.inject.debug>
  394. </systemPropertyVariables>
  395. </configuration>
  396. </execution>
  397. <execution>
  398. <id>verify</id>
  399. <goals>
  400. <goal>verify</goal>
  401. </goals>
  402. </execution>
  403. </executions>
  404. </plugin>
  405. </plugins>
  406. </build>
  407. <profiles>
  408. <profile>
  409. <id>create-container</id>
  410. <activation>
  411. <property>
  412. <name>!container</name>
  413. </property>
  414. </activation>
  415. <build>
  416. <plugins>
  417. <plugin>
  418. <groupId>org.apache.maven.plugins</groupId>
  419. <artifactId>maven-dependency-plugin</artifactId>
  420. <executions>
  421. <execution>
  422. <id>unzip-archiva-webapp</id>
  423. <phase>compile</phase>
  424. <goals>
  425. <goal>unpack</goal>
  426. </goals>
  427. <configuration>
  428. <artifactItems>
  429. <artifactItem>
  430. <groupId>${project.groupId}</groupId>
  431. <artifactId>archiva-webapp</artifactId>
  432. <version>${project.version}</version>
  433. <type>war</type>
  434. </artifactItem>
  435. </artifactItems>
  436. <outputDirectory>${webappDirectory}</outputDirectory>
  437. <overWriteSnapshots>true</overWriteSnapshots>
  438. </configuration>
  439. </execution>
  440. </executions>
  441. </plugin>
  442. <plugin>
  443. <groupId>org.apache.maven.plugins</groupId>
  444. <artifactId>maven-antrun-plugin</artifactId>
  445. <executions>
  446. <execution>
  447. <phase>process-classes</phase>
  448. <goals>
  449. <goal>run</goal>
  450. </goals>
  451. <configuration>
  452. <target>
  453. <copy overwrite="true" todir="${webappDirectory}/WEB-INF/classes">
  454. <fileset dir="src/test/resources/logging"/>
  455. </copy>
  456. <copy todir="${project.build.directory}/appserver-base">
  457. <fileset dir="src/test/resources/appserver-base"/>
  458. </copy>
  459. <copy todir="${project.build.directory}/repository">
  460. <fileset dir="src/test/resources/repository"/>
  461. </copy>
  462. <copy todir="${project.build.directory}/index">
  463. <fileset dir="src/test/resources/index"/>
  464. </copy>
  465. <copy todir="${project.build.directory}/snapshots">
  466. <fileset dir="src/test/resources/snapshots"/>
  467. </copy>
  468. <copy todir="${project.build.directory}/projects">
  469. <fileset dir="src/test/resources/projects"/>
  470. </copy>
  471. <copy todir="${project.build.directory}/local-repo">
  472. <fileset dir="src/test/resources/local-repo"/>
  473. </copy>
  474. <copy todir="${project.build.directory}/errorshtmlsnap/css">
  475. <fileset dir="${webappDirectory}/css"/>
  476. </copy>
  477. <copy todir="${project.build.directory}/errorshtmlsnap/js">
  478. <fileset dir="${webappDirectory}/js"/>
  479. </copy>
  480. <copy todir="${project.build.directory}/errorshtmlsnap/img">
  481. <fileset dir="${webappDirectory}/img"/>
  482. </copy>
  483. <copy todir="${project.build.directory}/errorshtmlsnap/images">
  484. <fileset dir="${webappDirectory}/images"/>
  485. </copy>
  486. </target>
  487. </configuration>
  488. </execution>
  489. </executions>
  490. </plugin>
  491. <plugin>
  492. <groupId>org.eclipse.jetty</groupId>
  493. <artifactId>jetty-maven-plugin</artifactId>
  494. <version>${jetty.version}</version>
  495. <configuration>
  496. <stopKey>archivastop</stopKey>
  497. <stopPort>${container.stop.port}</stopPort>
  498. <stopWait>30</stopWait>
  499. <httpConnector>
  500. <port>${container.http.port}</port>
  501. </httpConnector>
  502. <supportedPackagings>
  503. <supportedPackaging>pom</supportedPackaging>
  504. </supportedPackagings>
  505. </configuration>
  506. <dependencies>
  507. <dependency>
  508. <groupId>org.apache.derby</groupId>
  509. <artifactId>derby</artifactId>
  510. <version>${derbyVersion}</version>
  511. </dependency>
  512. <dependency>
  513. <groupId>jakarta.mail</groupId>
  514. <artifactId>jakarta.mail-api</artifactId>
  515. <version>${jakarta.mail.version}</version>
  516. </dependency>
  517. <dependency>
  518. <groupId>com.google.guava</groupId>
  519. <artifactId>guava</artifactId>
  520. <version>22.0</version>
  521. </dependency>
  522. </dependencies>
  523. <executions>
  524. <execution>
  525. <id>jetty-run</id>
  526. <goals>
  527. <goal>deploy-war</goal>
  528. </goals>
  529. <phase>pre-integration-test</phase>
  530. <configuration>
  531. <daemon>true</daemon>
  532. <webApp>
  533. <contextPath>/archiva</contextPath>
  534. <jettyEnvXml>${project.build.testOutputDirectory}/jetty/jetty-env.xml</jettyEnvXml>
  535. </webApp>
  536. <war>${webappDirectory}</war>
  537. <systemProperties>
  538. <systemProperty>
  539. <name>appserver.base</name>
  540. <value>${project.build.directory}/appserver-base</value>
  541. </systemProperty>
  542. <systemProperty>
  543. <name>appserver.home</name>
  544. <value>${project.build.directory}/appserver-base</value>
  545. </systemProperty>
  546. <systemProperty>
  547. <name>derby.system.home</name>
  548. <value>${project.build.directory}</value>
  549. </systemProperty>
  550. <systemProperty>
  551. <name>archiva.devMode</name>
  552. <value>true</value>
  553. </systemProperty>
  554. <systemProperty>
  555. <name>openjpa.Log</name>
  556. <value>${openjpa.Log}</value>
  557. </systemProperty>
  558. <systemProperty>
  559. <name>org.apache.jackrabbit.core.state.validatehierarchy</name>
  560. <value>true</value>
  561. </systemProperty>
  562. <systemProperty>
  563. <name>org.apache.logging.log4j.simplelog.StatusLogger.level</name>
  564. <value>TRACE</value>
  565. </systemProperty>
  566. <systemProperty>
  567. <name>log4j.configurationFile</name>
  568. <value>${project.build.directory}/test-classes/log4j2-test.xml</value>
  569. </systemProperty>
  570. <systemProperty>
  571. <name>org.sonatype.inject.debug</name>
  572. <value>true</value>
  573. </systemProperty>
  574. </systemProperties>
  575. </configuration>
  576. </execution>
  577. <execution>
  578. <id>jetty-shutdown</id>
  579. <goals>
  580. <goal>stop</goal>
  581. </goals>
  582. <phase>post-integration-test</phase>
  583. </execution>
  584. </executions>
  585. </plugin>
  586. </plugins>
  587. </build>
  588. </profile>
  589. <profile>
  590. <id>existing-container</id>
  591. <activation>
  592. <property>
  593. <name>!baseUrl</name>
  594. </property>
  595. </activation>
  596. <properties>
  597. <baseUrl>http://localhost:${container.http.port}/archiva</baseUrl>
  598. </properties>
  599. </profile>
  600. <profile>
  601. <id>seleniumHost</id>
  602. <activation>
  603. <property>
  604. <name>!seleniumHost</name>
  605. </property>
  606. </activation>
  607. <properties>
  608. <seleniumHost>localhost</seleniumHost>
  609. </properties>
  610. </profile>
  611. <profile>
  612. <id>seleniumPort</id>
  613. <activation>
  614. <property>
  615. <name>!seleniumPort</name>
  616. </property>
  617. </activation>
  618. <properties>
  619. <seleniumPort/>
  620. </properties>
  621. </profile>
  622. <profile>
  623. <id>seleniumRemote</id>
  624. <activation>
  625. <property>
  626. <name>!seleniumRemote</name>
  627. </property>
  628. </activation>
  629. <properties>
  630. <seleniumRemote>false</seleniumRemote>
  631. </properties>
  632. </profile>
  633. <profile>
  634. <id>htmlunit</id>
  635. <activation>
  636. <property>
  637. <name>!browser</name>
  638. </property>
  639. </activation>
  640. <properties>
  641. <selenium.browser>*htmlunit</selenium.browser>
  642. <excluded.groups/>
  643. </properties>
  644. </profile>
  645. <profile>
  646. <id>firefox</id>
  647. <activation>
  648. <property>
  649. <name>browser</name>
  650. <value>firefox</value>
  651. </property>
  652. </activation>
  653. <properties>
  654. <selenium.browser>*firefox</selenium.browser>
  655. <excluded.groups/>
  656. </properties>
  657. </profile>
  658. <profile>
  659. <id>chrome</id>
  660. <activation>
  661. <property>
  662. <name>browser</name>
  663. <value>chrome</value>
  664. </property>
  665. </activation>
  666. <properties>
  667. <selenium.browser>*googlechrome</selenium.browser>
  668. <excluded.groups>requiresUpload</excluded.groups>
  669. </properties>
  670. </profile>
  671. <profile>
  672. <id>iexplore</id>
  673. <activation>
  674. <property>
  675. <name>browser</name>
  676. <value>iexplore</value>
  677. </property>
  678. </activation>
  679. <properties>
  680. <selenium.browser>*iexplore</selenium.browser>
  681. <excluded.groups>requiresUpload</excluded.groups>
  682. </properties>
  683. </profile>
  684. <profile>
  685. <id>safari</id>
  686. <activation>
  687. <property>
  688. <name>browser</name>
  689. <value>safari</value>
  690. </property>
  691. </activation>
  692. <properties>
  693. <selenium.browser>*safari</selenium.browser>
  694. <excluded.groups>requiresUpload</excluded.groups>
  695. </properties>
  696. </profile>
  697. <profile>
  698. <id>otherbrowser</id>
  699. <activation>
  700. <property>
  701. <name>browser</name>
  702. <value>other</value>
  703. </property>
  704. </activation>
  705. <properties>
  706. <selenium.browser>*custom ${browserPath}</selenium.browser>
  707. <excluded.groups>requiresUpload</excluded.groups>
  708. </properties>
  709. </profile>
  710. <profile>
  711. <id>headless</id>
  712. <build>
  713. <plugins>
  714. <plugin>
  715. <groupId>org.codehaus.mojo</groupId>
  716. <artifactId>selenium-maven-plugin</artifactId>
  717. <executions>
  718. <execution>
  719. <id>xvfb</id>
  720. <phase>validate</phase>
  721. <goals>
  722. <goal>xvfb</goal>
  723. </goals>
  724. </execution>
  725. </executions>
  726. </plugin>
  727. </plugins>
  728. </build>
  729. </profile>
  730. <profile>
  731. <id>ci-server</id>
  732. <build>
  733. <plugins>
  734. <plugin>
  735. <groupId>org.apache.maven.plugins</groupId>
  736. <artifactId>maven-antrun-plugin</artifactId>
  737. <executions>
  738. <execution>
  739. <id>cleanup-files</id>
  740. <phase>initialize</phase>
  741. <goals>
  742. <goal>run</goal>
  743. </goals>
  744. <configuration>
  745. <failOnError>false</failOnError>
  746. <target>
  747. <delete file="${user.home}/.m2/archiva.xml"/>
  748. </target>
  749. </configuration>
  750. </execution>
  751. </executions>
  752. </plugin>
  753. </plugins>
  754. </build>
  755. </profile>
  756. </profiles>
  757. </project>