pom.xml 8.5 KB

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