pom.xml 9.1 KB

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