pom.xml 7.0 KB

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