pom.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>3.5.10</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>edu.nju.software</groupId>
  12. <artifactId>ai-paas-agent</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>ai-paas-agent</name>
  15. <description>ai-paas-agent</description>
  16. <url/>
  17. <licenses>
  18. <license/>
  19. </licenses>
  20. <developers>
  21. <developer/>
  22. </developers>
  23. <scm>
  24. <connection/>
  25. <developerConnection/>
  26. <tag/>
  27. <url/>
  28. </scm>
  29. <properties>
  30. <java.version>21</java.version>
  31. <maven.compiler.source>21</maven.compiler.source>
  32. <maven.compiler.target>21</maven.compiler.target>
  33. <spring-ai.version>1.1.3</spring-ai.version>
  34. </properties>
  35. <dependencyManagement>
  36. <dependencies>
  37. <dependency>
  38. <groupId>com.alibaba.cloud.ai</groupId>
  39. <artifactId>spring-ai-alibaba-bom</artifactId>
  40. <version>1.1.2.0</version>
  41. <type>pom</type>
  42. <scope>import</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.ai</groupId>
  46. <artifactId>spring-ai-bom</artifactId>
  47. <version>1.1.3</version>
  48. <type>pom</type>
  49. <scope>import</scope>
  50. </dependency>
  51. </dependencies>
  52. </dependencyManagement>
  53. <dependencies>
  54. <!-- Spring Boot Starters -->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-web</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-aop</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-data-redis</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-test</artifactId>
  70. <scope>test</scope>
  71. </dependency>
  72. <!-- Spring AI -->
  73. <!-- <dependency>-->
  74. <!-- <groupId>org.springframework.ai</groupId>-->
  75. <!-- <artifactId>spring-ai-ollama-spring-boot-starter</artifactId>-->
  76. <!-- <version>${spring-ai.version}</version>-->
  77. <!-- <exclusions>-->
  78. <!-- <exclusion>-->
  79. <!-- <groupId>org.springframework.ai</groupId>-->
  80. <!-- <artifactId>spring-ai-autoconfigure</artifactId>-->
  81. <!-- </exclusion>-->
  82. <!-- </exclusions>-->
  83. <!-- </dependency>-->
  84. <!-- Spring AI MCP Client -->
  85. <dependency>
  86. <groupId>com.alibaba.cloud.ai</groupId>
  87. <artifactId>spring-ai-alibaba-starter-dashscope</artifactId>
  88. <version>1.1.2.0</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework.ai</groupId>
  92. <artifactId>spring-ai-starter-mcp-client-webflux</artifactId>
  93. </dependency>
  94. <!-- 注释掉 Ollama 依赖,解决 bean 冲突问题 -->
  95. <!--
  96. <dependency>
  97. <groupId>org.springframework.ai</groupId>
  98. <artifactId>spring-ai-starter-model-ollama</artifactId>
  99. </dependency>
  100. -->
  101. <dependency>
  102. <groupId>org.springframework.ai</groupId>
  103. <artifactId>spring-ai-starter-mcp-client</artifactId>
  104. </dependency>
  105. <!-- Third-party Libraries -->
  106. <dependency>
  107. <groupId>com.alibaba</groupId>
  108. <artifactId>dashscope-sdk-java</artifactId>
  109. <version>2.11.0</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.projectlombok</groupId>
  113. <artifactId>lombok</artifactId>
  114. <version>1.18.30</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>cn.hutool</groupId>
  118. <artifactId>hutool-all</artifactId>
  119. <version>5.8.37</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.github.xiaoymin</groupId>
  123. <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
  124. <version>4.4.0</version>
  125. </dependency>
  126. <!-- Redisson -->
  127. <dependency>
  128. <groupId>org.redisson</groupId>
  129. <artifactId>redisson</artifactId>
  130. <version>4.3.0</version>
  131. </dependency>
  132. <!-- Kryo Serialization -->
  133. <dependency>
  134. <groupId>com.esotericsoftware</groupId>
  135. <artifactId>kryo</artifactId>
  136. <version>5.6.2</version>
  137. </dependency>
  138. <!-- YAML Support -->
  139. <dependency>
  140. <groupId>com.fasterxml.jackson.dataformat</groupId>
  141. <artifactId>jackson-dataformat-yaml</artifactId>
  142. </dependency>
  143. </dependencies>
  144. <repositories>
  145. <repository>
  146. <id>aliyunmaven</id>
  147. <name>阿里云公共仓库</name>
  148. <url>https://maven.aliyun.com/repository/public</url>
  149. <releases>
  150. <enabled>true</enabled>
  151. </releases>
  152. <snapshots>
  153. <enabled>false</enabled>
  154. </snapshots>
  155. </repository>
  156. <repository>
  157. <id>spring-milestones</id>
  158. <name>Spring Milestones</name>
  159. <url>https://repo.spring.io/milestone</url>
  160. <snapshots>
  161. <enabled>false</enabled>
  162. </snapshots>
  163. </repository>
  164. <repository>
  165. <id>spring-snapshots</id>
  166. <name>Spring Snapshots</name>
  167. <url>https://repo.spring.io/snapshot</url>
  168. <releases>
  169. <enabled>false</enabled>
  170. </releases>
  171. </repository>
  172. <repository>
  173. <name>Central Portal Snapshots</name>
  174. <id>central-portal-snapshots</id>
  175. <url>https://central.sonatype.com/repository/maven-snapshots/</url>
  176. <releases>
  177. <enabled>false</enabled>
  178. </releases>
  179. <snapshots>
  180. <enabled>true</enabled>
  181. </snapshots>
  182. </repository>
  183. </repositories>
  184. <pluginRepositories>
  185. <pluginRepository>
  186. <id>aliyun-plugin</id>
  187. <url>https://maven.aliyun.com/repository/public</url>
  188. </pluginRepository>
  189. <pluginRepository>
  190. <id>spring-milestones</id>
  191. <url>https://repo.spring.io/milestone</url>
  192. </pluginRepository>
  193. </pluginRepositories>
  194. <build>
  195. <plugins>
  196. <plugin>
  197. <groupId>org.apache.maven.plugins</groupId>
  198. <artifactId>maven-compiler-plugin</artifactId>
  199. <configuration>
  200. <annotationProcessorPaths>
  201. <path>
  202. <groupId>org.projectlombok</groupId>
  203. <artifactId>lombok</artifactId>
  204. </path>
  205. </annotationProcessorPaths>
  206. <source>21</source>
  207. <target>21</target>
  208. <compilerArgs>--enable-preview</compilerArgs>
  209. </configuration>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.springframework.boot</groupId>
  213. <artifactId>spring-boot-maven-plugin</artifactId>
  214. <configuration>
  215. <excludes>
  216. <exclude>
  217. <groupId>org.projectlombok</groupId>
  218. <artifactId>lombok</artifactId>
  219. </exclude>
  220. </excludes>
  221. </configuration>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.apache.maven.plugins</groupId>
  225. <artifactId>maven-surefire-plugin</artifactId>
  226. <version>3.5.2</version>
  227. <configuration>
  228. <!-- 移除 javaagent 配置,避免 mockito 依赖问题 -->
  229. </configuration>
  230. </plugin>
  231. </plugins>
  232. </build>
  233. </project>