pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. <!-- 文件操作 -->
  66. <dependency>
  67. <groupId>commons-io</groupId>
  68. <artifactId>commons-io</artifactId>
  69. <version>2.18.0</version>
  70. </dependency>
  71. <!-- ZIP 压缩/解压 -->
  72. <dependency>
  73. <groupId>org.apache.commons</groupId>
  74. <artifactId>commons-compress</artifactId>
  75. <version>1.26.2</version>
  76. </dependency>
  77. <!-- Lombok -->
  78. <dependency>
  79. <groupId>org.projectlombok</groupId>
  80. <artifactId>lombok</artifactId>
  81. <optional>true</optional>
  82. </dependency>
  83. <!-- 测试 -->
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-test</artifactId>
  87. <scope>test</scope>
  88. </dependency>
  89. </dependencies>
  90. <build>
  91. <plugins>
  92. <plugin>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-maven-plugin</artifactId>
  95. <configuration>
  96. <excludes>
  97. <exclude>
  98. <groupId>org.projectlombok</groupId>
  99. <artifactId>lombok</artifactId>
  100. </exclude>
  101. </excludes>
  102. </configuration>
  103. </plugin>
  104. </plugins>
  105. </build>
  106. </project>