pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>3.3.6</version>
  10. <relativePath/>
  11. </parent>
  12. <groupId>com.agent</groupId>
  13. <artifactId>agent-management</artifactId>
  14. <version>1.0.0</version>
  15. <name>agent-management</name>
  16. <description>智能体管理和编排平台</description>
  17. <properties>
  18. <java.version>17</java.version>
  19. <spring-ai.version>1.0.0</spring-ai.version>
  20. </properties>
  21. <dependencyManagement>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.ai</groupId>
  25. <artifactId>spring-ai-bom</artifactId>
  26. <version>${spring-ai.version}</version>
  27. <type>pom</type>
  28. <scope>import</scope>
  29. </dependency>
  30. </dependencies>
  31. </dependencyManagement>
  32. <dependencies>
  33. <!-- Spring Boot Web -->
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-web</artifactId>
  37. </dependency>
  38. <!-- Spring Data JPA -->
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-data-jpa</artifactId>
  42. </dependency>
  43. <!-- H2 嵌入式数据库 -->
  44. <dependency>
  45. <groupId>com.h2database</groupId>
  46. <artifactId>h2</artifactId>
  47. <scope>runtime</scope>
  48. </dependency>
  49. <!-- WebSocket -->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-websocket</artifactId>
  53. </dependency>
  54. <!-- Spring Boot Configuration Processor -->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-configuration-processor</artifactId>
  58. <optional>true</optional>
  59. </dependency>
  60. <!-- Spring AI OpenAI (兼容接口,可配置不同服务商) -->
  61. <dependency>
  62. <groupId>org.springframework.ai</groupId>
  63. <artifactId>spring-ai-starter-model-openai</artifactId>
  64. </dependency>
  65. <!-- Spring AI Milvus 向量库(知识库 Phase 1:文档向量化) -->
  66. <dependency>
  67. <groupId>org.springframework.ai</groupId>
  68. <artifactId>spring-ai-starter-vector-store-milvus</artifactId>
  69. </dependency>
  70. <!-- Apache Tika 文档解析(PDF/Word/Excel/PPT/HTML/TXT) -->
  71. <dependency>
  72. <groupId>org.apache.tika</groupId>
  73. <artifactId>tika-parsers-standard-package</artifactId>
  74. <version>2.9.2</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.tika</groupId>
  78. <artifactId>tika-core</artifactId>
  79. <version>2.9.2</version>
  80. </dependency>
  81. <!-- 文件操作 -->
  82. <dependency>
  83. <groupId>commons-io</groupId>
  84. <artifactId>commons-io</artifactId>
  85. <version>2.18.0</version>
  86. </dependency>
  87. <!-- ZIP 压缩/解压 -->
  88. <dependency>
  89. <groupId>org.apache.commons</groupId>
  90. <artifactId>commons-compress</artifactId>
  91. <version>1.26.2</version>
  92. </dependency>
  93. <!-- Spring Boot JDBC(Phase 2:动态数据源 HikariCP) -->
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-jdbc</artifactId>
  97. </dependency>
  98. <!-- Jasypt 密码加密(数据源凭据) -->
  99. <dependency>
  100. <groupId>com.github.ulisesbocchio</groupId>
  101. <artifactId>jasypt-spring-boot-starter</artifactId>
  102. <version>3.0.5</version>
  103. </dependency>
  104. <!-- 多数据库 JDBC 驱动(SQL Console,按需引入) -->
  105. <dependency>
  106. <groupId>com.mysql</groupId>
  107. <artifactId>mysql-connector-j</artifactId>
  108. <version>8.4.0</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.postgresql</groupId>
  112. <artifactId>postgresql</artifactId>
  113. <version>42.7.4</version>
  114. </dependency>
  115. <!-- 达梦 8 JDBC 驱动(默认启用) -->
  116. <dependency>
  117. <groupId>com.dameng</groupId>
  118. <artifactId>DmJdbcDriver18</artifactId>
  119. <version>8.1.3.140</version>
  120. </dependency>
  121. <!-- SQLite JDBC 驱动(默认启用) -->
  122. <dependency>
  123. <groupId>org.xerial</groupId>
  124. <artifactId>sqlite-jdbc</artifactId>
  125. <version>3.45.1.0</version>
  126. </dependency>
  127. <!-- Oracle / SQL Server 驱动按需启用,发布版可裁剪
  128. <dependency>
  129. <groupId>com.oracle.database.jdbc</groupId>
  130. <artifactId>ojdbc11</artifactId>
  131. <version>23.3.0.23.04</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.microsoft.sqlserver</groupId>
  135. <artifactId>mssql-jdbc</artifactId>
  136. <version>12.4.2.jre11</version>
  137. </dependency>
  138. -->
  139. <!-- Neo4j Java Driver(Phase 3:知识图谱) -->
  140. <dependency>
  141. <groupId>org.neo4j.driver</groupId>
  142. <artifactId>neo4j-java-driver</artifactId>
  143. <version>5.27.0</version>
  144. </dependency>
  145. <!-- Bean Validation(JSR-380):实体字段校验 -->
  146. <dependency>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-starter-validation</artifactId>
  149. </dependency>
  150. <!-- Lombok -->
  151. <dependency>
  152. <groupId>org.projectlombok</groupId>
  153. <artifactId>lombok</artifactId>
  154. <optional>true</optional>
  155. </dependency>
  156. <!-- 测试 -->
  157. <dependency>
  158. <groupId>org.springframework.boot</groupId>
  159. <artifactId>spring-boot-starter-test</artifactId>
  160. <scope>test</scope>
  161. </dependency>
  162. </dependencies>
  163. <build>
  164. <plugins>
  165. <plugin>
  166. <groupId>org.apache.maven.plugins</groupId>
  167. <artifactId>maven-compiler-plugin</artifactId>
  168. <configuration>
  169. <testExcludes>
  170. <!-- 旧版 RAG API 测试,与重构后的 StructuredDataRagRetriever /
  171. VannaSqlGenerationService 实现脱节,待整体重写 -->
  172. <testExclude>**/rag/structured/StructuredDataRagRetrieverTest.java</testExclude>
  173. <testExclude>**/rag/structured/VannaSqlGenerationServiceTest.java</testExclude>
  174. </testExcludes>
  175. </configuration>
  176. </plugin>
  177. <plugin>
  178. <groupId>org.springframework.boot</groupId>
  179. <artifactId>spring-boot-maven-plugin</artifactId>
  180. <configuration>
  181. <excludes>
  182. <exclude>
  183. <groupId>org.projectlombok</groupId>
  184. <artifactId>lombok</artifactId>
  185. </exclude>
  186. </excludes>
  187. </configuration>
  188. </plugin>
  189. </plugins>
  190. </build>
  191. </project>