pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.zsjz</groupId>
  7. <artifactId>zsjz-ai</artifactId>
  8. <version>1.0</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <artifactId>ai-server</artifactId>
  12. <name>ai-server</name>
  13. <description>ai-server</description>
  14. <properties>
  15. <java.version>25</java.version>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  18. <tomlj.version>1.1.1</tomlj.version>
  19. <guava.version>33.4.8-jre</guava.version>
  20. <druid.version>1.2.22</druid.version>
  21. <commons-collections.version>3.2.1</commons-collections.version>
  22. <commons-io.version>2.21.0</commons-io.version>
  23. <commonmark.version>0.17.0</commonmark.version>
  24. <commons-compress.version>1.28.0</commons-compress.version>
  25. <testcontainers.version>1.21.4</testcontainers.version>
  26. <agentscope.version>2.0.1</agentscope.version>
  27. <pgvector.version>0.1.6</pgvector.version>
  28. <djl.version>0.38.0</djl.version>
  29. <onnxruntime.version>1.30.0</onnxruntime.version>
  30. </properties>
  31. <dependencyManagement>
  32. <dependencies>
  33. <dependency>
  34. <groupId>org.springframework.ai</groupId>
  35. <artifactId>spring-ai-bom</artifactId>
  36. <version>1.1.8</version>
  37. <type>pom</type>
  38. <scope>import</scope>
  39. </dependency>
  40. </dependencies>
  41. </dependencyManagement>
  42. <dependencies>
  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-validation</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-data-redis</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-configuration-processor</artifactId>
  58. <optional>true</optional>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-aop</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-test</artifactId>
  67. <scope>test</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.projectlombok</groupId>
  71. <artifactId>lombok</artifactId>
  72. <optional>true</optional>
  73. </dependency>
  74. <dependency>
  75. <groupId>io.agentscope</groupId>
  76. <artifactId>agentscope-harness</artifactId>
  77. <version>${agentscope.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>io.agentscope</groupId>
  81. <artifactId>agentscope-extensions-model-dashscope</artifactId>
  82. <version>${agentscope.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>io.agentscope</groupId>
  86. <artifactId>agentscope-extensions-model-ollama</artifactId>
  87. <version>${agentscope.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>io.agentscope</groupId>
  91. <artifactId>agentscope-extensions-model-openai</artifactId>
  92. <version>${agentscope.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>io.agentscope</groupId>
  96. <artifactId>agentscope-extensions-mem0</artifactId>
  97. <version>${agentscope.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>io.agentscope</groupId>
  101. <artifactId>agentscope-extensions-rag-simple</artifactId>
  102. <version>${agentscope.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>io.agentscope</groupId>
  106. <artifactId>agentscope-extensions-redis</artifactId>
  107. <version>${agentscope.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.springframework.ai</groupId>
  111. <artifactId>spring-ai-tika-document-reader</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.springframework.ai</groupId>
  115. <artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.springframework.ai</groupId>
  119. <artifactId>spring-ai-starter-mcp-server</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.postgresql</groupId>
  123. <artifactId>postgresql</artifactId>
  124. </dependency>
  125. <!-- pgvector Java SDK for PostgreSQL vector extension -->
  126. <dependency>
  127. <groupId>com.pgvector</groupId>
  128. <artifactId>pgvector</artifactId>
  129. <version>${pgvector.version}</version>
  130. </dependency>
  131. <!-- 本地嵌入模型推理:DJL HuggingFace 分词器(Rust 原生,加载 tokenizer.json,
  132. 传递引入 ai.djl:api)+ ONNX Runtime CPU(各平台 native 库内置 jar) -->
  133. <dependency>
  134. <groupId>ai.djl.huggingface</groupId>
  135. <artifactId>tokenizers</artifactId>
  136. <version>${djl.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.microsoft.onnxruntime</groupId>
  140. <artifactId>onnxruntime</artifactId>
  141. <version>${onnxruntime.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.zaxxer</groupId>
  145. <artifactId>HikariCP</artifactId>
  146. </dependency>
  147. <!-- DuckDB JDBC 驱动(数据源模块连接测试) -->
  148. <dependency>
  149. <groupId>org.duckdb</groupId>
  150. <artifactId>duckdb_jdbc</artifactId>
  151. <version>1.5.5.1</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>com.baomidou</groupId>
  155. <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
  156. <version>3.5.17</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.baomidou</groupId>
  160. <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
  161. <version>4.5.0</version>
  162. </dependency>
  163. <!-- <dependency>
  164. <groupId>com.alibaba</groupId>
  165. <artifactId>druid</artifactId>
  166. <version>${druid.version}</version>
  167. </dependency>-->
  168. <dependency>
  169. <groupId>com.baomidou</groupId>
  170. <artifactId>mybatis-plus-jsqlparser</artifactId>
  171. <version>3.5.17</version>
  172. </dependency>
  173. <!-- Sa-Token 权限认证,在线文档:https://sa-token.com -->
  174. <dependency>
  175. <groupId>cn.dev33</groupId>
  176. <artifactId>sa-token-spring-boot3-starter</artifactId>
  177. <version>1.46.0</version>
  178. </dependency>
  179. <!-- BCrypt 密码加密(仅用加密类,不引入 Security 自动配置) -->
  180. <dependency>
  181. <groupId>org.springframework.security</groupId>
  182. <artifactId>spring-security-crypto</artifactId>
  183. </dependency>
  184. <dependency>
  185. <groupId>cn.dev33</groupId>
  186. <artifactId>sa-token-redis-jackson</artifactId>
  187. <version>1.46.0</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>commons-collections</groupId>
  191. <artifactId>commons-collections</artifactId>
  192. <version>${commons-collections.version}</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>commons-io</groupId>
  196. <artifactId>commons-io</artifactId>
  197. <version>${commons-io.version}</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.commonmark</groupId>
  201. <artifactId>commonmark</artifactId>
  202. <version>${commonmark.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.apache.commons</groupId>
  206. <artifactId>commons-compress</artifactId>
  207. <version>${commons-compress.version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>com.google.guava</groupId>
  211. <artifactId>guava</artifactId>
  212. <version>${guava.version}</version>
  213. </dependency>
  214. <!-- Source: https://mvnrepository.com/artifact/org.apache.fesod/fesod-sheet -->
  215. <dependency>
  216. <groupId>org.apache.fesod</groupId>
  217. <artifactId>fesod-sheet</artifactId>
  218. <version>2.0.2-incubating</version>
  219. <scope>compile</scope>
  220. </dependency>
  221. <!-- MapStruct 对象映射 -->
  222. <dependency>
  223. <groupId>org.mapstruct</groupId>
  224. <artifactId>mapstruct</artifactId>
  225. <version>1.6.3</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>com.github.albfernandez</groupId>
  229. <artifactId>juniversalchardet</artifactId>
  230. <version>2.5.0</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>cn.hutool</groupId>
  234. <artifactId>hutool-all</artifactId>
  235. <version>5.8.47</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>net.java.dev.jna</groupId>
  239. <artifactId>jna</artifactId>
  240. <version>5.18.1</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>com.yomahub</groupId>
  244. <artifactId>roguemap-core</artifactId>
  245. <version>1.1.7</version>
  246. </dependency>
  247. <!-- 全文检索(替代原嵌入式 Lucene 10.3.2):Elasticsearch 服务端版本须与
  248. Spring Boot 3.5 托管的客户端 8.18.x 匹配,单节点部署见 readme -->
  249. <dependency>
  250. <groupId>org.springframework.boot</groupId>
  251. <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
  252. </dependency>
  253. </dependencies>
  254. <build>
  255. <plugins>
  256. <plugin>
  257. <groupId>org.springframework.boot</groupId>
  258. <artifactId>spring-boot-maven-plugin</artifactId>
  259. </plugin>
  260. <plugin>
  261. <groupId>org.apache.maven.plugins</groupId>
  262. <artifactId>maven-compiler-plugin</artifactId>
  263. <executions>
  264. <execution>
  265. <id>default-compile</id>
  266. <phase>compile</phase>
  267. <goals>
  268. <goal>compile</goal>
  269. </goals>
  270. <configuration>
  271. <annotationProcessorPaths>
  272. <path>
  273. <groupId>org.projectlombok</groupId>
  274. <artifactId>lombok</artifactId>
  275. </path>
  276. <path>
  277. <groupId>org.springframework.boot</groupId>
  278. <artifactId>spring-boot-configuration-processor</artifactId>
  279. </path>
  280. <path>
  281. <groupId>org.mapstruct</groupId>
  282. <artifactId>mapstruct-processor</artifactId>
  283. <version>1.6.3</version>
  284. </path>
  285. </annotationProcessorPaths>
  286. </configuration>
  287. </execution>
  288. <execution>
  289. <id>default-testCompile</id>
  290. <phase>test-compile</phase>
  291. <goals>
  292. <goal>testCompile</goal>
  293. </goals>
  294. <configuration>
  295. <annotationProcessorPaths>
  296. <path>
  297. <groupId>org.projectlombok</groupId>
  298. <artifactId>lombok</artifactId>
  299. </path>
  300. <path>
  301. <groupId>org.mapstruct</groupId>
  302. <artifactId>mapstruct-processor</artifactId>
  303. <version>1.6.3</version>
  304. </path>
  305. </annotationProcessorPaths>
  306. </configuration>
  307. </execution>
  308. </executions>
  309. </plugin>
  310. </plugins>
  311. </build>
  312. </project>