pom.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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.storlead.boot</groupId>
  8. <artifactId>storlead-centre-platform</artifactId>
  9. <version>${revision}</version>
  10. <relativePath>../pom.xml</relativePath> <!-- 或者默认 -->
  11. </parent>
  12. <artifactId>storlead-centre-api</artifactId>
  13. <packaging>jar</packaging>
  14. <dependencies>
  15. <dependency>
  16. <groupId>com.storlead.boot</groupId>
  17. <artifactId>storlead-web</artifactId>
  18. </dependency>
  19. <dependency>
  20. <groupId>com.storlead.boot</groupId>
  21. <artifactId>storlead-user</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.storlead.boot</groupId>
  25. <artifactId>storlead-sms</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.storlead.boot</groupId>
  29. <artifactId>storlead-wx</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.storlead.boot</groupId>
  33. <artifactId>storlead-mybatis</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.storlead.boot</groupId>
  37. <artifactId>storlead-common</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.storlead.boot</groupId>
  41. <artifactId>storlead-centre-service</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.alibaba</groupId>
  45. <artifactId>fastjson</artifactId>
  46. </dependency>
  47. <!-- 参数校验 -->
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-validation</artifactId>
  51. <optional>true</optional>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springdoc</groupId>
  55. <artifactId>springdoc-openapi-ui</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>io.projectreactor</groupId>
  59. <artifactId>reactor-test</artifactId>
  60. <scope>test</scope>
  61. </dependency>
  62. <!-- Spring Boot WebSocket -->
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-websocket</artifactId>
  66. </dependency>
  67. <!-- Spring Boot WebFlux (响应式编程) -->
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-webflux</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework</groupId>
  74. <artifactId>spring-web</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.baomidou</groupId>
  78. <artifactId>mybatis-plus-generator</artifactId>
  79. <version>3.1.2</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>cn.hutool</groupId>
  83. <artifactId>hutool-all</artifactId>
  84. </dependency>
  85. </dependencies>
  86. <profiles>
  87. <profile>
  88. <id>dev</id>
  89. <properties>
  90. <environment>dev</environment>
  91. </properties>
  92. <activation>
  93. <activeByDefault>true</activeByDefault>
  94. </activation>
  95. </profile>
  96. <profile>
  97. <id>test</id>
  98. <properties>
  99. <environment>test</environment>
  100. </properties>
  101. </profile>
  102. <profile>
  103. <id>prod</id>
  104. <properties>
  105. <environment>prod</environment>
  106. </properties>
  107. </profile>
  108. <profile>
  109. <id>local</id>
  110. <properties>
  111. <environment>local</environment>
  112. </properties>
  113. </profile>
  114. </profiles>
  115. <build>
  116. <finalName>storlead-ai-api</finalName>
  117. <resources>
  118. <resource>
  119. <directory>src/main/resources</directory>
  120. <filtering>true</filtering>
  121. </resource>
  122. <resource>
  123. <directory>src/main/java</directory>
  124. <includes>
  125. <include>**/*.xml</include>
  126. <include>**/*.json</include>
  127. <include>**/*.ftl</include>
  128. <include>**/*.xlsx</include>
  129. <include>templates/**</include>
  130. </includes>
  131. </resource>
  132. <resource>
  133. <directory>src/main/resources</directory>
  134. <filtering>false</filtering>
  135. <includes>
  136. <include>**/*.xlsx</include>
  137. <include>**/*.xls</include>
  138. </includes>
  139. </resource>
  140. </resources>
  141. <plugins>
  142. <!-- spring-boot-maven-plugin必须在proguard混淆后运行,这样它就会获取已经混淆的文件-->
  143. <plugin>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-maven-plugin</artifactId>
  146. <configuration>
  147. <mainClass>com.storlead.centre.SpCentreApplication</mainClass>
  148. <layout>ZIP</layout>
  149. <!--<includes>
  150. &lt;!&ndash; 项目启动jar包中排除依赖包 &ndash;&gt;
  151. <include>
  152. <groupId>non-exists</groupId>
  153. <artifactId>non-exists</artifactId>
  154. </include>
  155. </includes>-->
  156. </configuration>
  157. <executions>
  158. <execution>
  159. <goals>
  160. <goal>repackage</goal>
  161. </goals>
  162. </execution>
  163. </executions>
  164. </plugin>
  165. <!-- 指定JDK编译版本 -->
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-compiler-plugin</artifactId>
  169. <configuration>
  170. <source>17</source>
  171. <target>17</target>
  172. <encoding>UTF-8</encoding>
  173. </configuration>
  174. </plugin>
  175. <plugin>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-surefire-plugin</artifactId>
  178. <configuration>
  179. <skip>true</skip>
  180. </configuration>
  181. </plugin>
  182. <!-- 打包时不压缩xlsx、xls文件避免打包后xlsx、xls文件被损坏 -->
  183. <plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-resources-plugin</artifactId>
  186. <configuration>
  187. <encoding>UTF-8</encoding>
  188. <nonFilteredFileExtensions>
  189. <nonFilteredFileExtension>doc</nonFilteredFileExtension>
  190. <nonFilteredFileExtension>docx</nonFilteredFileExtension>
  191. <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
  192. <nonFilteredFileExtension>xls</nonFilteredFileExtension>
  193. </nonFilteredFileExtensions>
  194. </configuration>
  195. </plugin>
  196. </plugins>
  197. </build>
  198. </project>