pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. <!-- Boot 4 起 spring-boot-starter-web 已废弃,官方推荐名称为 spring-boot-starter-webmvc -->
  26. <artifactId>spring-boot-starter-webmvc</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-validation</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-data-redis</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.baomidou</groupId>
  38. <artifactId>mybatis-plus-spring-boot4-starter</artifactId>
  39. <version>${mybatis-plus.version}</version>
  40. </dependency>
  41. <!-- 3.5.9 起分页插件(PaginationInnerInterceptor)拆到独立模块,要单独引入 -->
  42. <dependency>
  43. <groupId>com.baomidou</groupId>
  44. <artifactId>mybatis-plus-jsqlparser</artifactId>
  45. <version>${mybatis-plus.version}</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.mysql</groupId>
  49. <artifactId>mysql-connector-j</artifactId>
  50. <scope>runtime</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>cn.hutool</groupId>
  54. <artifactId>hutool-all</artifactId>
  55. <version>${hutool.version}</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.projectlombok</groupId>
  59. <artifactId>lombok</artifactId>
  60. <optional>true</optional>
  61. </dependency>
  62. <!-- 仅用于校验 PHP password_hash 生成的 bcrypt 口令($2y$),不引入完整 security starter -->
  63. <dependency>
  64. <groupId>org.springframework.security</groupId>
  65. <artifactId>spring-security-crypto</artifactId>
  66. </dependency>
  67. <!-- 订单导出 Excel(对齐 PHP 端 PhpSpreadsheet 的 xlsx 输出) -->
  68. <dependency>
  69. <groupId>org.apache.poi</groupId>
  70. <artifactId>poi-ooxml</artifactId>
  71. <version>5.4.1</version>
  72. </dependency>
  73. </dependencies>
  74. <build>
  75. <plugins>
  76. <plugin>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-maven-plugin</artifactId>
  79. </plugin>
  80. <!-- Spring Boot 4 的 compiler 插件不再从 classpath 自动发现注解处理器,
  81. 需显式声明 Lombok,否则 @Data/@Getter 不生成方法 -->
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-compiler-plugin</artifactId>
  85. <configuration>
  86. <annotationProcessorPaths>
  87. <path>
  88. <groupId>org.projectlombok</groupId>
  89. <artifactId>lombok</artifactId>
  90. <version>${lombok.version}</version>
  91. </path>
  92. </annotationProcessorPaths>
  93. </configuration>
  94. </plugin>
  95. </plugins>
  96. </build>
  97. </project>