pom.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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-esapp</artifactId>
  13. <properties>
  14. <maven.compiler.source>21</maven.compiler.source>
  15. <maven.compiler.target>21</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>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-test</artifactId>
  41. <scope>test</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-websocket</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.hibernate.validator</groupId>
  49. <artifactId>hibernate-validator</artifactId>
  50. <version>8.0.1.Final</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-amqp</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-data-mongodb</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.apache.kafka</groupId>
  62. <artifactId>kafka-clients</artifactId>
  63. <version>3.9.1</version> <!-- Use the latest compatible version -->
  64. </dependency>
  65. <!-- lucene -->
  66. <dependency>
  67. <groupId>org.apache.lucene</groupId>
  68. <artifactId>lucene-core</artifactId>
  69. <version>9.8.0</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.lucene</groupId>
  73. <artifactId>lucene-queryparser</artifactId>
  74. <version>9.8.0</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.lucene</groupId>
  78. <artifactId>lucene-highlighter</artifactId>
  79. <version>9.8.0</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.lucene</groupId>
  83. <artifactId>lucene-backward-codecs</artifactId>
  84. <version>9.8.0</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.github.reghao</groupId>
  88. <artifactId>ik-analyzer-solr</artifactId>
  89. <version>93e91afb</version>
  90. </dependency>
  91. <!-- blog -->
  92. <dependency>
  93. <groupId>org.jsoup</groupId>
  94. <artifactId>jsoup</artifactId>
  95. <version>1.12.1</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.atlassian.commonmark</groupId>
  99. <artifactId>commonmark</artifactId>
  100. <version>0.12.1</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.atlassian.commonmark</groupId>
  104. <artifactId>commonmark-ext-gfm-tables</artifactId>
  105. <version>0.12.1</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.atlassian.commonmark</groupId>
  109. <artifactId>commonmark-ext-yaml-front-matter</artifactId>
  110. <version>0.12.1</version>
  111. </dependency>
  112. <!-- elasticsearch -->
  113. <dependency>
  114. <groupId>co.elastic.clients</groupId>
  115. <artifactId>elasticsearch-java</artifactId>
  116. <version>7.17.18</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.elasticsearch.client</groupId>
  120. <artifactId>elasticsearch-rest-client</artifactId>
  121. <version>7.17.18</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.fasterxml.jackson.core</groupId>
  125. <artifactId>jackson-databind</artifactId>
  126. <version>2.17.0</version>
  127. <exclusions>
  128. <exclusion>
  129. <groupId>com.fasterxml.jackson.core</groupId>
  130. <artifactId>jackson-core</artifactId>
  131. </exclusion>
  132. </exclusions>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.fasterxml.jackson.core</groupId>
  136. <artifactId>jackson-core</artifactId>
  137. <version>2.17.0</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>com.fasterxml.jackson.core</groupId>
  141. <artifactId>jackson-annotations</artifactId>
  142. <version>2.17.0</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>jakarta.json</groupId>
  146. <artifactId>jakarta.json-api</artifactId>
  147. <version>2.0.1</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.springdoc</groupId>
  151. <artifactId>springdoc-openapi-ui</artifactId>
  152. <version>1.7.0</version>
  153. </dependency>
  154. </dependencies>
  155. <profiles>
  156. <profile>
  157. <id>dev</id>
  158. <properties>
  159. <profile.active>dev</profile.active>
  160. </properties>
  161. <activation>
  162. <activeByDefault>true</activeByDefault>
  163. </activation>
  164. </profile>
  165. <profile>
  166. <id>test</id>
  167. <properties>
  168. <profile.active>test</profile.active>
  169. </properties>
  170. </profile>
  171. </profiles>
  172. <build>
  173. <finalName>tnb-search</finalName>
  174. <resources>
  175. <resource>
  176. <directory>src/main/resources</directory>
  177. <filtering>true</filtering>
  178. <includes>
  179. <include>application.yml</include>
  180. <include>application-${profile.active}.yml</include>
  181. <include>mapper/**</include>
  182. <include>*.xml</include>
  183. </includes>
  184. </resource>
  185. </resources>
  186. <plugins>
  187. <plugin>
  188. <groupId>org.apache.maven.plugins</groupId>
  189. <artifactId>maven-compiler-plugin</artifactId>
  190. <version>3.13.0</version>
  191. <configuration>
  192. <compilerArgs>
  193. <arg>-parameters</arg>
  194. </compilerArgs>
  195. </configuration>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.springframework.boot</groupId>
  199. <artifactId>spring-boot-maven-plugin</artifactId>
  200. <version>${springboot.version}</version>
  201. <executions>
  202. <execution>
  203. <goals>
  204. <goal>repackage</goal>
  205. </goals>
  206. </execution>
  207. </executions>
  208. </plugin>
  209. </plugins>
  210. </build>
  211. </project>