Advertisement
Guest User

Vaadin forum thread 17827780

a guest
Sep 10th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.75 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>com.test.vaadin</groupId>
  4. <artifactId>projecttwo</artifactId>
  5. <name>projecttwo</name>
  6. <version>2.0-SNAPSHOT</version>
  7. <packaging>jar</packaging>
  8.  
  9. <properties>
  10. <maven.compiler.source>1.8</maven.compiler.source>
  11. <maven.compiler.target>1.8</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14.  
  15. <vaadin.version>14.0.3</vaadin.version>
  16.  
  17. <drivers.dir>${project.basedir}/drivers</drivers.dir>
  18. <drivers.downloader.phase>pre-integration-test</drivers.downloader.phase>
  19. </properties>
  20.  
  21. <parent>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-parent</artifactId>
  24. <version>2.1.7.RELEASE</version>
  25. </parent>
  26.  
  27. <pluginRepositories>
  28. <pluginRepository>
  29. <id>central</id>
  30. <url>https://repo1.maven.org/maven2/</url>
  31. <snapshots><enabled>false</enabled></snapshots>
  32. </pluginRepository>
  33. </pluginRepositories>
  34.  
  35. <repositories>
  36. <repository>
  37. <id>central</id>
  38. <url>https://repo1.maven.org/maven2/</url>
  39. <snapshots><enabled>false</enabled></snapshots>
  40. </repository>
  41. <!-- Repository used by many Vaadin add-ons -->
  42. <repository>
  43. <id>Vaadin Directory</id>
  44. <url>https://maven.vaadin.com/vaadin-addons</url>
  45. <snapshots><enabled>false</enabled></snapshots>
  46. </repository>
  47. </repositories>
  48.  
  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. </dependencies>
  59. </dependencyManagement>
  60.  
  61. <dependencies>
  62. <dependency>
  63. <groupId>com.vaadin</groupId>
  64. <!-- Replace artifactId with vaadin-core to use only free components -->
  65. <artifactId>vaadin</artifactId>
  66. <exclusions>
  67. <!-- Webjars are only needed when running in Vaadin 13 compatibility mode -->
  68. <exclusion>
  69. <groupId>com.vaadin.webjar</groupId>
  70. <artifactId>*</artifactId>
  71. </exclusion>
  72. <exclusion>
  73. <groupId>org.webjars.bowergithub.insites</groupId>
  74. <artifactId>*</artifactId>
  75. </exclusion>
  76. <exclusion>
  77. <groupId>org.webjars.bowergithub.polymer</groupId>
  78. <artifactId>*</artifactId>
  79. </exclusion>
  80. <exclusion>
  81. <groupId>org.webjars.bowergithub.polymerelements</groupId>
  82. <artifactId>*</artifactId>
  83. </exclusion>
  84. <exclusion>
  85. <groupId>org.webjars.bowergithub.vaadin</groupId>
  86. <artifactId>*</artifactId>
  87. </exclusion>
  88. <exclusion>
  89. <groupId>org.webjars.bowergithub.webcomponents</groupId>
  90. <artifactId>*</artifactId>
  91. </exclusion>
  92. </exclusions>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.vaadin</groupId>
  96. <artifactId>vaadin-spring-boot-starter</artifactId>
  97. <exclusions>
  98. <!-- Excluding so that webjars are not included. -->
  99. <exclusion><groupId>com.vaadin</groupId>
  100. <artifactId>vaadin-core</artifactId></exclusion>
  101. </exclusions>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-devtools</artifactId>
  106. <optional>true</optional>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.vaadin</groupId>
  110. <artifactId>vaadin-testbench</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. </dependencies>
  114.  
  115. <build>
  116. <defaultGoal>spring-boot:run</defaultGoal>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-maven-plugin</artifactId>
  121. </plugin>
  122.  
  123. <!--
  124. Take care of synchronizing java dependencies and imports in
  125. package.json and main.js files.
  126. It also creates webpack.config.js if not exists yet.
  127. -->
  128. <plugin>
  129. <groupId>com.vaadin</groupId>
  130. <artifactId>vaadin-maven-plugin</artifactId>
  131. <version>${vaadin.version}</version>
  132. <executions>
  133. <execution>
  134. <goals>
  135. <goal>prepare-frontend</goal>
  136. </goals>
  137. </execution>
  138. </executions>
  139. </plugin>
  140. </plugins>
  141. </build>
  142.  
  143. <profiles>
  144. <profile>
  145. <!-- Production mode is activated using -Pproduction -->
  146. <id>production</id>
  147. <properties>
  148. <vaadin.productionMode>true</vaadin.productionMode>
  149. </properties>
  150.  
  151. <dependencies>
  152. <dependency>
  153. <groupId>com.vaadin</groupId>
  154. <artifactId>flow-server-production-mode</artifactId>
  155. </dependency>
  156. </dependencies>
  157.  
  158. <build>
  159. <plugins>
  160. <plugin>
  161. <groupId>org.springframework.boot</groupId>
  162. <artifactId>spring-boot-maven-plugin</artifactId>
  163. <configuration>
  164. <jvmArguments>-Dvaadin.productionMode</jvmArguments>
  165. </configuration>
  166. </plugin>
  167. <plugin>
  168. <groupId>com.vaadin</groupId>
  169. <artifactId>vaadin-maven-plugin</artifactId>
  170. <executions>
  171. <execution>
  172. <goals>
  173. <goal>build-frontend</goal>
  174. </goals>
  175. <phase>compile</phase>
  176. </execution>
  177. </executions>
  178. </plugin>
  179. </plugins>
  180. </build>
  181. </profile>
  182.  
  183. <profile>
  184. <id>integration-tests</id>
  185. <build>
  186. <plugins>
  187. <plugin>
  188. <groupId>org.springframework.boot</groupId>
  189. <artifactId>spring-boot-maven-plugin</artifactId>
  190. <executions>
  191. <execution>
  192. <id>start-spring-boot</id>
  193. <phase>pre-integration-test</phase>
  194. <goals>
  195. <goal>start</goal>
  196. </goals>
  197. </execution>
  198. <execution>
  199. <id>stop-spring-boot</id>
  200. <phase>post-integration-test</phase>
  201. <goals>
  202. <goal>stop</goal>
  203. </goals>
  204. </execution>
  205. </executions>
  206. </plugin>
  207.  
  208. <!-- Runs the integration tests (*IT) after the server is started -->
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-failsafe-plugin</artifactId>
  212. <executions>
  213. <execution>
  214. <goals>
  215. <goal>integration-test</goal>
  216. <goal>verify</goal>
  217. </goals>
  218. </execution>
  219. </executions>
  220. <configuration>
  221. <trimStackTrace>false</trimStackTrace>
  222. <enableAssertions>true</enableAssertions>
  223. <systemPropertyVariables>
  224. <!-- Pass location of downloaded webdrivers to the tests -->
  225. <webdriver.chrome.driver>${webdriver.chrome.driver}</webdriver.chrome.driver>
  226. </systemPropertyVariables>
  227. </configuration>
  228. </plugin>
  229.  
  230. <plugin>
  231. <groupId>com.lazerycode.selenium</groupId>
  232. <artifactId>driver-binary-downloader-maven-plugin</artifactId>
  233. <version>1.0.17</version>
  234. <configuration>
  235. <onlyGetDriversForHostOperatingSystem>true
  236. </onlyGetDriversForHostOperatingSystem>
  237. <rootStandaloneServerDirectory>
  238. ${project.basedir}/drivers/driver
  239. </rootStandaloneServerDirectory>
  240. <downloadedZipFileDirectory>
  241. ${project.basedir}/drivers/driver_zips
  242. </downloadedZipFileDirectory>
  243. <customRepositoryMap>
  244. ${project.basedir}/drivers.xml
  245. </customRepositoryMap>
  246. </configuration>
  247. <executions>
  248. <execution>
  249. <!-- use phase "none" to skip download step -->
  250. <phase>${drivers.downloader.phase}</phase>
  251. <goals>
  252. <goal>selenium</goal>
  253. </goals>
  254. </execution>
  255. </executions>
  256. </plugin>
  257. </plugins>
  258. </build>
  259. </profile>
  260.  
  261. </profiles>
  262. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement