pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.example</groupId>
  8. <artifactId>four-level-schedule</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10. </parent>
  11. <groupId>cn.com.yusys.manager</groupId>
  12. <artifactId>schedule-embedding-api</artifactId>
  13. <packaging>jar</packaging>
  14. <name>schedule-embedding-api</name>
  15. <description>文本向量化与向量检索服务</description>
  16. <properties>
  17. <maven.compiler.source>17</maven.compiler.source>
  18. <maven.compiler.target>17</maven.compiler.target>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <elasticsearch.version>8.13.0</elasticsearch.version>
  21. <okhttp.version>4.9.3</okhttp.version>
  22. </properties>
  23. <dependencies>
  24. <!-- Spring Boot Web -->
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-web</artifactId>
  28. </dependency>
  29. <!-- Spring Boot Validation -->
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-validation</artifactId>
  33. </dependency>
  34. <!-- Spring Kafka -->
  35. <dependency>
  36. <groupId>org.springframework.kafka</groupId>
  37. <artifactId>spring-kafka</artifactId>
  38. </dependency>
  39. <!-- Elasticsearch Java Client (ES 8.x官方客户端,支持JDK 8) -->
  40. <dependency>
  41. <groupId>co.elastic.clients</groupId>
  42. <artifactId>elasticsearch-java</artifactId>
  43. <version>${elasticsearch.version}</version>
  44. </dependency>
  45. <!-- Elasticsearch Rest Client (底层依赖) -->
  46. <dependency>
  47. <groupId>org.elasticsearch.client</groupId>
  48. <artifactId>elasticsearch-rest-client</artifactId>
  49. <version>${elasticsearch.version}</version>
  50. </dependency>
  51. <!-- Jakarta JSON API (ES 8.x 需要) -->
  52. <dependency>
  53. <groupId>jakarta.json</groupId>
  54. <artifactId>jakarta.json-api</artifactId>
  55. <version>2.0.1</version>
  56. </dependency>
  57. <!-- Jakarta JSON 实现 (Glassfish) -->
  58. <dependency>
  59. <groupId>org.glassfish</groupId>
  60. <artifactId>jakarta.json</artifactId>
  61. <version>2.0.1</version>
  62. </dependency>
  63. <!-- Jackson Databind (ES Java Client需要) -->
  64. <dependency>
  65. <groupId>com.fasterxml.jackson.core</groupId>
  66. <artifactId>jackson-databind</artifactId>
  67. </dependency>
  68. <!-- javax.annotation (PostConstruct注解) -->
  69. <dependency>
  70. <groupId>javax.annotation</groupId>
  71. <artifactId>javax.annotation-api</artifactId>
  72. <version>1.3.2</version>
  73. </dependency>
  74. <!-- HTTP客户端(调用Embedding接口) -->
  75. <dependency>
  76. <groupId>com.squareup.okhttp3</groupId>
  77. <artifactId>okhttp</artifactId>
  78. <version>${okhttp.version}</version>
  79. </dependency>
  80. <!-- JSON处理 -->
  81. <dependency>
  82. <groupId>com.fasterxml.jackson.core</groupId>
  83. <artifactId>jackson-databind</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.alibaba</groupId>
  87. <artifactId>fastjson</artifactId>
  88. </dependency>
  89. <!-- Lombok(减少样板代码) -->
  90. <dependency>
  91. <groupId>org.projectlombok</groupId>
  92. <artifactId>lombok</artifactId>
  93. <optional>true</optional>
  94. </dependency>
  95. <!-- Apache Commons(工具类) -->
  96. <dependency>
  97. <groupId>org.apache.commons</groupId>
  98. <artifactId>commons-lang3</artifactId>
  99. </dependency>
  100. <!-- Spring Boot Actuator (健康检查) -->
  101. <dependency>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-starter-actuator</artifactId>
  104. </dependency>
  105. <!-- Spring Boot Data JPA -->
  106. <dependency>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-starter-data-jpa</artifactId>
  109. </dependency>
  110. <!-- MySQL Driver -->
  111. <dependency>
  112. <groupId>com.mysql</groupId>
  113. <artifactId>mysql-connector-j</artifactId>
  114. <scope>runtime</scope>
  115. </dependency>
  116. <!-- 测试依赖 -->
  117. <dependency>
  118. <groupId>org.springframework.boot</groupId>
  119. <artifactId>spring-boot-starter-test</artifactId>
  120. <scope>test</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.junit.jupiter</groupId>
  124. <artifactId>junit-jupiter-api</artifactId>
  125. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.junit.jupiter</groupId>
  129. <artifactId>junit-jupiter-engine</artifactId>
  130. <scope>test</scope>
  131. </dependency>
  132. </dependencies>
  133. <build>
  134. <finalName>schedule-embedding-api</finalName>
  135. <plugins>
  136. <plugin>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-maven-plugin</artifactId>
  139. <executions>
  140. <execution>
  141. <goals>
  142. <goal>repackage</goal>
  143. </goals>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. </plugins>
  148. </build>
  149. </project>