pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.diagbot</groupId>
  7. <artifactId>tran-service</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>tran-service</name>
  11. <description>Tran Service for Spring Boot</description>
  12. <parent>
  13. <groupId>com.diagbot</groupId>
  14. <artifactId>diagbotcloud</artifactId>
  15. <version>0.0.1-SNAPSHOT</version>
  16. </parent>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.diagbot</groupId>
  20. <artifactId>common</artifactId>
  21. <version>0.0.1-SNAPSHOT</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.cloud</groupId>
  25. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  26. </dependency>
  27. <!-- 配置-->
  28. <dependency>
  29. <groupId>org.springframework.cloud</groupId>
  30. <artifactId>spring-cloud-starter-config</artifactId>
  31. </dependency>
  32. <!-- 开启web-->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-web</artifactId>
  36. <exclusions>
  37. <exclusion>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-tomcat</artifactId>
  40. </exclusion>
  41. </exclusions>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-undertow</artifactId>
  46. </dependency>
  47. <!-- 开启feign-->
  48. <dependency>
  49. <groupId>org.springframework.cloud</groupId>
  50. <artifactId>spring-cloud-starter-openfeign</artifactId>
  51. </dependency>
  52. <!-- dashboard -->
  53. <!-- actuator-->
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-actuator</artifactId>
  57. </dependency>
  58. <!--hystrix-dashboard-->
  59. <dependency>
  60. <groupId>org.springframework.cloud</groupId>
  61. <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
  62. </dependency>
  63. <!--hystrix -->
  64. <dependency>
  65. <groupId>org.springframework.cloud</groupId>
  66. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  67. </dependency>
  68. <!-- zipkin-->
  69. <!--<dependency>-->
  70. <!--<groupId>org.springframework.cloud</groupId>-->
  71. <!--<artifactId>spring-cloud-starter-zipkin</artifactId>-->
  72. <!--</dependency>-->
  73. <!--swagger-->
  74. <dependency>
  75. <groupId>io.springfox</groupId>
  76. <artifactId>springfox-swagger2</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>io.springfox</groupId>
  80. <artifactId>springfox-swagger-ui</artifactId>
  81. </dependency>
  82. <!--database-->
  83. <dependency>
  84. <groupId>mysql</groupId>
  85. <artifactId>mysql-connector-java</artifactId>
  86. <scope>runtime</scope>
  87. </dependency>
  88. <!--security-->
  89. <dependency>
  90. <groupId>org.springframework.cloud</groupId>
  91. <artifactId>spring-cloud-starter-oauth2</artifactId>
  92. </dependency>
  93. <!-- mq -->
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-amqp</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.projectlombok</groupId>
  100. <artifactId>lombok</artifactId>
  101. <optional>true</optional>
  102. </dependency>
  103. <dependency>
  104. <groupId>net.logstash.logback</groupId>
  105. <artifactId>logstash-logback-encoder</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.springframework.cloud</groupId>
  109. <artifactId>spring-cloud-starter-bus-amqp</artifactId>
  110. </dependency>
  111. <!-- mybatis-plus begin -->
  112. <dependency>
  113. <groupId>com.baomidou</groupId>
  114. <artifactId>mybatis-plus-boot-starter</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.baomidou</groupId>
  118. <artifactId>mybatis-plus-generator</artifactId>
  119. </dependency>
  120. <!-- mybatis-plus end -->
  121. <!-- 阿里巴巴druid数据库连接池 -->
  122. <dependency>
  123. <groupId>com.alibaba</groupId>
  124. <artifactId>druid-spring-boot-starter</artifactId>
  125. </dependency>
  126. <!-- springboot整合mybatis(核心就这一个) -->
  127. <!-- 注意顺序,这个一定要放在最下面 -->
  128. <dependency>
  129. <groupId>org.mybatis.spring.boot</groupId>
  130. <artifactId>mybatis-spring-boot-starter</artifactId>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.springframework.cloud</groupId>
  134. <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
  135. </dependency>
  136. <!--&lt;!&ndash; CXF webservice &ndash;&gt;-->
  137. <!--<dependency>-->
  138. <!--<groupId>org.apache.cxf</groupId>-->
  139. <!--<artifactId>cxf-spring-boot-starter-jaxws</artifactId>-->
  140. <!--<version>3.3.2</version>-->
  141. <!--</dependency>-->
  142. <!--&lt;!&ndash; CXF webservice &ndash;&gt;-->
  143. <!--redis设置-->
  144. <dependency>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-starter-data-redis</artifactId>
  147. </dependency>
  148. <!-- 必须加上,jedis依赖此 -->
  149. <dependency>
  150. <groupId>org.apache.commons</groupId>
  151. <artifactId>commons-pool2</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>io.github.lvyahui8</groupId>
  155. <artifactId>spring-boot-data-aggregator-starter</artifactId>
  156. </dependency>
  157. </dependencies>
  158. <build>
  159. <plugins>
  160. <plugin>
  161. <groupId>org.springframework.boot</groupId>
  162. <artifactId>spring-boot-maven-plugin</artifactId>
  163. </plugin>
  164. <!-- 添加docker-maven插件 -->
  165. <plugin>
  166. <groupId>com.spotify</groupId>
  167. <artifactId>docker-maven-plugin</artifactId>
  168. <configuration>
  169. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  170. <forceTags>true</forceTags>
  171. <!--镜像的FROM,使用压缩的小镜像-->
  172. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  173. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  174. <resources>
  175. <resource>
  176. <targetPath>/</targetPath>
  177. <directory>${project.build.directory}</directory>
  178. <include>${project.build.finalName}.jar</include>
  179. </resource>
  180. </resources>
  181. <serverId>docker-registry</serverId>
  182. <registryUrl>${registryUrl}</registryUrl>
  183. </configuration>
  184. </plugin>
  185. </plugins>
  186. </build>
  187. </project>