pom.xml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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>17</maven.compiler.source>
  15. <maven.compiler.target>17</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cn.reghao.tnb</groupId>
  20. <artifactId>common</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>cn.reghao.tnb.file</groupId>
  40. <artifactId>file-api</artifactId>
  41. <version>1.0.0-SNAPSHOT</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-test</artifactId>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-websocket</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.mysql</groupId>
  54. <artifactId>mysql-connector-j</artifactId>
  55. <version>8.0.31</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.zaxxer</groupId>
  59. <artifactId>HikariCP</artifactId>
  60. <version>3.3.1</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-data-jpa</artifactId>
  65. </dependency>
  66. <!-- hibernate lucene -->
  67. <dependency>
  68. <groupId>org.hibernate.search</groupId>
  69. <artifactId>hibernate-search-mapper-orm</artifactId>
  70. <version>7.0.0.Final</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.hibernate.search</groupId>
  74. <artifactId>hibernate-search-backend-lucene</artifactId>
  75. <version>7.0.0.Final</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-amqp</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-data-mongodb</artifactId>
  84. </dependency>
  85. <!-- lucene -->
  86. <dependency>
  87. <groupId>org.apache.lucene</groupId>
  88. <artifactId>lucene-core</artifactId>
  89. <version>9.8.0</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.lucene</groupId>
  93. <artifactId>lucene-queryparser</artifactId>
  94. <version>9.8.0</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.apache.lucene</groupId>
  98. <artifactId>lucene-highlighter</artifactId>
  99. <version>9.8.0</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.apache.lucene</groupId>
  103. <artifactId>lucene-backward-codecs</artifactId>
  104. <version>9.8.0</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.github.magese</groupId>
  108. <artifactId>ik-analyzer</artifactId>
  109. <version>9.8.0</version>
  110. </dependency>
  111. <!-- elasticsearch -->
  112. <dependency>
  113. <groupId>co.elastic.clients</groupId>
  114. <artifactId>elasticsearch-java</artifactId>
  115. <version>7.17.18</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.elasticsearch.client</groupId>
  119. <artifactId>elasticsearch-rest-client</artifactId>
  120. <version>7.17.18</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.fasterxml.jackson.core</groupId>
  124. <artifactId>jackson-databind</artifactId>
  125. <version>2.17.0</version>
  126. <exclusions>
  127. <exclusion>
  128. <groupId>com.fasterxml.jackson.core</groupId>
  129. <artifactId>jackson-core</artifactId>
  130. </exclusion>
  131. </exclusions>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.fasterxml.jackson.core</groupId>
  135. <artifactId>jackson-core</artifactId>
  136. <version>2.17.0</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.fasterxml.jackson.core</groupId>
  140. <artifactId>jackson-annotations</artifactId>
  141. <version>2.17.0</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>jakarta.json</groupId>
  145. <artifactId>jakarta.json-api</artifactId>
  146. <version>2.0.1</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.springframework.cloud</groupId>
  150. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  151. </dependency>
  152. <dependency>
  153. <groupId>com.alibaba.cloud</groupId>
  154. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  155. <version>2021.0.6.0</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.springdoc</groupId>
  159. <artifactId>springdoc-openapi-ui</artifactId>
  160. <version>1.7.0</version>
  161. </dependency>
  162. </dependencies>
  163. <profiles>
  164. <profile>
  165. <id>dev</id>
  166. <properties>
  167. <profile.active>dev</profile.active>
  168. </properties>
  169. <activation>
  170. <activeByDefault>true</activeByDefault>
  171. </activation>
  172. </profile>
  173. <profile>
  174. <id>test</id>
  175. <properties>
  176. <profile.active>test</profile.active>
  177. </properties>
  178. </profile>
  179. <profile>
  180. <id>cluster</id>
  181. <properties>
  182. <profile.active>cluster</profile.active>
  183. </properties>
  184. </profile>
  185. </profiles>
  186. <build>
  187. <finalName>tnb-search</finalName>
  188. <resources>
  189. <resource>
  190. <directory>src/main/resources</directory>
  191. <filtering>true</filtering>
  192. <includes>
  193. <include>application.yml</include>
  194. <!--<include>application-${profile.active}.yml</include>-->
  195. <include>mapper/**</include>
  196. <include>*.xml</include>
  197. </includes>
  198. </resource>
  199. </resources>
  200. <plugins>
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-compiler-plugin</artifactId>
  204. <version>3.11.0</version>
  205. <configuration>
  206. <compilerArgs>
  207. <arg>-parameters</arg>
  208. </compilerArgs>
  209. </configuration>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.springframework.boot</groupId>
  213. <artifactId>spring-boot-maven-plugin</artifactId>
  214. <version>${springboot.version}</version>
  215. <executions>
  216. <execution>
  217. <goals>
  218. <goal>repackage</goal>
  219. </goals>
  220. </execution>
  221. </executions>
  222. </plugin>
  223. </plugins>
  224. </build>
  225. </project>