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

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