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

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