pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. <springdoc.version>2.7.0</springdoc.version>
  21. </properties>
  22. <dependencies>
  23. <!-- Spring Boot Web -->
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-web</artifactId>
  27. </dependency>
  28. <!-- Spring Boot Actuator(健康检查) -->
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-actuator</artifactId>
  32. </dependency>
  33. <!-- Spring AI Ollama -->
  34. <dependency>
  35. <groupId>org.springframework.ai</groupId>
  36. <artifactId>spring-ai-ollama-spring-boot-starter</artifactId>
  37. <version>${spring-ai.version}</version>
  38. </dependency>
  39. <!-- Spring AI Milvus Vector Store -->
  40. <dependency>
  41. <groupId>org.springframework.ai</groupId>
  42. <artifactId>spring-ai-milvus-store-spring-boot-starter</artifactId>
  43. <version>${spring-ai.version}</version>
  44. </dependency>
  45. <!-- Spring AI Tika 文档解析 -->
  46. <dependency>
  47. <groupId>org.springframework.ai</groupId>
  48. <artifactId>spring-ai-tika-document-reader</artifactId>
  49. <version>${spring-ai.version}</version>
  50. </dependency>
  51. <!-- MySQL -->
  52. <dependency>
  53. <groupId>com.mysql</groupId>
  54. <artifactId>mysql-connector-j</artifactId>
  55. <scope>runtime</scope>
  56. </dependency>
  57. <!-- MyBatis-Plus -->
  58. <dependency>
  59. <groupId>com.baomidou</groupId>
  60. <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
  61. <version>3.5.7</version>
  62. </dependency>
  63. <!-- Redis -->
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-data-redis</artifactId>
  67. </dependency>
  68. <!-- Knife4j API 文档(OpenAPI3 + Spring Boot 3.x Jakarta) -->
  69. <dependency>
  70. <groupId>com.github.xiaoymin</groupId>
  71. <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
  72. <version>4.5.0</version>
  73. <exclusions>
  74. <exclusion>
  75. <groupId>org.springdoc</groupId>
  76. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  77. </exclusion>
  78. </exclusions>
  79. </dependency>
  80. <!-- SpringDoc OpenAPI(显式指定兼容版本,覆盖 Knife4j 传递依赖) -->
  81. <dependency>
  82. <groupId>org.springdoc</groupId>
  83. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  84. <version>${springdoc.version}</version>
  85. </dependency>
  86. <!-- Lombok -->
  87. <dependency>
  88. <groupId>org.projectlombok</groupId>
  89. <artifactId>lombok</artifactId>
  90. <optional>true</optional>
  91. </dependency>
  92. <!-- 测试 -->
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-test</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. </dependencies>
  99. <repositories>
  100. <repository>
  101. <id>spring-milestones</id>
  102. <name>Spring Milestones</name>
  103. <url>https://repo.spring.io/milestone</url>
  104. <snapshots>
  105. <enabled>false</enabled>
  106. </snapshots>
  107. </repository>
  108. </repositories>
  109. <build>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.springframework.boot</groupId>
  113. <artifactId>spring-boot-maven-plugin</artifactId>
  114. <configuration>
  115. <excludes>
  116. <exclude>
  117. <groupId>org.projectlombok</groupId>
  118. <artifactId>lombok</artifactId>
  119. </exclude>
  120. </excludes>
  121. </configuration>
  122. </plugin>
  123. </plugins>
  124. </build>
  125. </project>