pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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
  5. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  6. <modelVersion>4.0.0</modelVersion>
  7. <parent>
  8. <groupId>org.springframework.boot</groupId>
  9. <artifactId>spring-boot-starter-parent</artifactId>
  10. <version>2.7.18</version>
  11. <relativePath/>
  12. </parent>
  13. <groupId>com.snapshot</groupId>
  14. <artifactId>snapshot-backend</artifactId>
  15. <version>1.0.0</version>
  16. <name>Snapshot Backend</name>
  17. <description>临时文件分享平台后端服务</description>
  18. <properties>
  19. <java.version>17</java.version>
  20. <maven.compiler.source>17</maven.compiler.source>
  21. <maven.compiler.target>17</maven.compiler.target>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  24. </properties>
  25. <dependencies>
  26. <!-- Spring Boot Web Starter -->
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-web</artifactId>
  30. </dependency>
  31. <!-- Spring Boot JPA -->
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-data-jpa</artifactId>
  35. </dependency>
  36. <!-- MyBatis Spring Boot Starter -->
  37. <dependency>
  38. <groupId>org.mybatis.spring.boot</groupId>
  39. <artifactId>mybatis-spring-boot-starter</artifactId>
  40. <version>2.3.2</version>
  41. </dependency>
  42. <!-- Spring Boot Validation -->
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-validation</artifactId>
  46. </dependency>
  47. <!-- MySQL Driver -->
  48. <dependency>
  49. <groupId>mysql</groupId>
  50. <artifactId>mysql-connector-java</artifactId>
  51. <version>8.0.33</version>
  52. </dependency>
  53. <!-- SQLite JDBC Driver -->
  54. <dependency>
  55. <groupId>org.xerial</groupId>
  56. <artifactId>sqlite-jdbc</artifactId>
  57. <version>3.45.1.0</version>
  58. </dependency>
  59. <!-- HikariCP Connection Pool -->
  60. <dependency>
  61. <groupId>com.zaxxer</groupId>
  62. <artifactId>HikariCP</artifactId>
  63. </dependency>
  64. <!-- Lombok -->
  65. <dependency>
  66. <groupId>org.projectlombok</groupId>
  67. <artifactId>lombok</artifactId>
  68. <optional>true</optional>
  69. </dependency>
  70. <!-- Apache Commons Lang3 -->
  71. <dependency>
  72. <groupId>org.apache.commons</groupId>
  73. <artifactId>commons-lang3</artifactId>
  74. </dependency>
  75. <!-- Apache Commons Codec (for hashing) -->
  76. <dependency>
  77. <groupId>commons-codec</groupId>
  78. <artifactId>commons-codec</artifactId>
  79. </dependency>
  80. <!-- Spring Boot Test -->
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-test</artifactId>
  84. <scope>test</scope>
  85. </dependency>
  86. <!-- JSON Web Token (optional, for future authentication) -->
  87. <dependency>
  88. <groupId>io.jsonwebtoken</groupId>
  89. <artifactId>jjwt-api</artifactId>
  90. <version>0.11.5</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>io.jsonwebtoken</groupId>
  94. <artifactId>jjwt-impl</artifactId>
  95. <version>0.11.5</version>
  96. <scope>runtime</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>io.jsonwebtoken</groupId>
  100. <artifactId>jjwt-jackson</artifactId>
  101. <version>0.11.5</version>
  102. <scope>runtime</scope>
  103. </dependency>
  104. </dependencies>
  105. <build>
  106. <plugins>
  107. <!-- Spring Boot Maven Plugin -->
  108. <plugin>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-maven-plugin</artifactId>
  111. <configuration>
  112. <excludes>
  113. <exclude>
  114. <groupId>org.projectlombok</groupId>
  115. <artifactId>lombok</artifactId>
  116. </exclude>
  117. </excludes>
  118. </configuration>
  119. </plugin>
  120. <!-- Maven Compiler Plugin -->
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-compiler-plugin</artifactId>
  124. <configuration>
  125. <source>17</source>
  126. <target>17</target>
  127. <encoding>UTF-8</encoding>
  128. </configuration>
  129. </plugin>
  130. </plugins>
  131. </build>
  132. </project>