pom.xml 7.7 KB

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