pom.xml 7.4 KB

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