pom.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. </dependencies>
  124. <profiles>
  125. <profile>
  126. <id>dev</id>
  127. <properties>
  128. <profile.active>dev</profile.active>
  129. </properties>
  130. <activation>
  131. <activeByDefault>true</activeByDefault>
  132. </activation>
  133. </profile>
  134. <profile>
  135. <id>test</id>
  136. <properties>
  137. <profile.active>test</profile.active>
  138. </properties>
  139. </profile>
  140. <profile>
  141. <id>cluster</id>
  142. <properties>
  143. <profile.active>cluster</profile.active>
  144. </properties>
  145. </profile>
  146. </profiles>
  147. <build>
  148. <finalName>tnb-search</finalName>
  149. <resources>
  150. <resource>
  151. <directory>src/main/resources</directory>
  152. <filtering>true</filtering>
  153. <includes>
  154. <!--<include>bootstrap.yml</include>-->
  155. <include>application.yml</include>
  156. <include>application-${profile.active}.yml</include>
  157. <include>mapper/**</include>
  158. <include>*.xml</include>
  159. </includes>
  160. </resource>
  161. </resources>
  162. <plugins>
  163. <plugin>
  164. <groupId>org.springframework.boot</groupId>
  165. <artifactId>spring-boot-maven-plugin</artifactId>
  166. <configuration>
  167. <executable>true</executable>
  168. <fork>true</fork>
  169. </configuration>
  170. </plugin>
  171. </plugins>
  172. </build>
  173. </project>