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 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.vaadin</groupId>
  7. <artifactId>vaadin-root</artifactId>
  8. <version>7.7-SNAPSHOT</version>
  9. </parent>
  10. <artifactId>vaadin-uitest</artifactId>
  11. <name>vaadin-uitest</name>
  12. <packaging>war</packaging>
  13. <properties>
  14. <skip.uitest.deployment>true</skip.uitest.deployment>
  15. <skip.uitest.failsafe>true</skip.uitest.failsafe>
  16. <!-- Parallel test count -->
  17. <parallel.tests>12</parallel.tests>
  18. <reference.screenshot.dir>${project.parent.basedir}/uitest/reference-screenshots</reference.screenshot.dir>
  19. </properties>
  20. <url>https://vaadin.com/</url>
  21. <description>Vaadin UI tests</description>
  22. <repositories>
  23. <repository>
  24. <id>vaadin-addons</id>
  25. <url>http://maven.vaadin.com/vaadin-addons</url>
  26. </repository>
  27. <repository>
  28. <id>vaadin-snapshots</id>
  29. <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots</url>
  30. <releases>
  31. <enabled>false</enabled>
  32. </releases>
  33. <snapshots>
  34. <enabled>true</enabled>
  35. </snapshots>
  36. </repository>
  37. </repositories>
  38. <dependencies>
  39. <!-- API DEPENDENCIES -->
  40. <dependency>
  41. <groupId>javax.portlet</groupId>
  42. <artifactId>portlet-api</artifactId>
  43. <version>2.0</version>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>javax.validation</groupId>
  48. <artifactId>validation-api</artifactId>
  49. <version>1.0.0.GA</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.hibernate</groupId>
  53. <artifactId>hibernate-validator</artifactId>
  54. <version>4.2.0.Final</version>
  55. </dependency>
  56. <!-- Google App Engine -->
  57. <dependency>
  58. <groupId>com.google.appengine</groupId>
  59. <artifactId>appengine-api-1.0-sdk</artifactId>
  60. <version>1.7.7</version>
  61. <scope>provided</scope>
  62. </dependency>
  63. <!-- jetty-servlets needed by ProxyTest, but not by jetty-runner -->
  64. <!-- Jetty before vaadin-* on the classpath to make Eclipse use the
  65. right version -->
  66. <dependency>
  67. <groupId>org.eclipse.jetty</groupId>
  68. <artifactId>jetty-server</artifactId>
  69. <version>${jetty.version}</version>
  70. <scope>provided</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.eclipse.jetty</groupId>
  74. <artifactId>jetty-servlets</artifactId>
  75. <version>${jetty.version}</version>
  76. <scope>provided</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.eclipse.jetty.websocket</groupId>
  80. <artifactId>websocket-server</artifactId>
  81. <version>${jetty.version}</version>
  82. <scope>provided</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.eclipse.jetty</groupId>
  86. <artifactId>jetty-webapp</artifactId>
  87. <version>${jetty.version}</version>
  88. <scope>provided</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.eclipse.jetty</groupId>
  92. <artifactId>jetty-util</artifactId>
  93. <version>${jetty.version}</version>
  94. <scope>provided</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.eclipse.jetty</groupId>
  98. <artifactId>jetty-proxy</artifactId>
  99. <version>${jetty.version}</version>
  100. <scope>provided</scope>
  101. </dependency>
  102. <!-- LIBRARY DEPENDENCIES (compile time) -->
  103. <!-- Project modules -->
  104. <dependency>
  105. <groupId>com.vaadin</groupId>
  106. <artifactId>vaadin-server</artifactId>
  107. <version>${project.version}</version>
  108. <exclusions>
  109. <exclusion>
  110. <groupId>javax.servlet</groupId>
  111. <artifactId>javax.servlet-api</artifactId>
  112. </exclusion>
  113. </exclusions>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.vaadin</groupId>
  117. <artifactId>vaadin-client</artifactId>
  118. <version>${project.version}</version>
  119. <exclusions>
  120. <exclusion>
  121. <groupId>javax.validation</groupId>
  122. <artifactId>javax.servlet-api</artifactId>
  123. </exclusion>
  124. </exclusions>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.vaadin.external.gwt</groupId>
  128. <artifactId>gwt-elemental</artifactId>
  129. <version>${vaadin.gwt.version}</version>
  130. <scope>provided</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.vaadin.external.gwt</groupId>
  134. <artifactId>gwt-servlet</artifactId>
  135. <version>${vaadin.gwt.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.vaadin</groupId>
  139. <artifactId>vaadin-client-compiled</artifactId>
  140. <version>${project.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>com.vaadin</groupId>
  144. <artifactId>vaadin-themes</artifactId>
  145. <version>${project.version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>com.vaadin</groupId>
  149. <artifactId>vaadin-push</artifactId>
  150. <version>${project.version}</version>
  151. <exclusions>
  152. <exclusion>
  153. <groupId>javax.validation</groupId>
  154. <artifactId>javax.servlet-api</artifactId>
  155. </exclusion>
  156. </exclusions>
  157. </dependency>
  158. <!-- For compiling TestingWidgetSet -->
  159. <dependency>
  160. <groupId>com.vaadin</groupId>
  161. <artifactId>vaadin-client-compiler</artifactId>
  162. <version>${project.version}</version>
  163. <scope>provided</scope>
  164. </dependency>
  165. <!-- Servlet 3.0 API -->
  166. <dependency>
  167. <groupId>javax.servlet</groupId>
  168. <artifactId>javax.servlet-api</artifactId>
  169. <version>3.1.0</version>
  170. <scope>provided</scope>
  171. </dependency>
  172. <dependency>
  173. <groupId>junit</groupId>
  174. <artifactId>junit</artifactId>
  175. <version>4.11</version>
  176. <scope>test</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.hamcrest</groupId>
  180. <artifactId>hamcrest-all</artifactId>
  181. <version>1.3</version>
  182. <scope>test</scope>
  183. </dependency>
  184. <dependency>
  185. <groupId>commons-codec</groupId>
  186. <artifactId>commons-codec</artifactId>
  187. <version>1.5</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>commons-io</groupId>
  191. <artifactId>commons-io</artifactId>
  192. <version>${commons-io.version}</version>
  193. </dependency>
  194. <!-- Mainly for SQLContainer tests -->
  195. <dependency>
  196. <groupId>org.hsqldb</groupId>
  197. <artifactId>hsqldb</artifactId>
  198. <version>2.2.6</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>com.vaadin</groupId>
  202. <artifactId>vaadin-testbench</artifactId>
  203. <version>4.3-SNAPSHOT</version>
  204. <scope>test</scope>
  205. </dependency>
  206. <!-- This should be removed once tests have been updated to use lang3 -->
  207. <dependency>
  208. <groupId>commons-lang</groupId>
  209. <artifactId>commons-lang</artifactId>
  210. <version>2.6</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>com.vaadin</groupId>
  214. <artifactId>vaadin-sass-compiler</artifactId>
  215. <version>${vaadin.sass.version}</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.eclipse.jgit</groupId>
  219. <artifactId>org.eclipse.jgit</artifactId>
  220. <version>3.5.1.201410131835-r</version>
  221. <exclusions>
  222. <exclusion>
  223. <groupId>org.apache.httpcomponents</groupId>
  224. <artifactId>httpclient</artifactId>
  225. </exclusion>
  226. </exclusions>
  227. </dependency>
  228. </dependencies>
  229. <build>
  230. <resources>
  231. <resource>
  232. <directory>src/main/themes</directory>
  233. <excludes>
  234. <exclude>**/*.scss</exclude>
  235. </excludes>
  236. </resource>
  237. <resource>
  238. <directory>src/main/resources</directory>
  239. </resource>
  240. </resources>
  241. <plugins>
  242. <plugin>
  243. <groupId>com.vaadin</groupId>
  244. <artifactId>vaadin-maven-plugin</artifactId>
  245. <configuration>
  246. <warSourceDirectory>src/main/themes</warSourceDirectory>
  247. <webappDirectory>${project.build.outputDirectory}/VAADIN/widgetsets</webappDirectory>
  248. <persistentunitcachedir>${project.build.directory}/gwt-unitCache</persistentunitcachedir>
  249. </configuration>
  250. <executions>
  251. <execution>
  252. <goals>
  253. <goal>compile</goal>
  254. <goal>compile-theme</goal>
  255. </goals>
  256. </execution>
  257. </executions>
  258. </plugin>
  259. <plugin>
  260. <groupId>org.eclipse.jetty</groupId>
  261. <artifactId>jetty-maven-plugin</artifactId>
  262. <version>${jetty.version}</version>
  263. <configuration>
  264. <httpConnector>
  265. <port>8888</port>
  266. </httpConnector>
  267. <stopKey>foo</stopKey>
  268. <stopPort>8889</stopPort>
  269. </configuration>
  270. </plugin>
  271. <plugin>
  272. <artifactId>maven-install-plugin</artifactId>
  273. <configuration>
  274. <skip>true</skip>
  275. </configuration>
  276. </plugin>
  277. <plugin>
  278. <artifactId>maven-deploy-plugin</artifactId>
  279. <configuration>
  280. <skip>${skip.uitest.deployment}</skip>
  281. </configuration>
  282. </plugin>
  283. <plugin>
  284. <artifactId>maven-surefire-plugin</artifactId>
  285. <configuration>
  286. <skip>true</skip>
  287. </configuration>
  288. </plugin>
  289. <plugin>
  290. <groupId>org.codehaus.mojo</groupId>
  291. <artifactId>animal-sniffer-maven-plugin</artifactId>
  292. <configuration>
  293. <skip>true</skip>
  294. </configuration>
  295. </plugin>
  296. <plugin>
  297. <artifactId>maven-failsafe-plugin</artifactId>
  298. <configuration>
  299. <skip>${skip.uitest.failsafe}</skip>
  300. <includes>
  301. <include>**/AllTB3Tests.java</include>
  302. </includes>
  303. <systemPropertyVariables>
  304. <com.vaadin.testbench.Parameters.screenshotReferenceDirectory>${reference.screenshot.dir}</com.vaadin.testbench.Parameters.screenshotReferenceDirectory>
  305. <com.vaadin.testbench.Parameters.screenshotErrorDirectory>${project.build.directory}/error-screenshots</com.vaadin.testbench.Parameters.screenshotErrorDirectory>
  306. <com.vaadin.testbench.Parameters.maxAttempts>${com.vaadin.testbench.Parameters.maxAttempts}</com.vaadin.testbench.Parameters.maxAttempts>
  307. <com.vaadin.testbench.Parameters.testsInParallel>${parallel.tests}</com.vaadin.testbench.Parameters.testsInParallel>
  308. <com.vaadin.testbench.hub.url>${com.vaadin.testbench.hub.url}</com.vaadin.testbench.hub.url>
  309. <browsers.include>${browsers.include}</browsers.include>
  310. <categories.include>${categoriess.include}</categories.include>
  311. <browsers.exclude>${browsers.exclude}</browsers.exclude>
  312. <categories.exclude>${categories.exclude}</categories.exclude>
  313. <browser.factory>${browser.factory}</browser.factory>
  314. <browserstack.identifier>${browserstack.identifier}</browserstack.identifier>
  315. </systemPropertyVariables>
  316. </configuration>
  317. <executions>
  318. <execution>
  319. <goals>
  320. <goal>integration-test</goal>
  321. <goal>verify</goal>
  322. </goals>
  323. </execution>
  324. </executions>
  325. </plugin>
  326. <plugin>
  327. <groupId>org.codehaus.mojo</groupId>
  328. <artifactId>exec-maven-plugin</artifactId>
  329. <executions>
  330. <execution>
  331. <id>run-development-server</id>
  332. <goals>
  333. <goal>exec</goal>
  334. </goals>
  335. <configuration>
  336. <executable>java</executable>
  337. <arguments>
  338. <argument>-ea</argument>
  339. <argument>-classpath</argument>
  340. <classpath />
  341. <argument>com.vaadin.launcher.DevelopmentServerLauncher</argument>
  342. </arguments>
  343. <classpathScope>test</classpathScope>
  344. </configuration>
  345. </execution>
  346. <execution>
  347. <id>debug-development-server</id>
  348. <goals>
  349. <goal>exec</goal>
  350. </goals>
  351. <configuration>
  352. <executable>java</executable>
  353. <arguments>
  354. <argument>-ea</argument>
  355. <argument>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</argument>
  356. <argument>-classpath</argument>
  357. <classpath />
  358. <argument>com.vaadin.launcher.DevelopmentServerLauncher</argument>
  359. </arguments>
  360. <classpathScope>test</classpathScope>
  361. </configuration>
  362. </execution>
  363. </executions>
  364. </plugin>
  365. </plugins>
  366. <pluginManagement>
  367. <plugins>
  368. <plugin>
  369. <groupId>org.sonatype.plugins</groupId>
  370. <artifactId>nexus-staging-maven-plugin</artifactId>
  371. <configuration>
  372. <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
  373. </configuration>
  374. </plugin>
  375. <plugin>
  376. <artifactId>maven-javadoc-plugin</artifactId>
  377. <configuration>
  378. <skip>true</skip>
  379. </configuration>
  380. </plugin>
  381. </plugins>
  382. </pluginManagement>
  383. </build>
  384. <profiles>
  385. <profile>
  386. <!-- Profile used to deploy the uitest war for testing -->
  387. <id>dev-build</id>
  388. <activation>
  389. <activeByDefault>false</activeByDefault>
  390. </activation>
  391. <properties>
  392. <skip.uitest.deployment>false</skip.uitest.deployment>
  393. </properties>
  394. </profile>
  395. <profile>
  396. <id>test</id>
  397. <activation>
  398. <activeByDefault>false</activeByDefault>
  399. </activation>
  400. <properties>
  401. <skip.uitest.failsafe>false</skip.uitest.failsafe>
  402. </properties>
  403. <build>
  404. <pluginManagement>
  405. <plugins>
  406. <plugin>
  407. <groupId>org.eclipse.jetty</groupId>
  408. <artifactId>jetty-maven-plugin</artifactId>
  409. <executions>
  410. <!-- start and stop jetty (running our app)
  411. when running integration tests -->
  412. <execution>
  413. <id>start-jetty</id>
  414. <phase>pre-integration-test</phase>
  415. <goals>
  416. <goal>start</goal>
  417. </goals>
  418. </execution>
  419. <execution>
  420. <id>stop-jetty</id>
  421. <phase>post-integration-test</phase>
  422. <goals>
  423. <goal>stop</goal>
  424. </goals>
  425. </execution>
  426. </executions>
  427. </plugin>
  428. </plugins>
  429. </pluginManagement>
  430. </build>
  431. </profile>
  432. </profiles>
  433. </project>