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

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