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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  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>8.0-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. <!-- Don't care about coding style for tests -->
  17. <sonar.skip>true</sonar.skip>
  18. </properties>
  19. <url>https://vaadin.com/</url>
  20. <description>Vaadin UI tests</description>
  21. <repositories>
  22. <repository>
  23. <id>vaadin-addons</id>
  24. <url>http://maven.vaadin.com/vaadin-addons</url>
  25. </repository>
  26. </repositories>
  27. <prerequisites>
  28. <!-- phantomjs-maven-plugin required maven 3.1 or newer -->
  29. <maven>3.1</maven>
  30. </prerequisites>
  31. <dependencies>
  32. <!-- API DEPENDENCIES -->
  33. <dependency>
  34. <groupId>javax.portlet</groupId>
  35. <artifactId>portlet-api</artifactId>
  36. <scope>provided</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>javax.validation</groupId>
  40. <artifactId>validation-api</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.hibernate</groupId>
  44. <artifactId>hibernate-validator</artifactId>
  45. </dependency>
  46. <!-- jetty-servlets needed by ProxyTest, but not by jetty-runner -->
  47. <!-- Jetty before vaadin-* on the classpath to make Eclipse use the
  48. right version -->
  49. <dependency>
  50. <groupId>org.eclipse.jetty</groupId>
  51. <artifactId>jetty-server</artifactId>
  52. <scope>provided</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.eclipse.jetty</groupId>
  56. <artifactId>jetty-servlets</artifactId>
  57. <scope>provided</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.eclipse.jetty.websocket</groupId>
  61. <artifactId>websocket-server</artifactId>
  62. <scope>provided</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.eclipse.jetty</groupId>
  66. <artifactId>jetty-webapp</artifactId>
  67. <version>${jetty.version}</version>
  68. <scope>provided</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.eclipse.jetty</groupId>
  72. <artifactId>jetty-util</artifactId>
  73. <version>${jetty.version}</version>
  74. <scope>provided</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.eclipse.jetty</groupId>
  78. <artifactId>jetty-proxy</artifactId>
  79. <version>${jetty.version}</version>
  80. <scope>provided</scope>
  81. </dependency>
  82. <!-- LIBRARY DEPENDENCIES (compile time) -->
  83. <!-- Project modules -->
  84. <dependency>
  85. <groupId>${project.groupId}</groupId>
  86. <artifactId>vaadin-server</artifactId>
  87. <version>${project.version}</version>
  88. <exclusions>
  89. <exclusion>
  90. <groupId>javax.servlet</groupId>
  91. <artifactId>javax.servlet-api</artifactId>
  92. </exclusion>
  93. </exclusions>
  94. </dependency>
  95. <dependency>
  96. <groupId>${project.groupId}</groupId>
  97. <artifactId>vaadin-client</artifactId>
  98. <version>${project.version}</version>
  99. <exclusions>
  100. <exclusion>
  101. <groupId>javax.validation</groupId>
  102. <artifactId>javax.servlet-api</artifactId>
  103. </exclusion>
  104. </exclusions>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.google.gwt</groupId>
  108. <artifactId>gwt-elemental</artifactId>
  109. <scope>provided</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.google.gwt</groupId>
  113. <artifactId>gwt-servlet</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>${project.groupId}</groupId>
  117. <artifactId>vaadin-client-compiled</artifactId>
  118. <version>${project.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>${project.groupId}</groupId>
  122. <artifactId>vaadin-themes</artifactId>
  123. <version>${project.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>${project.groupId}</groupId>
  127. <artifactId>vaadin-push</artifactId>
  128. <version>${project.version}</version>
  129. <exclusions>
  130. <exclusion>
  131. <groupId>javax.validation</groupId>
  132. <artifactId>javax.servlet-api</artifactId>
  133. </exclusion>
  134. </exclusions>
  135. </dependency>
  136. <!-- Vaadin 7 components -->
  137. <dependency>
  138. <groupId>${project.groupId}</groupId>
  139. <artifactId>vaadin-compatibility-client-compiled</artifactId>
  140. <version>${project.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>${project.groupId}</groupId>
  144. <artifactId>vaadin-compatibility-server</artifactId>
  145. <version>${project.version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>${project.groupId}</groupId>
  149. <artifactId>vaadin-compatibility-themes</artifactId>
  150. <version>${project.version}</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>${project.groupId}</groupId>
  154. <artifactId>vaadin-compatibility-client</artifactId>
  155. <version>${project.version}</version>
  156. </dependency>
  157. <!-- For compiling TestingWidgetSet -->
  158. <dependency>
  159. <groupId>${project.groupId}</groupId>
  160. <artifactId>vaadin-client-compiler</artifactId>
  161. <version>${project.version}</version>
  162. <scope>provided</scope>
  163. </dependency>
  164. <!-- Servlet API -->
  165. <dependency>
  166. <!-- Jetty requires 3.1.0 -->
  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>${project.groupId}</groupId>
  174. <artifactId>vaadin-uitest-common</artifactId>
  175. <version>${project.version}</version>
  176. <scope>test</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>com.jcraft</groupId>
  180. <artifactId>jsch</artifactId>
  181. </dependency>
  182. <dependency>
  183. <groupId>commons-codec</groupId>
  184. <artifactId>commons-codec</artifactId>
  185. </dependency>
  186. <dependency>
  187. <groupId>commons-io</groupId>
  188. <artifactId>commons-io</artifactId>
  189. </dependency>
  190. <!-- Mainly for SQLContainer tests -->
  191. <dependency>
  192. <groupId>org.hsqldb</groupId>
  193. <artifactId>hsqldb</artifactId>
  194. </dependency>
  195. <!-- This should be removed once tests have been updated to use lang3 -->
  196. <dependency>
  197. <groupId>commons-lang</groupId>
  198. <artifactId>commons-lang</artifactId>
  199. </dependency>
  200. <dependency>
  201. <groupId>com.vaadin</groupId>
  202. <artifactId>vaadin-sass-compiler</artifactId>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.eclipse.jgit</groupId>
  206. <artifactId>org.eclipse.jgit</artifactId>
  207. <exclusions>
  208. <exclusion>
  209. <groupId>org.apache.httpcomponents</groupId>
  210. <artifactId>httpclient</artifactId>
  211. </exclusion>
  212. </exclusions>
  213. </dependency>
  214. </dependencies>
  215. <build>
  216. <resources>
  217. <resource>
  218. <directory>src/main/themes</directory>
  219. <excludes>
  220. <exclude>**/*.scss</exclude>
  221. </excludes>
  222. </resource>
  223. <resource>
  224. <directory>src/main/resources</directory>
  225. </resource>
  226. </resources>
  227. <plugins>
  228. <plugin>
  229. <groupId>com.vaadin</groupId>
  230. <artifactId>vaadin-maven-plugin</artifactId>
  231. <configuration>
  232. <warSourceDirectory>src/main/themes</warSourceDirectory>
  233. <webappDirectory>${project.build.outputDirectory}/VAADIN/widgetsets</webappDirectory>
  234. <persistentunitcachedir>${project.build.directory}/gwt-unitCache</persistentunitcachedir>
  235. <checkAssertions>true</checkAssertions>
  236. <extraJvmArgs>-Xmx1G</extraJvmArgs>
  237. </configuration>
  238. <executions>
  239. <execution>
  240. <goals>
  241. <goal>compile</goal>
  242. <goal>compile-theme</goal>
  243. </goals>
  244. </execution>
  245. </executions>
  246. </plugin>
  247. <plugin>
  248. <groupId>com.github.klieber</groupId>
  249. <artifactId>phantomjs-maven-plugin</artifactId>
  250. <configuration>
  251. <skip>${skip.uitest.failsafe}</skip>
  252. </configuration>
  253. <executions>
  254. <execution>
  255. <goals>
  256. <goal>install</goal>
  257. </goals>
  258. <configuration>
  259. <version>${phantomjs.version}</version>
  260. </configuration>
  261. </execution>
  262. </executions>
  263. </plugin>
  264. <plugin>
  265. <groupId>org.eclipse.jetty</groupId>
  266. <artifactId>jetty-maven-plugin</artifactId>
  267. <version>${jetty.version}</version>
  268. <configuration>
  269. <httpConnector>
  270. <port>8888</port>
  271. </httpConnector>
  272. <scanIntervalSeconds>-1</scanIntervalSeconds>
  273. <stopPort>8889</stopPort>
  274. <stopWait>5</stopWait>
  275. <stopKey>foo</stopKey>
  276. </configuration>
  277. </plugin>
  278. <plugin>
  279. <artifactId>maven-install-plugin</artifactId>
  280. <configuration>
  281. <skip>true</skip>
  282. </configuration>
  283. </plugin>
  284. <plugin>
  285. <artifactId>maven-deploy-plugin</artifactId>
  286. <configuration>
  287. <skip>${skip.uitest.deployment}</skip>
  288. </configuration>
  289. </plugin>
  290. <plugin>
  291. <artifactId>maven-failsafe-plugin</artifactId>
  292. <configuration>
  293. <skip>${skip.uitest.failsafe}</skip>
  294. <systemPropertyVariables>
  295. <!-- Static path for screenshots pointing to submodule -->
  296. <com.vaadin.testbench.screenshot.directory>${project.parent.basedir}/tests/screenshots</com.vaadin.testbench.screenshot.directory>
  297. <!-- Optional properties for the test build -->
  298. <vaadin.testbench.developer.license>${vaadin.testbench.developer.license}</vaadin.testbench.developer.license>
  299. <com.vaadin.testbench.max.retries>${com.vaadin.testbench.max.retries}</com.vaadin.testbench.max.retries>
  300. <browsers.include>${browsers.include}</browsers.include>
  301. <browsers.exclude>${browsers.exclude}</browsers.exclude>
  302. <categories.include>${categories.include}</categories.include>
  303. <categories.exclude>${categories.exclude}</categories.exclude>
  304. <useLocalWebDriver>${useLocalWebDriver}</useLocalWebDriver>
  305. <!-- PhantomJS binary downloaded by phantomjs-maven-plugin -->
  306. <!-- <phantomjs.binary.path>${phantomjs.binary}</phantomjs.binary.path> -->
  307. </systemPropertyVariables>
  308. <includes>
  309. <include>**/AllTB3Tests.java</include>
  310. </includes>
  311. </configuration>
  312. <executions>
  313. <execution>
  314. <goals>
  315. <goal>integration-test</goal>
  316. <goal>verify</goal>
  317. </goals>
  318. </execution>
  319. </executions>
  320. </plugin>
  321. <plugin>
  322. <groupId>org.codehaus.mojo</groupId>
  323. <artifactId>animal-sniffer-maven-plugin</artifactId>
  324. <configuration>
  325. <skip>true</skip>
  326. </configuration>
  327. </plugin>
  328. <plugin>
  329. <artifactId>maven-surefire-plugin</artifactId>
  330. <configuration>
  331. <skip>true</skip>
  332. </configuration>
  333. </plugin>
  334. </plugins>
  335. <pluginManagement>
  336. <plugins>
  337. <plugin>
  338. <groupId>org.sonatype.plugins</groupId>
  339. <artifactId>nexus-staging-maven-plugin</artifactId>
  340. <configuration>
  341. <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
  342. </configuration>
  343. </plugin>
  344. <plugin>
  345. <artifactId>maven-javadoc-plugin</artifactId>
  346. <configuration>
  347. <skip>true</skip>
  348. </configuration>
  349. </plugin>
  350. </plugins>
  351. </pluginManagement>
  352. </build>
  353. <profiles>
  354. <profile>
  355. <!-- Profile used to deploy the uitest war for testing -->
  356. <id>dev-build</id>
  357. <activation>
  358. <activeByDefault>false</activeByDefault>
  359. </activation>
  360. <properties>
  361. <skip.uitest.deployment>false</skip.uitest.deployment>
  362. </properties>
  363. </profile>
  364. <profile>
  365. <id>test</id>
  366. <activation>
  367. <activeByDefault>false</activeByDefault>
  368. </activation>
  369. <properties>
  370. <skip.uitest.failsafe>false</skip.uitest.failsafe>
  371. </properties>
  372. <build>
  373. <pluginManagement>
  374. <plugins>
  375. <plugin>
  376. <groupId>org.eclipse.jetty</groupId>
  377. <artifactId>jetty-maven-plugin</artifactId>
  378. <executions>
  379. <!-- start and stop jetty (running our app)
  380. when running integration tests -->
  381. <execution>
  382. <id>start-jetty</id>
  383. <phase>pre-integration-test</phase>
  384. <goals>
  385. <goal>start</goal>
  386. </goals>
  387. </execution>
  388. <execution>
  389. <id>stop-jetty</id>
  390. <phase>post-integration-test</phase>
  391. <goals>
  392. <goal>stop</goal>
  393. </goals>
  394. </execution>
  395. </executions>
  396. </plugin>
  397. </plugins>
  398. </pluginManagement>
  399. </build>
  400. </profile>
  401. <profile>
  402. <id>measurements</id>
  403. <activation>
  404. <activeByDefault>false</activeByDefault>
  405. </activation>
  406. <properties>
  407. <skipTests>false</skipTests>
  408. </properties>
  409. <build>
  410. <plugins>
  411. <plugin>
  412. <artifactId>maven-failsafe-plugin</artifactId>
  413. <configuration>
  414. <groups>com.vaadin.testcategory.MeasurementTest</groups>
  415. </configuration>
  416. </plugin>
  417. </plugins>
  418. </build>
  419. </profile>
  420. </profiles>
  421. </project>