pom.xml 7.5 KB

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