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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  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.2-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>com.jcraft</groupId>
  174. <artifactId>jsch</artifactId>
  175. </dependency>
  176. <dependency>
  177. <groupId>commons-codec</groupId>
  178. <artifactId>commons-codec</artifactId>
  179. </dependency>
  180. <dependency>
  181. <groupId>commons-io</groupId>
  182. <artifactId>commons-io</artifactId>
  183. </dependency>
  184. <!-- Mainly for SQLContainer tests -->
  185. <dependency>
  186. <groupId>org.hsqldb</groupId>
  187. <artifactId>hsqldb</artifactId>
  188. </dependency>
  189. <!-- This should be removed once tests have been updated to use lang3 -->
  190. <dependency>
  191. <groupId>commons-lang</groupId>
  192. <artifactId>commons-lang</artifactId>
  193. </dependency>
  194. <dependency>
  195. <groupId>com.vaadin</groupId>
  196. <artifactId>vaadin-sass-compiler</artifactId>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.eclipse.jgit</groupId>
  200. <artifactId>org.eclipse.jgit</artifactId>
  201. <exclusions>
  202. <exclusion>
  203. <groupId>org.apache.httpcomponents</groupId>
  204. <artifactId>httpclient</artifactId>
  205. </exclusion>
  206. </exclusions>
  207. </dependency>
  208. <dependency>
  209. <groupId>com.vaadin</groupId>
  210. <artifactId>vaadin-testbench-api</artifactId>
  211. <version>${project.version}</version>
  212. <scope>test</scope>
  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. <plugin>
  335. <groupId>org.codehaus.mojo</groupId>
  336. <artifactId>exec-maven-plugin</artifactId>
  337. <version>1.5.0</version>
  338. <executions>
  339. <execution>
  340. <id>run-development-server</id>
  341. <goals>
  342. <goal>exec</goal>
  343. </goals>
  344. <configuration>
  345. <executable>java</executable>
  346. <arguments>
  347. <argument>-ea</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. <execution>
  356. <id>debug-development-server</id>
  357. <goals>
  358. <goal>exec</goal>
  359. </goals>
  360. <configuration>
  361. <executable>java</executable>
  362. <arguments>
  363. <argument>-ea</argument>
  364. <argument>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</argument>
  365. <argument>-classpath</argument>
  366. <classpath/>
  367. <argument>com.vaadin.launcher.DevelopmentServerLauncher</argument>
  368. </arguments>
  369. <classpathScope>test</classpathScope>
  370. </configuration>
  371. </execution>
  372. </executions>
  373. </plugin>
  374. </plugins>
  375. <pluginManagement>
  376. <plugins>
  377. <plugin>
  378. <groupId>org.sonatype.plugins</groupId>
  379. <artifactId>nexus-staging-maven-plugin</artifactId>
  380. <configuration>
  381. <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
  382. </configuration>
  383. </plugin>
  384. <plugin>
  385. <artifactId>maven-javadoc-plugin</artifactId>
  386. <configuration>
  387. <skip>true</skip>
  388. </configuration>
  389. </plugin>
  390. </plugins>
  391. </pluginManagement>
  392. </build>
  393. <profiles>
  394. <profile>
  395. <!-- Profile used to deploy the uitest war for testing -->
  396. <id>dev-build</id>
  397. <activation>
  398. <activeByDefault>false</activeByDefault>
  399. </activation>
  400. <properties>
  401. <skip.uitest.deployment>false</skip.uitest.deployment>
  402. </properties>
  403. </profile>
  404. <profile>
  405. <id>test</id>
  406. <activation>
  407. <activeByDefault>false</activeByDefault>
  408. </activation>
  409. <properties>
  410. <skip.uitest.failsafe>false</skip.uitest.failsafe>
  411. </properties>
  412. <build>
  413. <pluginManagement>
  414. <plugins>
  415. <plugin>
  416. <groupId>org.eclipse.jetty</groupId>
  417. <artifactId>jetty-maven-plugin</artifactId>
  418. <executions>
  419. <!-- start and stop jetty (running our app)
  420. when running integration tests -->
  421. <execution>
  422. <id>start-jetty</id>
  423. <phase>pre-integration-test</phase>
  424. <goals>
  425. <goal>start</goal>
  426. </goals>
  427. </execution>
  428. <execution>
  429. <id>stop-jetty</id>
  430. <phase>post-integration-test</phase>
  431. <goals>
  432. <goal>stop</goal>
  433. </goals>
  434. </execution>
  435. </executions>
  436. </plugin>
  437. </plugins>
  438. </pluginManagement>
  439. </build>
  440. </profile>
  441. <profile>
  442. <id>measurements</id>
  443. <activation>
  444. <activeByDefault>false</activeByDefault>
  445. </activation>
  446. <properties>
  447. <skipTests>false</skipTests>
  448. </properties>
  449. <build>
  450. <plugins>
  451. <plugin>
  452. <artifactId>maven-failsafe-plugin</artifactId>
  453. <configuration>
  454. <groups>com.vaadin.testcategory.MeasurementTest</groups>
  455. </configuration>
  456. </plugin>
  457. </plugins>
  458. </build>
  459. </profile>
  460. </profiles>
  461. </project>