pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.medusa.aps</groupId>
  7. <artifactId>aps-system</artifactId>
  8. <version>1.0</version>
  9. </parent>
  10. <artifactId>open-aps-system</artifactId>
  11. <dependencies>
  12. <dependency>
  13. <groupId>com.mysql</groupId>
  14. <artifactId>mysql-connector-j</artifactId>
  15. </dependency>
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starter-aop</artifactId>
  19. </dependency>
  20. <!-- druid datasource -->
  21. <dependency>
  22. <groupId>com.alibaba</groupId>
  23. <artifactId>druid-spring-boot-starter</artifactId>
  24. <version>${druid-spring-boot-starter.version}</version>
  25. </dependency>
  26. <!--knife4j-->
  27. <dependency>
  28. <groupId>com.github.xiaoymin</groupId>
  29. <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
  30. <version>4.1.0</version>
  31. <exclusions>
  32. <exclusion>
  33. <groupId>org.springdoc</groupId>
  34. <artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
  35. </exclusion>
  36. </exclusions>
  37. </dependency>
  38. <!-- 缓存相关 -->
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-cache</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.github.ben-manes.caffeine</groupId>
  45. <artifactId>caffeine</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.commons</groupId>
  49. <artifactId>commons-lang3</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.google.guava</groupId>
  53. <artifactId>guava</artifactId>
  54. <version>${guava.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>commons-codec</groupId>
  58. <artifactId>commons-codec</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-test</artifactId>
  63. <scope>test</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>junit</groupId>
  67. <artifactId>junit</artifactId>
  68. <scope>test</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.baomidou</groupId>
  72. <artifactId>mybatis-plus-annotation</artifactId>
  73. <version>${mybatis-plus.version}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.baomidou</groupId>
  77. <artifactId>mybatis-plus-boot-starter</artifactId>
  78. <version>${mybatis-plus.version}</version>
  79. </dependency>
  80. <!-- 自动装配 -->
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-autoconfigure</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>jakarta.validation</groupId>
  87. <artifactId>jakarta.validation-api</artifactId>
  88. <scope>provided</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework</groupId>
  92. <artifactId>spring-web</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>jakarta.servlet</groupId>
  96. <artifactId>jakarta.servlet-api</artifactId>
  97. <scope>provided</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>cn.hutool</groupId>
  101. <artifactId>hutool-all</artifactId>
  102. <version>${hutool.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.springframework</groupId>
  106. <artifactId>spring-core</artifactId>
  107. <scope>provided</scope>
  108. </dependency>
  109. <!-- 加解密算法支持器 -->
  110. <dependency>
  111. <groupId>org.bouncycastle</groupId>
  112. <artifactId>bcprov-jdk15to18</artifactId>
  113. <version>${bcprov-jdk15to18.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>io.jsonwebtoken</groupId>
  117. <artifactId>jjwt-impl</artifactId>
  118. <version>${jjwt.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.springframework</groupId>
  122. <artifactId>spring-webmvc</artifactId>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.springframework.boot</groupId>
  126. <artifactId>spring-boot-starter-security</artifactId>
  127. </dependency>
  128. <dependency>
  129. <groupId>jakarta.servlet</groupId>
  130. <artifactId>jakarta.servlet-api</artifactId>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.apache.poi</groupId>
  134. <artifactId>poi</artifactId>
  135. <version>${poi.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.apache.poi</groupId>
  139. <artifactId>poi-ooxml</artifactId>
  140. <version>${poi.version}</version>
  141. </dependency>
  142. <!-- 日志 -->
  143. <dependency>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-starter-logging</artifactId>
  146. </dependency>
  147. <!-- 可上下文 延伸的 thread-local-->
  148. <dependency>
  149. <groupId>com.alibaba</groupId>
  150. <artifactId>transmittable-thread-local</artifactId>
  151. <version>${transmittable-thread-local.version}</version>
  152. </dependency>
  153. <!-- vavr -->
  154. <dependency>
  155. <groupId>io.vavr</groupId>
  156. <artifactId>vavr</artifactId>
  157. <version>${vavr.version}</version>
  158. </dependency>
  159. <!-- lombok -->
  160. <dependency>
  161. <groupId>org.projectlombok</groupId>
  162. <artifactId>lombok</artifactId>
  163. <scope>provided</scope>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.google.code.findbugs</groupId>
  167. <artifactId>annotations</artifactId>
  168. <version>${findbugs.version}</version>
  169. </dependency>
  170. <!-- 配置代码提示 -->
  171. <dependency>
  172. <groupId>org.springframework.boot</groupId>
  173. <artifactId>spring-boot-configuration-processor</artifactId>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.jetbrains</groupId>
  177. <artifactId>annotations</artifactId>
  178. <version>13.0</version>
  179. <scope>provided</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.hibernate.validator</groupId>
  183. <artifactId>hibernate-validator</artifactId>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.commons</groupId>
  187. <artifactId>commons-pool2</artifactId>
  188. </dependency>
  189. <dependency>
  190. <groupId>com.alibaba.fastjson2</groupId>
  191. <artifactId>fastjson2</artifactId>
  192. <version>${fastjson2.version}</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>com.alibaba.fastjson2</groupId>
  196. <artifactId>fastjson2-extension-spring6</artifactId>
  197. <version>${fastjson2.version}</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.redisson</groupId>
  201. <artifactId>redisson-spring-boot-starter</artifactId>
  202. <version>${redisson-spring.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.springframework.boot</groupId>
  206. <artifactId>spring-boot-starter-undertow</artifactId>
  207. </dependency>
  208. <dependency>
  209. <groupId>io.undertow</groupId>
  210. <artifactId>undertow-websockets-jsr</artifactId>
  211. <scope>provided</scope>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.springframework.boot</groupId>
  215. <artifactId>spring-boot-starter-validation</artifactId>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.springframework.boot</groupId>
  219. <artifactId>spring-boot-starter-web</artifactId>
  220. <exclusions>
  221. <exclusion>
  222. <groupId>org.springframework.boot</groupId>
  223. <artifactId>spring-boot-starter-tomcat</artifactId>
  224. </exclusion>
  225. <!-- 去掉Jackson依赖,用fastjson2 -->
  226. <exclusion>
  227. <groupId>org.springframework.boot</groupId>
  228. <artifactId>spring-boot-starter-json</artifactId>
  229. </exclusion>
  230. </exclusions>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.springframework.boot</groupId>
  234. <artifactId>spring-boot</artifactId>
  235. <scope>provided</scope>
  236. </dependency>
  237. </dependencies>
  238. <build>
  239. <finalName>${project.artifactId}</finalName>
  240. <resources>
  241. <resource>
  242. <directory>src/main/java</directory>
  243. <includes>
  244. <include>**/*.properties</include>
  245. <include>**/*.xml</include>
  246. </includes>
  247. <filtering>false</filtering>
  248. </resource>
  249. <resource>
  250. <directory>src/main/resources</directory>
  251. <includes>
  252. <include>application.yml</include>
  253. <include>application-${profile.active}.yml</include>
  254. <include>**/*</include>
  255. </includes>
  256. <filtering>false</filtering>
  257. </resource>
  258. </resources>
  259. <plugins>
  260. <plugin>
  261. <groupId>org.springframework.boot</groupId>
  262. <artifactId>spring-boot-maven-plugin</artifactId>
  263. </plugin>
  264. <!--打包跳过测试-->
  265. <plugin>
  266. <groupId>org.apache.maven.plugins</groupId>
  267. <artifactId>maven-surefire-plugin</artifactId>
  268. <configuration>
  269. <skipTests>true</skipTests>
  270. </configuration>
  271. </plugin>
  272. </plugins>
  273. </build>
  274. <profiles>
  275. <profile>
  276. <!-- 本地开发环境 -->
  277. <id>local</id>
  278. <properties>
  279. <profile.active>local</profile.active>
  280. </properties>
  281. <!-- <activation>-->
  282. <!-- <activeByDefault>true</activeByDefault>-->
  283. <!-- </activation>-->
  284. </profile>
  285. <profile>
  286. <!-- 测试环境 -->
  287. <id>preview</id>
  288. <properties>
  289. <profile.active>preview</profile.active>
  290. </properties>
  291. <activation>
  292. <activeByDefault>true</activeByDefault>
  293. </activation>
  294. </profile>
  295. <profile>
  296. <!-- 线上环境 -->
  297. <id>prod</id>
  298. <properties>
  299. <profile.active>prod</profile.active>
  300. </properties>
  301. </profile>
  302. </profiles>
  303. <repositories>
  304. <repository>
  305. <id>nexus-aliyun</id>
  306. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  307. <releases>
  308. <enabled>true</enabled>
  309. </releases>
  310. </repository>
  311. </repositories>
  312. </project>