pom.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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>log-service</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>log-service</name>
  11. <description>Log 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. <!--<dependency>-->
  89. <!--<groupId>org.springframework.boot</groupId>-->
  90. <!--<artifactId>spring-boot-starter-data-jpa</artifactId>-->
  91. <!--</dependency>-->
  92. <!--security-->
  93. <dependency>
  94. <groupId>org.springframework.cloud</groupId>
  95. <artifactId>spring-cloud-starter-oauth2</artifactId>
  96. </dependency>
  97. <!-- mq -->
  98. <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-amqp</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.projectlombok</groupId>
  104. <artifactId>lombok</artifactId>
  105. <optional>true</optional>
  106. </dependency>
  107. <dependency>
  108. <groupId>net.logstash.logback</groupId>
  109. <artifactId>logstash-logback-encoder</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.springframework.cloud</groupId>
  113. <artifactId>spring-cloud-starter-bus-amqp</artifactId>
  114. </dependency>
  115. <!-- mybatis-plus begin -->
  116. <dependency>
  117. <groupId>com.baomidou</groupId>
  118. <artifactId>mybatis-plus-boot-starter</artifactId>
  119. <version>${mybatis-plus-boot-starter.version}</version>
  120. </dependency>
  121. <!-- mybatis-plus end -->
  122. <!-- 阿里巴巴druid数据库连接池 -->
  123. <dependency>
  124. <groupId>com.alibaba</groupId>
  125. <artifactId>druid-spring-boot-starter</artifactId>
  126. </dependency>
  127. <!-- springboot整合mybatis(核心就这一个) -->
  128. <!-- 注意顺序,这个一定要放在最下面 -->
  129. <dependency>
  130. <groupId>org.mybatis.spring.boot</groupId>
  131. <artifactId>mybatis-spring-boot-starter</artifactId>
  132. <version>${mybatis-spring-boot.version}</version>
  133. </dependency>
  134. </dependencies>
  135. <build>
  136. <plugins>
  137. <plugin>
  138. <groupId>org.springframework.boot</groupId>
  139. <artifactId>spring-boot-maven-plugin</artifactId>
  140. </plugin>
  141. <!-- 添加docker-maven插件 -->
  142. <plugin>
  143. <groupId>com.spotify</groupId>
  144. <artifactId>docker-maven-plugin</artifactId>
  145. <configuration>
  146. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  147. <forceTags>true</forceTags>
  148. <!--镜像的FROM,使用压缩的小镜像-->
  149. <baseImage>frolvlad/alpine-oraclejdk8:slim</baseImage>
  150. <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
  151. <resources>
  152. <resource>
  153. <targetPath>/</targetPath>
  154. <directory>${project.build.directory}</directory>
  155. <include>${project.build.finalName}.jar</include>
  156. </resource>
  157. </resources>
  158. <serverId>docker-registry</serverId>
  159. <registryUrl>http://192.168.2.236:5000/repository/diagbotcloud/</registryUrl>
  160. </configuration>
  161. </plugin>
  162. </plugins>
  163. </build>
  164. </project>