pom.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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>mrqcman-service</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>mrqcman-service</name>
  11. <description>mrqcman 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. <version>${mybatis-spring-boot.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.springframework.cloud</groupId>
  135. <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
  136. </dependency>
  137. <!-- 文件上传相关架包 -->
  138. <dependency>
  139. <groupId>commons-fileupload</groupId>
  140. <artifactId>commons-fileupload</artifactId>
  141. <version>1.3.1</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>commons-io</groupId>
  145. <artifactId>commons-io</artifactId>
  146. <version>2.4</version>
  147. </dependency>
  148. <!--POI-->
  149. <dependency>
  150. <groupId>org.apache.poi</groupId>
  151. <artifactId>poi</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.apache.poi</groupId>
  155. <artifactId>poi-ooxml</artifactId>
  156. </dependency>
  157. <dependency>
  158. <groupId>com.squareup.okhttp3</groupId>
  159. <artifactId>okhttp</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.springframework</groupId>
  163. <artifactId>spring-test</artifactId>
  164. <version>5.1.9.RELEASE</version>
  165. <scope>compile</scope>
  166. </dependency>
  167. </dependencies>
  168. <build>
  169. <plugins>
  170. <plugin>
  171. <groupId>org.springframework.boot</groupId>
  172. <artifactId>spring-boot-maven-plugin</artifactId>
  173. </plugin>
  174. <!-- 添加docker-maven插件 -->
  175. <plugin>
  176. <groupId>com.spotify</groupId>
  177. <artifactId>docker-maven-plugin</artifactId>
  178. <configuration>
  179. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  180. <forceTags>true</forceTags>
  181. <!--镜像的FROM,使用压缩的小镜像-->
  182. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  183. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  184. <resources>
  185. <resource>
  186. <targetPath>/</targetPath>
  187. <directory>${project.build.directory}</directory>
  188. <include>${project.build.finalName}.jar</include>
  189. </resource>
  190. </resources>
  191. <serverId>docker-registry</serverId>
  192. <registryUrl>${registryUrl}</registryUrl>
  193. </configuration>
  194. </plugin>
  195. </plugins>
  196. </build>
  197. </project>