pom.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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>ltkg-service</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>ltkg-service</name>
  11. <description>朗通知识图谱 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>org.neo4j</groupId>
  85. <artifactId>neo4j-jdbc-driver</artifactId>
  86. <version>3.4.0</version>
  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. <!-- springboot整合mybatis(核心就这一个) -->
  112. <!-- 注意顺序,这个一定要放在最下面 -->
  113. <dependency>
  114. <groupId>org.mybatis.spring.boot</groupId>
  115. <artifactId>mybatis-spring-boot-starter</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.springframework.cloud</groupId>
  119. <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-starter-cache</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.github.ben-manes.caffeine</groupId>
  127. <artifactId>caffeine</artifactId>
  128. </dependency>
  129. <!-- mybatis-plus begin -->
  130. <dependency>
  131. <groupId>com.baomidou</groupId>
  132. <artifactId>mybatis-plus-boot-starter</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.baomidou</groupId>
  136. <artifactId>mybatis-plus-generator</artifactId>
  137. </dependency>
  138. <!-- mybatis-plus end -->
  139. <!--&lt;!&ndash; 阿里巴巴druid数据库连接池 &ndash;&gt;-->
  140. <!--<dependency>-->
  141. <!--<groupId>com.alibaba</groupId>-->
  142. <!--<artifactId>druid-spring-boot-starter</artifactId>-->
  143. <!--</dependency>-->
  144. <!-- springboot整合mybatis(核心就这一个) -->
  145. <!-- 注意顺序,这个一定要放在最下面 -->
  146. <dependency>
  147. <groupId>org.mybatis.spring.boot</groupId>
  148. <artifactId>mybatis-spring-boot-starter</artifactId>
  149. <version>${mybatis-spring-boot.version}</version>
  150. </dependency>
  151. <!--多数据源-->
  152. <dependency>
  153. <groupId>com.baomidou</groupId>
  154. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  155. <version>3.0.0</version>
  156. </dependency>
  157. <!--mysql-database-->
  158. <dependency>
  159. <groupId>mysql</groupId>
  160. <artifactId>mysql-connector-java</artifactId>
  161. <scope>runtime</scope>
  162. </dependency>
  163. </dependencies>
  164. <build>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.springframework.boot</groupId>
  168. <artifactId>spring-boot-maven-plugin</artifactId>
  169. </plugin>
  170. <!-- 添加docker-maven插件 -->
  171. <plugin>
  172. <groupId>com.spotify</groupId>
  173. <artifactId>docker-maven-plugin</artifactId>
  174. <configuration>
  175. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  176. <forceTags>true</forceTags>
  177. <!--镜像的FROM,使用压缩的小镜像-->
  178. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  179. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  180. <resources>
  181. <resource>
  182. <targetPath>/</targetPath>
  183. <directory>${project.build.directory}</directory>
  184. <include>${project.build.finalName}.jar</include>
  185. </resource>
  186. </resources>
  187. <serverId>docker-registry</serverId>
  188. <registryUrl>${registryUrl}</registryUrl>
  189. </configuration>
  190. </plugin>
  191. </plugins>
  192. </build>
  193. </project>