pom.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. 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">
  4. <modelVersion>4.0.0</modelVersion>
  5. <!-- Project from https://start.vaadin.com/ -->
  6. <groupId>rocks.cybermuell.spotting</groupId>
  7. <artifactId>spottingweb</artifactId>
  8. <name>spottingweb</name>
  9. <version>1.0-SNAPSHOT</version>
  10. <packaging>jar</packaging>
  11. <properties>
  12. <java.version>17</java.version>
  13. <vaadin.version>24.1.3</vaadin.version>
  14. <selenium.version>4.10.0</selenium.version>
  15. <maven.compiler.source>17</maven.compiler.source>
  16. <maven.compiler.target>17</maven.compiler.target>
  17. </properties>
  18. <parent>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-parent</artifactId>
  21. <version>3.1.0</version>
  22. </parent>
  23. <repositories>
  24. <repository>
  25. <id>Vaadin Directory</id>
  26. <url>https://maven.vaadin.com/vaadin-addons</url>
  27. <snapshots>
  28. <enabled>false</enabled>
  29. </snapshots>
  30. </repository>
  31. </repositories>
  32. <dependencyManagement>
  33. <dependencies>
  34. <dependency>
  35. <groupId>com.vaadin</groupId>
  36. <artifactId>vaadin-bom</artifactId>
  37. <version>${vaadin.version}</version>
  38. <type>pom</type>
  39. <scope>import</scope>
  40. </dependency>
  41. </dependencies>
  42. </dependencyManagement>
  43. <dependencies>
  44. <dependency>
  45. <groupId>com.vaadin</groupId>
  46. <!-- Replace artifactId with vaadin-core to use only free components -->
  47. <artifactId>vaadin</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.vaadin</groupId>
  51. <artifactId>vaadin-spring-boot-starter</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.parttio</groupId>
  55. <artifactId>line-awesome</artifactId>
  56. <version>1.1.0</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.h2database</groupId>
  60. <artifactId>h2</artifactId>
  61. <scope>runtime</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-data-jpa</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-validation</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-devtools</artifactId>
  74. <optional>true</optional>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-test</artifactId>
  79. <scope>test</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.vaadin</groupId>
  83. <artifactId>vaadin-testbench-junit5</artifactId>
  84. <scope>test</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.google.code.gson</groupId>
  88. <artifactId>gson</artifactId>
  89. <version>2.10.1</version>
  90. </dependency>
  91. </dependencies>
  92. <build>
  93. <defaultGoal>spring-boot:run</defaultGoal>
  94. <plugins>
  95. <plugin>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-maven-plugin</artifactId>
  98. <configuration>
  99. <jvmArguments>-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5801</jvmArguments>
  100. <wait>500</wait>
  101. <maxAttempts>240</maxAttempts>
  102. </configuration>
  103. </plugin>
  104. <plugin>
  105. <groupId>com.vaadin</groupId>
  106. <artifactId>vaadin-maven-plugin</artifactId>
  107. <version>${vaadin.version}</version>
  108. <executions>
  109. <execution>
  110. <goals>
  111. <goal>prepare-frontend</goal>
  112. </goals>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. </plugins>
  117. </build>
  118. <profiles>
  119. <profile>
  120. <!-- Production mode is activated using -Pproduction -->
  121. <id>production</id>
  122. <dependencies>
  123. <!-- Exclude development dependencies from production -->
  124. <dependency>
  125. <groupId>com.vaadin</groupId>
  126. <artifactId>vaadin-core</artifactId>
  127. <exclusions>
  128. <exclusion>
  129. <groupId>com.vaadin</groupId>
  130. <artifactId>vaadin-dev</artifactId>
  131. </exclusion>
  132. </exclusions>
  133. </dependency>
  134. </dependencies>
  135. <build>
  136. <plugins>
  137. <plugin>
  138. <groupId>com.vaadin</groupId>
  139. <artifactId>vaadin-maven-plugin</artifactId>
  140. <version>${vaadin.version}</version>
  141. <executions>
  142. <execution>
  143. <goals>
  144. <goal>build-frontend</goal>
  145. </goals>
  146. <phase>compile</phase>
  147. </execution>
  148. </executions>
  149. </plugin>
  150. </plugins>
  151. </build>
  152. </profile>
  153. <profile>
  154. <id>it</id>
  155. <build>
  156. <plugins>
  157. <plugin>
  158. <groupId>org.springframework.boot</groupId>
  159. <artifactId>spring-boot-maven-plugin</artifactId>
  160. <executions>
  161. <execution>
  162. <id>start-spring-boot</id>
  163. <phase>pre-integration-test</phase>
  164. <goals>
  165. <goal>start</goal>
  166. </goals>
  167. </execution>
  168. <execution>
  169. <id>stop-spring-boot</id>
  170. <phase>post-integration-test</phase>
  171. <goals>
  172. <goal>stop</goal>
  173. </goals>
  174. </execution>
  175. </executions>
  176. </plugin>
  177. <!-- Runs the integration tests (*IT) after the server is started -->
  178. <plugin>
  179. <groupId>org.apache.maven.plugins</groupId>
  180. <artifactId>maven-failsafe-plugin</artifactId>
  181. <executions>
  182. <execution>
  183. <goals>
  184. <goal>integration-test</goal>
  185. <goal>verify</goal>
  186. </goals>
  187. </execution>
  188. </executions>
  189. <configuration>
  190. <trimStackTrace>false</trimStackTrace>
  191. <enableAssertions>true</enableAssertions>
  192. </configuration>
  193. </plugin>
  194. </plugins>
  195. </build>
  196. </profile>
  197. </profiles>
  198. </project>