pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. <parent>
  6. <artifactId>search</artifactId>
  7. <groupId>cn.reghao.tnb</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>cn.reghao.tnb.search</groupId>
  12. <artifactId>search-service</artifactId>
  13. <properties>
  14. <maven.compiler.source>11</maven.compiler.source>
  15. <maven.compiler.target>11</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cn.reghao.bnt</groupId>
  20. <artifactId>log</artifactId>
  21. <version>1.0.0-SNAPSHOT</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>cn.reghao.tnb.search</groupId>
  25. <artifactId>search-api</artifactId>
  26. <version>1.0.0-SNAPSHOT</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>cn.reghao.tnb.content</groupId>
  30. <artifactId>content-api</artifactId>
  31. <version>1.0.0-SNAPSHOT</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>cn.reghao.tnb.user</groupId>
  35. <artifactId>user-api</artifactId>
  36. <version>1.0.0-SNAPSHOT</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-web</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-websocket</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>mysql</groupId>
  48. <artifactId>mysql-connector-java</artifactId>
  49. <version>8.0.17</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.zaxxer</groupId>
  53. <artifactId>HikariCP</artifactId>
  54. <version>3.3.1</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-data-jpa</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-amqp</artifactId>
  63. </dependency>
  64. <!-- lucene -->
  65. <dependency>
  66. <groupId>org.hibernate.search</groupId>
  67. <artifactId>hibernate-search-mapper-orm</artifactId>
  68. <version>6.2.4.Final</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.hibernate.search</groupId>
  72. <artifactId>hibernate-search-backend-lucene</artifactId>
  73. <version>6.2.4.Final</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.apache.lucene</groupId>
  77. <artifactId>lucene-core</artifactId>
  78. <version>8.11.2</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.lucene</groupId>
  82. <artifactId>lucene-queryparser</artifactId>
  83. <version>8.11.2</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.lucene</groupId>
  87. <artifactId>lucene-highlighter</artifactId>
  88. <version>8.11.2</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>com.github.magese</groupId>
  92. <artifactId>ik-analyzer</artifactId>
  93. <version>8.5.0</version>
  94. </dependency>
  95. <!-- elasticsearch -->
  96. <dependency>
  97. <groupId>co.elastic.clients</groupId>
  98. <artifactId>elasticsearch-java</artifactId>
  99. <version>7.17.18</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.elasticsearch.client</groupId>
  103. <artifactId>elasticsearch-rest-client</artifactId>
  104. <version>7.17.18</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.fasterxml.jackson.core</groupId>
  108. <artifactId>jackson-databind</artifactId>
  109. <version>2.17.0</version>
  110. <exclusions>
  111. <exclusion>
  112. <groupId>com.fasterxml.jackson.core</groupId>
  113. <artifactId>jackson-core</artifactId>
  114. </exclusion>
  115. </exclusions>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.fasterxml.jackson.core</groupId>
  119. <artifactId>jackson-core</artifactId>
  120. <version>2.17.0</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.fasterxml.jackson.core</groupId>
  124. <artifactId>jackson-annotations</artifactId>
  125. <version>2.17.0</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>jakarta.json</groupId>
  129. <artifactId>jakarta.json-api</artifactId>
  130. <version>2.0.1</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.springframework.cloud</groupId>
  134. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  135. </dependency>
  136. <dependency>
  137. <groupId>com.alibaba.cloud</groupId>
  138. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  139. <version>2021.0.6.0</version>
  140. </dependency>
  141. </dependencies>
  142. <profiles>
  143. <profile>
  144. <id>dev</id>
  145. <properties>
  146. <profile.active>dev</profile.active>
  147. </properties>
  148. <activation>
  149. <activeByDefault>true</activeByDefault>
  150. </activation>
  151. </profile>
  152. <profile>
  153. <id>test</id>
  154. <properties>
  155. <profile.active>test</profile.active>
  156. </properties>
  157. </profile>
  158. <profile>
  159. <id>cluster</id>
  160. <properties>
  161. <profile.active>cluster</profile.active>
  162. </properties>
  163. </profile>
  164. </profiles>
  165. <build>
  166. <finalName>tnb-search</finalName>
  167. <resources>
  168. <resource>
  169. <directory>src/main/resources</directory>
  170. <filtering>true</filtering>
  171. <includes>
  172. <!--<include>bootstrap.yml</include>-->
  173. <include>application.yml</include>
  174. <!--<include>application-${profile.active}.yml</include>-->
  175. <include>mapper/**</include>
  176. <include>*.xml</include>
  177. </includes>
  178. </resource>
  179. </resources>
  180. <plugins>
  181. <plugin>
  182. <groupId>org.springframework.boot</groupId>
  183. <artifactId>spring-boot-maven-plugin</artifactId>
  184. <version>${springboot.version}</version>
  185. <executions>
  186. <execution>
  187. <goals>
  188. <goal>repackage</goal>
  189. </goals>
  190. </execution>
  191. </executions>
  192. </plugin>
  193. </plugins>
  194. </build>
  195. </project>