pom.xml 6.9 KB

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