pom.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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.0.0.2</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>org.springframework.ai</groupId>
  87. <artifactId>spring-ai-starter-mcp-client</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.alibaba.cloud.ai</groupId>
  91. <artifactId>spring-ai-alibaba-starter-dashscope</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.springframework.ai</groupId>
  95. <artifactId>spring-ai-starter-mcp-client-webflux</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.springframework.ai</groupId>
  99. <artifactId>spring-ai-starter-model-ollama</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.springframework.ai</groupId>
  103. <artifactId>spring-ai-starter-mcp-client</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.springframework.ai</groupId>
  107. <artifactId>spring-ai-mcp</artifactId>
  108. </dependency>
  109. <!-- Third-party Libraries -->
  110. <dependency>
  111. <groupId>com.alibaba</groupId>
  112. <artifactId>dashscope-sdk-java</artifactId>
  113. <version>2.11.0</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.projectlombok</groupId>
  117. <artifactId>lombok</artifactId>
  118. <version>1.18.30</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>cn.hutool</groupId>
  122. <artifactId>hutool-all</artifactId>
  123. <version>5.8.37</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.github.xiaoymin</groupId>
  127. <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
  128. <version>4.4.0</version>
  129. </dependency>
  130. <!-- Redisson -->
  131. <dependency>
  132. <groupId>org.redisson</groupId>
  133. <artifactId>redisson</artifactId>
  134. <version>4.3.0</version>
  135. </dependency>
  136. <!-- Kryo Serialization -->
  137. <dependency>
  138. <groupId>com.esotericsoftware</groupId>
  139. <artifactId>kryo</artifactId>
  140. <version>5.6.2</version>
  141. </dependency>
  142. <!-- YAML Support -->
  143. <dependency>
  144. <groupId>com.fasterxml.jackson.dataformat</groupId>
  145. <artifactId>jackson-dataformat-yaml</artifactId>
  146. </dependency>
  147. </dependencies>
  148. <repositories>
  149. <repository>
  150. <id>spring-milestones</id>
  151. <name>Spring Milestones</name>
  152. <url>https://repo.spring.io/milestone</url>
  153. <snapshots>
  154. <enabled>false</enabled>
  155. </snapshots>
  156. </repository>
  157. <repository>
  158. <id>spring-snapshots</id>
  159. <name>Spring Snapshots</name>
  160. <url>https://repo.spring.io/snapshot</url>
  161. <releases>
  162. <enabled>false</enabled>
  163. </releases>
  164. </repository>
  165. <repository>
  166. <name>Central Portal Snapshots</name>
  167. <id>central-portal-snapshots</id>
  168. <url>https://central.sonatype.com/repository/maven-snapshots/</url>
  169. <releases>
  170. <enabled>false</enabled>
  171. </releases>
  172. <snapshots>
  173. <enabled>true</enabled>
  174. </snapshots>
  175. </repository>
  176. </repositories>
  177. <pluginRepositories>
  178. <pluginRepository>
  179. <id>aliyun-plugin</id>
  180. <url>https://maven.aliyun.com/repository/public</url>
  181. </pluginRepository>
  182. <pluginRepository>
  183. <id>spring-milestones</id>
  184. <url>https://repo.spring.io/milestone</url>
  185. </pluginRepository>
  186. </pluginRepositories>
  187. <build>
  188. <plugins>
  189. <plugin>
  190. <groupId>org.apache.maven.plugins</groupId>
  191. <artifactId>maven-compiler-plugin</artifactId>
  192. <configuration>
  193. <annotationProcessorPaths>
  194. <path>
  195. <groupId>org.projectlombok</groupId>
  196. <artifactId>lombok</artifactId>
  197. </path>
  198. </annotationProcessorPaths>
  199. </configuration>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.springframework.boot</groupId>
  203. <artifactId>spring-boot-maven-plugin</artifactId>
  204. <configuration>
  205. <excludes>
  206. <exclude>
  207. <groupId>org.projectlombok</groupId>
  208. <artifactId>lombok</artifactId>
  209. </exclude>
  210. </excludes>
  211. </configuration>
  212. </plugin>
  213. <plugin>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-surefire-plugin</artifactId>
  216. <version>3.5.2</version>
  217. <configuration>
  218. <!-- 移除 javaagent 配置,避免 mockito 依赖问题 -->
  219. </configuration>
  220. </plugin>
  221. </plugins>
  222. </build>
  223. </project>