pom.xml 9.3 KB

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