pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. <groupId>com.zhentao</groupId>
  6. <artifactId>book</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>book</name>
  9. <description>book</description>
  10. <properties>
  11. <java.version>17</java.version>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <spring-boot.version>3.0.2</spring-boot.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-security</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.mysql</groupId>
  27. <artifactId>mysql-connector-j</artifactId>
  28. <scope>runtime</scope>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.projectlombok</groupId>
  32. <artifactId>lombok</artifactId>
  33. <optional>true</optional>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-test</artifactId>
  38. <scope>test</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.security</groupId>
  42. <artifactId>spring-security-test</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. <!-- MyBatis-Plus -->
  46. <dependency>
  47. <groupId>com.baomidou</groupId>
  48. <artifactId>mybatis-plus-boot-starter</artifactId>
  49. <version>3.5.3.1</version>
  50. </dependency>
  51. <!-- JWT -->
  52. <dependency>
  53. <groupId>io.jsonwebtoken</groupId>
  54. <artifactId>jjwt-api</artifactId>
  55. <version>0.11.5</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>io.jsonwebtoken</groupId>
  59. <artifactId>jjwt-impl</artifactId>
  60. <version>0.11.5</version>
  61. <scope>runtime</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>io.jsonwebtoken</groupId>
  65. <artifactId>jjwt-jackson</artifactId>
  66. <version>0.11.5</version>
  67. <scope>runtime</scope>
  68. </dependency>
  69. <!-- 文件上传 -->
  70. <dependency>
  71. <groupId>commons-fileupload</groupId>
  72. <artifactId>commons-fileupload</artifactId>
  73. <version>1.5</version>
  74. </dependency>
  75. <!-- 工具类 -->
  76. <dependency>
  77. <groupId>cn.hutool</groupId>
  78. <artifactId>hutool-all</artifactId>
  79. <version>5.8.18</version>
  80. </dependency>
  81. <!-- 参数校验 -->
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-validation</artifactId>
  85. </dependency>
  86. <!-- MongoDB -->
  87. <dependency>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-starter-data-mongodb</artifactId>
  90. </dependency>
  91. <!-- HTTP客户端(用于调用Ollama API) -->
  92. <dependency>
  93. <groupId>com.squareup.okhttp3</groupId>
  94. <artifactId>okhttp</artifactId>
  95. <version>4.12.0</version>
  96. </dependency>
  97. </dependencies>
  98. <dependencyManagement>
  99. <dependencies>
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-dependencies</artifactId>
  103. <version>${spring-boot.version}</version>
  104. <type>pom</type>
  105. <scope>import</scope>
  106. </dependency>
  107. </dependencies>
  108. </dependencyManagement>
  109. <build>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-compiler-plugin</artifactId>
  114. <version>3.8.1</version>
  115. <configuration>
  116. <source>17</source>
  117. <target>17</target>
  118. <encoding>UTF-8</encoding>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-maven-plugin</artifactId>
  124. <version>${spring-boot.version}</version>
  125. <configuration>
  126. <mainClass>com.zhentao.BookApplication</mainClass>
  127. <skip>true</skip>
  128. </configuration>
  129. <executions>
  130. <execution>
  131. <id>repackage</id>
  132. <goals>
  133. <goal>repackage</goal>
  134. </goals>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. </plugins>
  139. </build>
  140. </project>