pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.haha</groupId>
  8. <artifactId>haha-parent</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. <relativePath>../pom.xml</relativePath>
  11. </parent>
  12. <artifactId>haha-admin</artifactId>
  13. <name>haha-admin</name>
  14. <description>运营平台后端</description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starter-actuator</artifactId>
  19. </dependency>
  20. <!-- 企得宝 ERP SDK -->
  21. <dependency>
  22. <groupId>com.qdb</groupId>
  23. <artifactId>qdb-sdk</artifactId>
  24. <version>1.0.0</version>
  25. </dependency>
  26. <!-- 依赖Service模块 -->
  27. <dependency>
  28. <groupId>com.haha</groupId>
  29. <artifactId>haha-service</artifactId>
  30. </dependency>
  31. <!-- Spring Boot 核心依赖 -->
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-web</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-test</artifactId>
  39. <scope>test</scope>
  40. </dependency>
  41. <!-- 数据库相关 -->
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-jdbc</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.mysql</groupId>
  48. <artifactId>mysql-connector-j</artifactId>
  49. </dependency>
  50. <!-- Redis 依赖 -->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-data-redis</artifactId>
  54. </dependency>
  55. <!-- Sa-Token 认证框架 -->
  56. <dependency>
  57. <groupId>cn.dev33</groupId>
  58. <artifactId>sa-token-spring-boot3-starter</artifactId>
  59. </dependency>
  60. <!-- Sa-Token 整合 Redis(使用 jackson 序列化) -->
  61. <dependency>
  62. <groupId>cn.dev33</groupId>
  63. <artifactId>sa-token-redis-jackson</artifactId>
  64. </dependency>
  65. <!-- 提供 Redis 连接池 -->
  66. <dependency>
  67. <groupId>org.apache.commons</groupId>
  68. <artifactId>commons-pool2</artifactId>
  69. </dependency>
  70. <!-- AspectJ AOP -->
  71. <dependency>
  72. <groupId>org.aspectj</groupId>
  73. <artifactId>aspectjweaver</artifactId>
  74. </dependency>
  75. </dependencies>
  76. <build>
  77. <plugins>
  78. <plugin>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-maven-plugin</artifactId>
  81. <configuration>
  82. <mainClass>com.haha.admin.AdminApplication</mainClass>
  83. <excludes>
  84. <exclude>
  85. <groupId>org.projectlombok</groupId>
  86. <artifactId>lombok</artifactId>
  87. </exclude>
  88. </excludes>
  89. </configuration>
  90. <executions>
  91. <execution>
  92. <goals>
  93. <goal>repackage</goal>
  94. </goals>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <plugin>
  99. <groupId>com.github.eirslett</groupId>
  100. <artifactId>frontend-maven-plugin</artifactId>
  101. <version>1.15.0</version>
  102. <configuration>
  103. <workingDirectory>${project.basedir}/../haha-admin-web</workingDirectory>
  104. <installDirectory>${project.build.directory}</installDirectory>
  105. </configuration>
  106. <executions>
  107. <execution>
  108. <id>install node and pnpm</id>
  109. <goals>
  110. <goal>install-node-and-pnpm</goal>
  111. </goals>
  112. <configuration>
  113. <nodeVersion>v20.19.0</nodeVersion>
  114. <pnpmVersion>v9.0.0</pnpmVersion>
  115. </configuration>
  116. </execution>
  117. <execution>
  118. <id>pnpm install</id>
  119. <goals>
  120. <goal>pnpm</goal>
  121. </goals>
  122. <configuration>
  123. <arguments>install</arguments>
  124. </configuration>
  125. </execution>
  126. <execution>
  127. <id>pnpm build</id>
  128. <goals>
  129. <goal>pnpm</goal>
  130. </goals>
  131. <phase>prepare-package</phase>
  132. <configuration>
  133. <arguments>run build</arguments>
  134. </configuration>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-resources-plugin</artifactId>
  141. <version>3.3.1</version>
  142. <executions>
  143. <execution>
  144. <id>copy-frontend-build</id>
  145. <phase>prepare-package</phase>
  146. <goals>
  147. <goal>copy-resources</goal>
  148. </goals>
  149. <configuration>
  150. <outputDirectory>${project.build.outputDirectory}/static</outputDirectory>
  151. <resources>
  152. <resource>
  153. <directory>${project.basedir}/../haha-admin-web/dist</directory>
  154. <includes>
  155. <include>**/*</include>
  156. </includes>
  157. </resource>
  158. </resources>
  159. </configuration>
  160. </execution>
  161. </executions>
  162. </plugin>
  163. </plugins>
  164. </build>
  165. </project>