pom.xml 9.7 KB

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