pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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>4.1.1</version>
  10. <relativePath/>
  11. </parent>
  12. <groupId>cn.yoshop</groupId>
  13. <artifactId>yoshop-java</artifactId>
  14. <version>2.0.0-SNAPSHOT</version>
  15. <name>yoshop-java</name>
  16. <description>萤火商城 2.0 Java 重写版(对齐 PHP 接口契约)</description>
  17. <properties>
  18. <java.version>21</java.version>
  19. <mybatis-plus.version>3.5.17</mybatis-plus.version>
  20. <hutool.version>5.8.27</hutool.version>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-validation</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-data-redis</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.baomidou</groupId>
  37. <artifactId>mybatis-plus-spring-boot4-starter</artifactId>
  38. <version>${mybatis-plus.version}</version>
  39. </dependency>
  40. <!-- 3.5.9 起分页插件(PaginationInnerInterceptor)拆到独立模块,要单独引入 -->
  41. <dependency>
  42. <groupId>com.baomidou</groupId>
  43. <artifactId>mybatis-plus-jsqlparser</artifactId>
  44. <version>${mybatis-plus.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.mysql</groupId>
  48. <artifactId>mysql-connector-j</artifactId>
  49. <scope>runtime</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>cn.hutool</groupId>
  53. <artifactId>hutool-all</artifactId>
  54. <version>${hutool.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.projectlombok</groupId>
  58. <artifactId>lombok</artifactId>
  59. <optional>true</optional>
  60. </dependency>
  61. <!-- 仅用于校验 PHP password_hash 生成的 bcrypt 口令($2y$),不引入完整 security starter -->
  62. <dependency>
  63. <groupId>org.springframework.security</groupId>
  64. <artifactId>spring-security-crypto</artifactId>
  65. </dependency>
  66. <!-- 订单导出 Excel(对齐 PHP 端 PhpSpreadsheet 的 xlsx 输出) -->
  67. <dependency>
  68. <groupId>org.apache.poi</groupId>
  69. <artifactId>poi-ooxml</artifactId>
  70. <version>5.4.1</version>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <plugins>
  75. <plugin>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-maven-plugin</artifactId>
  78. </plugin>
  79. <!-- Spring Boot 4 的 compiler 插件不再从 classpath 自动发现注解处理器,
  80. 需显式声明 Lombok,否则 @Data/@Getter 不生成方法 -->
  81. <plugin>
  82. <groupId>org.apache.maven.plugins</groupId>
  83. <artifactId>maven-compiler-plugin</artifactId>
  84. <configuration>
  85. <annotationProcessorPaths>
  86. <path>
  87. <groupId>org.projectlombok</groupId>
  88. <artifactId>lombok</artifactId>
  89. <version>${lombok.version}</version>
  90. </path>
  91. </annotationProcessorPaths>
  92. </configuration>
  93. </plugin>
  94. </plugins>
  95. </build>
  96. </project>