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

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