pom.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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.search</groupId>
  20. <artifactId>search-api</artifactId>
  21. <version>1.0.0-SNAPSHOT</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>cn.reghao.tnb.content</groupId>
  25. <artifactId>content-api</artifactId>
  26. <version>1.0.0-SNAPSHOT</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>cn.reghao.tnb.user</groupId>
  30. <artifactId>user-api</artifactId>
  31. <version>1.0.0-SNAPSHOT</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-web</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>mysql</groupId>
  39. <artifactId>mysql-connector-java</artifactId>
  40. <version>8.0.17</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.zaxxer</groupId>
  44. <artifactId>HikariCP</artifactId>
  45. <version>3.3.1</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-data-jpa</artifactId>
  50. </dependency>
  51. <!-- lucene -->
  52. <dependency>
  53. <groupId>org.hibernate.search</groupId>
  54. <artifactId>hibernate-search-mapper-orm</artifactId>
  55. <version>6.2.4.Final</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.hibernate.search</groupId>
  59. <artifactId>hibernate-search-backend-lucene</artifactId>
  60. <version>6.2.4.Final</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.lucene</groupId>
  64. <artifactId>lucene-core</artifactId>
  65. <version>8.11.2</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.lucene</groupId>
  69. <artifactId>lucene-queryparser</artifactId>
  70. <version>8.11.2</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.apache.lucene</groupId>
  74. <artifactId>lucene-highlighter</artifactId>
  75. <version>8.11.2</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.github.magese</groupId>
  79. <artifactId>ik-analyzer</artifactId>
  80. <version>8.5.0</version>
  81. </dependency>
  82. <!-- elasticsearch -->
  83. <dependency>
  84. <groupId>co.elastic.clients</groupId>
  85. <artifactId>elasticsearch-java</artifactId>
  86. <version>7.17.18</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.elasticsearch.client</groupId>
  90. <artifactId>elasticsearch-rest-client</artifactId>
  91. <version>7.17.18</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.fasterxml.jackson.core</groupId>
  95. <artifactId>jackson-databind</artifactId>
  96. <version>2.17.0</version>
  97. <exclusions>
  98. <exclusion>
  99. <groupId>com.fasterxml.jackson.core</groupId>
  100. <artifactId>jackson-core</artifactId>
  101. </exclusion>
  102. </exclusions>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.fasterxml.jackson.core</groupId>
  106. <artifactId>jackson-core</artifactId>
  107. <version>2.17.0</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.fasterxml.jackson.core</groupId>
  111. <artifactId>jackson-annotations</artifactId>
  112. <version>2.17.0</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>jakarta.json</groupId>
  116. <artifactId>jakarta.json-api</artifactId>
  117. <version>2.0.1</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.springframework.cloud</groupId>
  121. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  122. </dependency>
  123. <dependency>
  124. <groupId>io.springfox</groupId>
  125. <artifactId>springfox-boot-starter</artifactId>
  126. <version>3.0.0</version>
  127. </dependency>
  128. </dependencies>
  129. <profiles>
  130. <profile>
  131. <id>dev</id>
  132. <properties>
  133. <profile.active>dev</profile.active>
  134. </properties>
  135. <activation>
  136. <activeByDefault>true</activeByDefault>
  137. </activation>
  138. </profile>
  139. <profile>
  140. <id>test</id>
  141. <properties>
  142. <profile.active>test</profile.active>
  143. </properties>
  144. </profile>
  145. <profile>
  146. <id>cluster</id>
  147. <properties>
  148. <profile.active>cluster</profile.active>
  149. </properties>
  150. </profile>
  151. </profiles>
  152. <build>
  153. <finalName>tnb-search</finalName>
  154. <resources>
  155. <resource>
  156. <directory>src/main/resources</directory>
  157. <filtering>true</filtering>
  158. <includes>
  159. <!--<include>bootstrap.yml</include>-->
  160. <include>application.yml</include>
  161. <include>application-${profile.active}.yml</include>
  162. <include>mapper/**</include>
  163. <include>*.xml</include>
  164. </includes>
  165. </resource>
  166. </resources>
  167. <plugins>
  168. <plugin>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-maven-plugin</artifactId>
  171. <configuration>
  172. <executable>true</executable>
  173. <fork>true</fork>
  174. </configuration>
  175. </plugin>
  176. </plugins>
  177. </build>
  178. </project>