敏捷工具
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.

232 lines
6.8 KiB

2 years ago
  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. <packaging>jar</packaging>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.3.1.RELEASE</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>com.whn</groupId>
  13. <artifactId>hellospring</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>hellospring</name>
  16. <description>Demo project for Spring Boot</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <kotlin.version>1.3.50</kotlin.version>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>redis.clients</groupId>
  24. <artifactId>jedis</artifactId>
  25. <version>2.9.0</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-web</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-test</artifactId>
  34. <scope>test</scope>
  35. <exclusions>
  36. <exclusion>
  37. <groupId>org.junit.vintage</groupId>
  38. <artifactId>junit-vintage-engine</artifactId>
  39. </exclusion>
  40. </exclusions>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-web</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-jdbc</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.h2database</groupId>
  52. <artifactId>h2</artifactId>
  53. <scope>runtime</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-data-jpa</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.joda</groupId>
  61. <artifactId>joda-money</artifactId>
  62. <version>LATEST</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.jadira.usertype</groupId>
  66. <artifactId>usertype.core</artifactId>
  67. <version>6.0.1.GA</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.projectlombok</groupId>
  71. <artifactId>lombok</artifactId>
  72. <optional>true</optional>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.mybatis.spring.boot</groupId>
  76. <artifactId>mybatis-spring-boot-starter</artifactId>
  77. <version>1.3.2</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.mybatis.generator</groupId>
  81. <artifactId>mybatis-generator-core</artifactId>
  82. <version>1.3.7</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.github.pagehelper</groupId>
  86. <artifactId>pagehelper-spring-boot-starter</artifactId>
  87. <version>1.2.13</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>mysql</groupId>
  91. <artifactId>mysql-connector-java</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.googlecode.log4jdbc</groupId>
  95. <artifactId>log4jdbc</artifactId>
  96. <version>RELEASE</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.spring4all</groupId>
  100. <artifactId>swagger-spring-boot-starter</artifactId>
  101. <version>1.9.0.RELEASE</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.hibernate.javax.persistence</groupId>
  105. <artifactId>hibernate-jpa-2.1-api</artifactId>
  106. <version>1.0.0.Draft-16</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-validation</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.jetbrains.kotlin</groupId>
  114. <artifactId>kotlin-stdlib-jdk8</artifactId>
  115. <version>${kotlin.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.jetbrains.kotlin</groupId>
  119. <artifactId>kotlin-test</artifactId>
  120. <version>${kotlin.version}</version>
  121. <scope>test</scope>
  122. </dependency>
  123. </dependencies>
  124. <build>
  125. <finalName>test</finalName>
  126. <plugins>
  127. <plugin>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-maven-plugin</artifactId>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.jetbrains.kotlin</groupId>
  133. <artifactId>kotlin-maven-plugin</artifactId>
  134. <version>${kotlin.version}</version>
  135. <executions>
  136. <execution>
  137. <id>compile</id>
  138. <phase>compile</phase>
  139. <goals>
  140. <goal>compile</goal>
  141. </goals>
  142. </execution>
  143. <execution>
  144. <id>test-compile</id>
  145. <phase>test-compile</phase>
  146. <goals>
  147. <goal>test-compile</goal>
  148. </goals>
  149. </execution>
  150. </executions>
  151. <configuration>
  152. <jvmTarget>1.8</jvmTarget>
  153. </configuration>
  154. </plugin>
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-compiler-plugin</artifactId>
  158. <executions>
  159. <execution>
  160. <id>compile</id>
  161. <phase>compile</phase>
  162. <goals>
  163. <goal>compile</goal>
  164. </goals>
  165. </execution>
  166. <execution>
  167. <id>testCompile</id>
  168. <phase>test-compile</phase>
  169. <goals>
  170. <goal>testCompile</goal>
  171. </goals>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. <plugin>
  176. <groupId>com.spotify</groupId>
  177. <artifactId>docker-maven-plugin</artifactId>
  178. <version>1.2.2</version>
  179. <executions>
  180. <execution>
  181. <id>build-image</id>
  182. <phase>package</phase>
  183. <goals>
  184. <goal>build</goal>
  185. </goals>
  186. </execution>
  187. </executions>
  188. <configuration>
  189. <imageName>testc</imageName>
  190. <forceTags>true</forceTags><!-- 每次新的构建上覆盖镜像tags -->
  191. <imageTags>
  192. <imageTag>111</imageTag> <!-- -DpushImageTags没有-DdockerImageTags=xxx时,默认推送这个版本 -->
  193. </imageTags>
  194. <baseImage>openjdk:8-jdk-alpine</baseImage>
  195. <entryPoint>["sh", "-c", "java $JAVA_OPTIONS -jar /${project.build.finalName}.jar"]</entryPoint>
  196. <resources>
  197. <resource>
  198. <targetPath>/</targetPath>
  199. <directory>${project.build.directory}</directory>
  200. <include>${project.build.finalName}.jar</include>
  201. </resource>
  202. </resources>
  203. </configuration>
  204. </plugin>
  205. </plugins>
  206. </build>
  207. </project>