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