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

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