pom.xml 5.3 KB

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