pom.xml 8.6 KB

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