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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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. <groupId>com.vaadin</groupId>
  6. <artifactId>vaadin-test</artifactId>
  7. <name>vaadin-test</name>
  8. <version>8.15-SNAPSHOT</version>
  9. <packaging>pom</packaging>
  10. <properties>
  11. <maven.compiler.source>1.8</maven.compiler.source>
  12. <maven.compiler.target>1.8</maven.compiler.target>
  13. <jetty.version>9.4.38.v20210224</jetty.version>
  14. <phantomjs.version>2.1.1</phantomjs.version>
  15. <vaadin.version>${project.version}</vaadin.version>
  16. <vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
  17. <failOnMissingWebXml>false</failOnMissingWebXml>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <spring.boot.version>1.5.9.RELEASE</spring.boot.version>
  21. <selenium.version>3.12.0</selenium.version>
  22. <!-- Don't care about coding style for tests. -->
  23. <sonar.skip>true</sonar.skip>
  24. <!-- Allow installing for local testing purposes. -->
  25. <install.skip>true</install.skip>
  26. </properties>
  27. <repositories>
  28. <repository>
  29. <id>vaadin-addons</id>
  30. <url>https://maven.vaadin.com/vaadin-addons</url>
  31. </repository>
  32. <repository>
  33. <id>vaadin-prereleases</id>
  34. <url>https://maven.vaadin.com/vaadin-prereleases</url>
  35. <snapshots>
  36. <enabled>true</enabled>
  37. </snapshots>
  38. </repository>
  39. </repositories>
  40. <pluginRepositories>
  41. <pluginRepository>
  42. <id>vaadin-prereleases</id>
  43. <url>https://maven.vaadin.com/vaadin-prereleases</url>
  44. <snapshots>
  45. <enabled>true</enabled>
  46. </snapshots>
  47. </pluginRepository>
  48. </pluginRepositories>
  49. <dependencyManagement>
  50. <dependencies>
  51. <dependency>
  52. <groupId>com.vaadin</groupId>
  53. <artifactId>vaadin-bom</artifactId>
  54. <version>${vaadin.version}</version>
  55. <type>pom</type>
  56. <scope>import</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.vaadin</groupId>
  60. <artifactId>vaadin-test-widget-set-testutil</artifactId>
  61. <version>${project.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>junit</groupId>
  65. <artifactId>junit</artifactId>
  66. <version>4.13.1</version>
  67. </dependency>
  68. <!-- Override Selenium version from Spring Boot -->
  69. <dependency>
  70. <groupId>org.seleniumhq.selenium</groupId>
  71. <artifactId>selenium-api</artifactId>
  72. <version>${selenium.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.seleniumhq.selenium</groupId>
  76. <artifactId>selenium-chrome-driver</artifactId>
  77. <version>${selenium.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.seleniumhq.selenium</groupId>
  81. <artifactId>selenium-server</artifactId>
  82. <version>${selenium.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.seleniumhq.selenium</groupId>
  86. <artifactId>selenium-java</artifactId>
  87. <version>${selenium.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.seleniumhq.selenium</groupId>
  91. <artifactId>selenium-remote-driver</artifactId>
  92. <version>${selenium.version}</version>
  93. <exclusions>
  94. <exclusion>
  95. <artifactId>commons-logging</artifactId>
  96. <groupId>commons-logging</groupId>
  97. </exclusion>
  98. </exclusions>
  99. </dependency>
  100. </dependencies>
  101. </dependencyManagement>
  102. <dependencies>
  103. <!-- API DEPENDENCIES -->
  104. <dependency>
  105. <groupId>javax.servlet</groupId>
  106. <artifactId>javax.servlet-api</artifactId>
  107. <version>3.0.1</version>
  108. <scope>provided</scope>
  109. </dependency>
  110. <!-- Project modules -->
  111. <dependency>
  112. <groupId>com.vaadin</groupId>
  113. <artifactId>vaadin-server</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.vaadin</groupId>
  117. <artifactId>vaadin-themes</artifactId>
  118. </dependency>
  119. <!-- Testing -->
  120. <dependency>
  121. <groupId>junit</groupId>
  122. <artifactId>junit</artifactId>
  123. <scope>test</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.vaadin</groupId>
  127. <artifactId>vaadin-testbench-api</artifactId>
  128. <scope>test</scope>
  129. </dependency>
  130. </dependencies>
  131. <modules>
  132. <module>widget-set-testutil</module>
  133. <module>default-widget-set</module>
  134. <module>vaadin7-widget-set</module>
  135. <module>own-widget-set</module>
  136. <module>addon-using-own-widget-set</module>
  137. <module>addon-using-no-defined-widget-set</module>
  138. <module>addon-using-init-param-widget-set</module>
  139. <module>space in directory</module>
  140. <module>vaadinservletconfiguration-widget-set</module>
  141. <module>spring-boot</module>
  142. <module>spring-boot-subcontext</module>
  143. <module>cdi</module>
  144. <!-- Servlet container tests -->
  145. <module>servlet-containers</module>
  146. <module>bean-api-validation</module>
  147. <module>bean-impl-validation</module>
  148. <module>dependency-rewrite-addon</module>
  149. <module>dependency-rewrite</module>
  150. </modules>
  151. <build>
  152. <pluginManagement>
  153. <plugins>
  154. <!--This plugin's configuration is used to store Eclipse
  155. m2e settings only. It has no influence on the Maven build itself. -->
  156. <plugin>
  157. <groupId>org.eclipse.m2e</groupId>
  158. <artifactId>lifecycle-mapping</artifactId>
  159. <version>1.0.0</version>
  160. <configuration>
  161. <lifecycleMappingMetadata>
  162. <pluginExecutions>
  163. <pluginExecution>
  164. <pluginExecutionFilter>
  165. <groupId>
  166. com.github.klieber
  167. </groupId>
  168. <artifactId>
  169. phantomjs-maven-plugin
  170. </artifactId>
  171. <versionRange>
  172. [0.7,)
  173. </versionRange>
  174. <goals>
  175. <goal>install</goal>
  176. </goals>
  177. </pluginExecutionFilter>
  178. <action>
  179. <ignore></ignore>
  180. </action>
  181. </pluginExecution>
  182. </pluginExecutions>
  183. </lifecycleMappingMetadata>
  184. </configuration>
  185. </plugin>
  186. <plugin>
  187. <artifactId>maven-install-plugin</artifactId>
  188. <version>2.5.1</version>
  189. <configuration>
  190. <skip>${install.skip}</skip>
  191. </configuration>
  192. </plugin>
  193. <plugin>
  194. <groupId>com.vaadin</groupId>
  195. <artifactId>vaadin-maven-plugin</artifactId>
  196. <version>${vaadin.plugin.version}</version>
  197. <executions>
  198. <execution>
  199. <goals>
  200. <goal>resources</goal>
  201. <goal>update-widgetset</goal>
  202. <goal>compile</goal>
  203. </goals>
  204. </execution>
  205. </executions>
  206. </plugin>
  207. </plugins>
  208. </pluginManagement>
  209. <plugins>
  210. <plugin>
  211. <groupId>org.eclipse.jetty</groupId>
  212. <artifactId>jetty-maven-plugin</artifactId>
  213. <version>${jetty.version}</version>
  214. <configuration>
  215. <scanIntervalSeconds>-1</scanIntervalSeconds>
  216. <stopPort>8081</stopPort>
  217. <stopWait>5</stopWait>
  218. <stopKey>foo</stopKey>
  219. </configuration>
  220. <executions>
  221. <!-- start and stop jetty (running our app) when running
  222. integration tests -->
  223. <execution>
  224. <id>start-jetty</id>
  225. <phase>pre-integration-test</phase>
  226. <goals>
  227. <goal>start</goal>
  228. </goals>
  229. </execution>
  230. <execution>
  231. <id>stop-jetty</id>
  232. <phase>post-integration-test</phase>
  233. <goals>
  234. <goal>stop</goal>
  235. </goals>
  236. </execution>
  237. </executions>
  238. </plugin>
  239. <plugin>
  240. <groupId>com.github.klieber</groupId>
  241. <artifactId>phantomjs-maven-plugin</artifactId>
  242. <version>0.7</version>
  243. <executions>
  244. <execution>
  245. <goals>
  246. <goal>install</goal>
  247. </goals>
  248. <configuration>
  249. <version>${phantomjs.version}</version>
  250. </configuration>
  251. </execution>
  252. </executions>
  253. </plugin>
  254. <plugin>
  255. <artifactId>maven-surefire-plugin</artifactId>
  256. <version>2.19.1</version>
  257. </plugin>
  258. <plugin>
  259. <artifactId>maven-failsafe-plugin</artifactId>
  260. <version>2.19.1</version>
  261. <executions>
  262. <execution>
  263. <goals>
  264. <goal>integration-test</goal>
  265. <goal>verify</goal>
  266. </goals>
  267. </execution>
  268. </executions>
  269. <configuration>
  270. <systemPropertyVariables>
  271. <phantomjs.binary.path>${phantomjs.binary}</phantomjs.binary.path>
  272. <server-name>${server.name}</server-name>
  273. <com.vaadin.testbench.Parameters.screenshotReferenceDirectory>${reference.directory}</com.vaadin.testbench.Parameters.screenshotReferenceDirectory>
  274. <com.vaadin.testbench.Parameters.screenshotErrorDirectory>target/error-screenshots</com.vaadin.testbench.Parameters.screenshotErrorDirectory>
  275. </systemPropertyVariables>
  276. <!-- Run all the tests, don't stop on first failure -->
  277. <testFailureIgnore>true</testFailureIgnore>
  278. </configuration>
  279. </plugin>
  280. </plugins>
  281. </build>
  282. </project>