pom.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.6.3</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.szls</groupId>
  12. <artifactId>nstths</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>nstths</name>
  15. <description>nstths</description>
  16. <properties>
  17. <java.version>11</java.version>
  18. <repackage.classifier/>
  19. <spring-native.version>0.11.2</spring-native.version>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-data-jdbc</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-data-jpa</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-web</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.mybatis.spring.boot</groupId>
  40. <artifactId>mybatis-spring-boot-starter</artifactId>
  41. <version>2.2.2</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.experimental</groupId>
  45. <artifactId>spring-native</artifactId>
  46. <version>${spring-native.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-devtools</artifactId>
  51. <scope>runtime</scope>
  52. <optional>true</optional>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.h2database</groupId>
  56. <artifactId>h2</artifactId>
  57. <scope>runtime</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>mysql</groupId>
  61. <artifactId>mysql-connector-java</artifactId>
  62. <scope>runtime</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.projectlombok</groupId>
  66. <artifactId>lombok</artifactId>
  67. <optional>true</optional>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-test</artifactId>
  72. <scope>test</scope>
  73. </dependency>
  74. </dependencies>
  75. <build>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-maven-plugin</artifactId>
  80. <configuration>
  81. <excludes>
  82. <exclude>
  83. <groupId>org.projectlombok</groupId>
  84. <artifactId>lombok</artifactId>
  85. </exclude>
  86. </excludes>
  87. <classifier>${repackage.classifier}</classifier>
  88. <image>
  89. <builder>paketobuildpacks/builder:tiny</builder>
  90. <env>
  91. <BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
  92. </env>
  93. </image>
  94. </configuration>
  95. </plugin>
  96. <plugin>
  97. <groupId>org.springframework.experimental</groupId>
  98. <artifactId>spring-aot-maven-plugin</artifactId>
  99. <version>${spring-native.version}</version>
  100. <executions>
  101. <execution>
  102. <id>test-generate</id>
  103. <goals>
  104. <goal>test-generate</goal>
  105. </goals>
  106. </execution>
  107. <execution>
  108. <id>generate</id>
  109. <goals>
  110. <goal>generate</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.hibernate.orm.tooling</groupId>
  117. <artifactId>hibernate-enhance-maven-plugin</artifactId>
  118. <version>${hibernate.version}</version>
  119. <executions>
  120. <execution>
  121. <id>enhance</id>
  122. <goals>
  123. <goal>enhance</goal>
  124. </goals>
  125. <configuration>
  126. <failOnError>true</failOnError>
  127. <enableLazyInitialization>true</enableLazyInitialization>
  128. <enableDirtyTracking>true</enableDirtyTracking>
  129. <enableAssociationManagement>true</enableAssociationManagement>
  130. <enableExtendedEnhancement>false</enableExtendedEnhancement>
  131. </configuration>
  132. </execution>
  133. </executions>
  134. </plugin>
  135. </plugins>
  136. </build>
  137. <repositories>
  138. <repository>
  139. <id>spring-releases</id>
  140. <name>Spring Releases</name>
  141. <url>https://repo.spring.io/release</url>
  142. <snapshots>
  143. <enabled>false</enabled>
  144. </snapshots>
  145. </repository>
  146. </repositories>
  147. <pluginRepositories>
  148. <pluginRepository>
  149. <id>spring-releases</id>
  150. <name>Spring Releases</name>
  151. <url>https://repo.spring.io/release</url>
  152. <snapshots>
  153. <enabled>false</enabled>
  154. </snapshots>
  155. </pluginRepository>
  156. </pluginRepositories>
  157. <profiles>
  158. <profile>
  159. <id>native</id>
  160. <properties>
  161. <repackage.classifier>exec</repackage.classifier>
  162. <native-buildtools.version>0.9.9</native-buildtools.version>
  163. </properties>
  164. <dependencies>
  165. <dependency>
  166. <groupId>org.junit.platform</groupId>
  167. <artifactId>junit-platform-launcher</artifactId>
  168. <scope>test</scope>
  169. </dependency>
  170. </dependencies>
  171. <build>
  172. <plugins>
  173. <plugin>
  174. <groupId>org.graalvm.buildtools</groupId>
  175. <artifactId>native-maven-plugin</artifactId>
  176. <version>${native-buildtools.version}</version>
  177. <extensions>true</extensions>
  178. <executions>
  179. <execution>
  180. <id>test-native</id>
  181. <phase>test</phase>
  182. <goals>
  183. <goal>test</goal>
  184. </goals>
  185. </execution>
  186. <execution>
  187. <id>build-native</id>
  188. <phase>package</phase>
  189. <goals>
  190. <goal>build</goal>
  191. </goals>
  192. </execution>
  193. </executions>
  194. </plugin>
  195. </plugins>
  196. </build>
  197. </profile>
  198. </profiles>
  199. </project>