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

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