pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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.4.5</version>
  10. <relativePath/>
  11. </parent>
  12. <groupId>com.rag</groupId>
  13. <artifactId>rag-kb-backend</artifactId>
  14. <version>1.0.0-SNAPSHOT</version>
  15. <name>rag-kb-backend</name>
  16. <description>RAG Knowledge Base Backend - 企业级RAG知识库系统</description>
  17. <properties>
  18. <java.version>25</java.version>
  19. <spring-ai.version>1.0.0-M6</spring-ai.version>
  20. </properties>
  21. <dependencies>
  22. <!-- Spring Boot Web -->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <!-- Spring Boot Actuator(健康检查) -->
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-actuator</artifactId>
  31. </dependency>
  32. <!-- Spring AI Ollama -->
  33. <dependency>
  34. <groupId>org.springframework.ai</groupId>
  35. <artifactId>spring-ai-ollama-spring-boot-starter</artifactId>
  36. <version>${spring-ai.version}</version>
  37. </dependency>
  38. <!-- Spring AI Milvus Vector Store -->
  39. <dependency>
  40. <groupId>org.springframework.ai</groupId>
  41. <artifactId>spring-ai-milvus-store-spring-boot-starter</artifactId>
  42. <version>${spring-ai.version}</version>
  43. </dependency>
  44. <!-- Spring AI Tika 文档解析 -->
  45. <dependency>
  46. <groupId>org.springframework.ai</groupId>
  47. <artifactId>spring-ai-tika-document-reader</artifactId>
  48. <version>${spring-ai.version}</version>
  49. </dependency>
  50. <!-- MySQL -->
  51. <dependency>
  52. <groupId>com.mysql</groupId>
  53. <artifactId>mysql-connector-j</artifactId>
  54. <scope>runtime</scope>
  55. </dependency>
  56. <!-- MyBatis-Plus -->
  57. <dependency>
  58. <groupId>com.baomidou</groupId>
  59. <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
  60. <version>3.5.7</version>
  61. </dependency>
  62. <!-- Redis -->
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-data-redis</artifactId>
  66. </dependency>
  67. <!-- Lombok -->
  68. <dependency>
  69. <groupId>org.projectlombok</groupId>
  70. <artifactId>lombok</artifactId>
  71. <optional>true</optional>
  72. </dependency>
  73. <!-- 测试 -->
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-test</artifactId>
  77. <scope>test</scope>
  78. </dependency>
  79. </dependencies>
  80. <repositories>
  81. <repository>
  82. <id>spring-milestones</id>
  83. <name>Spring Milestones</name>
  84. <url>https://repo.spring.io/milestone</url>
  85. <snapshots>
  86. <enabled>false</enabled>
  87. </snapshots>
  88. </repository>
  89. </repositories>
  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>