pom.xml 7.6 KB

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