pom.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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>2.7.18</version>
  10. <relativePath/>
  11. </parent>
  12. <groupId>com.singsong</groupId>
  13. <artifactId>singsong-server</artifactId>
  14. <version>1.0.0</version>
  15. <name>singsong-server</name>
  16. <description>三松礼品产品库后端</description>
  17. <properties>
  18. <java.version>8</java.version>
  19. <poi.version>5.4.1</poi.version>
  20. <h2.version>2.3.232</h2.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-data-jpa</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-validation</artifactId>
  34. </dependency>
  35. <!-- PostgreSQL 生产驱动 -->
  36. <dependency>
  37. <groupId>org.postgresql</groupId>
  38. <artifactId>postgresql</artifactId>
  39. <scope>runtime</scope>
  40. </dependency>
  41. <!-- H2 开发数据库(PostgreSQL 兼容模式) -->
  42. <dependency>
  43. <groupId>com.h2database</groupId>
  44. <artifactId>h2</artifactId>
  45. <version>${h2.version}</version>
  46. <scope>runtime</scope>
  47. </dependency>
  48. <!-- Flyway 迁移 -->
  49. <dependency>
  50. <groupId>org.flywaydb</groupId>
  51. <artifactId>flyway-core</artifactId>
  52. </dependency>
  53. <!-- Excel 导出(Java 8 兼容) -->
  54. <dependency>
  55. <groupId>org.apache.poi</groupId>
  56. <artifactId>poi-ooxml</artifactId>
  57. <version>${poi.version}</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.projectlombok</groupId>
  61. <artifactId>lombok</artifactId>
  62. <optional>true</optional>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-test</artifactId>
  67. <scope>test</scope>
  68. </dependency>
  69. </dependencies>
  70. <build>
  71. <finalName>singsong-server</finalName>
  72. <plugins>
  73. <plugin>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-maven-plugin</artifactId>
  76. <configuration>
  77. <excludes>
  78. <exclude>
  79. <groupId>org.projectlombok</groupId>
  80. <artifactId>lombok</artifactId>
  81. </exclude>
  82. </excludes>
  83. </configuration>
  84. </plugin>
  85. </plugins>
  86. </build>
  87. </project>