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

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