pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.kpt</groupId>
  5. <artifactId>kpt-parent</artifactId>
  6. <version>1.0.0</version>
  7. <packaging>pom</packaging>
  8. <name>kpt-parent</name>
  9. <description>SmartAdmin project</description>
  10. <modules>
  11. <module>kpt-common</module>
  12. <module>kpt-admin</module>
  13. </modules>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <java.version>1.8</java.version>
  18. <springboot.version>2.7.5</springboot.version>
  19. <spring-mock.version>2.0.8</spring-mock.version>
  20. <mybatis-plus.version>3.5.2</mybatis-plus.version>
  21. <p6spy.version>3.8.6</p6spy.version>
  22. <swagger.version>2.7.0</swagger.version>
  23. <fastjson.version>2.0.16</fastjson.version>
  24. <druid.version>1.2.14</druid.version>
  25. <google-linkedhashmap.version>1.4.2</google-linkedhashmap.version>
  26. <google-guava.version>20.0</google-guava.version>
  27. <user-agent-utils.version>1.21</user-agent-utils.version>
  28. <kaptcha.version>2.3.2</kaptcha.version>
  29. <reflections.version>0.9.11</reflections.version>
  30. <commons-io.version>2.6</commons-io.version>
  31. <commons-lang3.version>3.12.0</commons-lang3.version>
  32. <commons-collections4.version>4.4</commons-collections4.version>
  33. <commons-codec.version>1.13</commons-codec.version>
  34. <easypoi.version>4.2.0</easypoi.version>
  35. <xerces.version>2.12.0</xerces.version>
  36. <poi-scratchpad.version>4.1.1</poi-scratchpad.version>
  37. <poi-ooxml-schemas.version>1.3</poi-ooxml-schemas.version>
  38. <aws-java-sdk.version>1.11.842</aws-java-sdk.version>
  39. <log4j-spring-boot.version>2.17.2</log4j-spring-boot.version>
  40. <hutool.version>5.7.22</hutool.version>
  41. <velocity-engine-core.version>2.3</velocity-engine-core.version>
  42. <jjwt.version>0.9.1</jjwt.version>
  43. <jwks-rsa.version>0.9.0</jwks-rsa.version>
  44. <velocity-tools.version>3.1</velocity-tools.version>
  45. </properties>
  46. <dependencyManagement>
  47. <dependencies>
  48. <!--BOM begin-->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-dependencies</artifactId>
  52. <version>${springboot.version}</version>
  53. <type>pom</type>
  54. <scope>import</scope>
  55. </dependency>
  56. <!--BOM end-->
  57. <dependency>
  58. <groupId>org.springframework</groupId>
  59. <artifactId>spring-mock</artifactId>
  60. <version>${spring-mock.version}</version>
  61. <exclusions>
  62. <exclusion>
  63. <artifactId>commons-logging</artifactId>
  64. <groupId>commons-logging</groupId>
  65. </exclusion>
  66. </exclusions>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.baomidou</groupId>
  70. <artifactId>mybatis-plus-boot-starter</artifactId>
  71. <version>${mybatis-plus.version}</version>
  72. <exclusions>
  73. <exclusion>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-logging</artifactId>
  76. </exclusion>
  77. </exclusions>
  78. </dependency>
  79. <dependency>
  80. <groupId>p6spy</groupId>
  81. <artifactId>p6spy</artifactId>
  82. <version>${p6spy.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>io.springfox</groupId>
  86. <artifactId>springfox-swagger2</artifactId>
  87. <version>${swagger.version}</version>
  88. <exclusions>
  89. <exclusion>
  90. <artifactId>guava</artifactId>
  91. <groupId>com.google.guava</groupId>
  92. </exclusion>
  93. </exclusions>
  94. </dependency>
  95. <dependency>
  96. <groupId>io.springfox</groupId>
  97. <artifactId>springfox-swagger-ui</artifactId>
  98. <version>${swagger.version}</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>com.alibaba</groupId>
  102. <artifactId>fastjson</artifactId>
  103. <version>${fastjson.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>com.alibaba</groupId>
  107. <artifactId>druid</artifactId>
  108. <version>${druid.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.googlecode.concurrentlinkedhashmap</groupId>
  112. <artifactId>concurrentlinkedhashmap-lru</artifactId>
  113. <version>${google-linkedhashmap.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.google.guava</groupId>
  117. <artifactId>guava</artifactId>
  118. <version>${google-guava.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.github.penggle</groupId>
  122. <artifactId>kaptcha</artifactId>
  123. <version>${kaptcha.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.reflections</groupId>
  127. <artifactId>reflections</artifactId>
  128. <version>${reflections.version}</version>
  129. <exclusions>
  130. <exclusion>
  131. <artifactId>guava</artifactId>
  132. <groupId>com.google.guava</groupId>
  133. </exclusion>
  134. </exclusions>
  135. </dependency>
  136. <dependency>
  137. <groupId>commons-io</groupId>
  138. <artifactId>commons-io</artifactId>
  139. <version>${commons-io.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.apache.commons</groupId>
  143. <artifactId>commons-lang3</artifactId>
  144. <version>${commons-lang3.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.commons</groupId>
  148. <artifactId>commons-collections4</artifactId>
  149. <version>${commons-collections4.version}</version>
  150. </dependency>
  151. <dependency>
  152. <artifactId>commons-codec</artifactId>
  153. <groupId>commons-codec</groupId>
  154. <version>${commons-codec.version}</version>
  155. </dependency>
  156. <!-- poi start -->
  157. <dependency>
  158. <groupId>cn.afterturn</groupId>
  159. <artifactId>easypoi-spring-boot-starter</artifactId>
  160. <version>${easypoi.version}</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>cn.afterturn</groupId>
  164. <artifactId>easypoi-web</artifactId>
  165. <version>${easypoi.version}</version>
  166. <exclusions>
  167. <exclusion>
  168. <artifactId>javassist</artifactId>
  169. <groupId>org.javassist</groupId>
  170. </exclusion>
  171. <exclusion>
  172. <artifactId>guava</artifactId>
  173. <groupId>com.google.guava</groupId>
  174. </exclusion>
  175. </exclusions>
  176. </dependency>
  177. <!-- sax 读取时候用到的 -->
  178. <!-- <dependency>-->
  179. <!-- <groupId>xerces</groupId>-->
  180. <!-- <artifactId>xercesImpl</artifactId>-->
  181. <!-- <version>${xerces.version}</version>-->
  182. <!-- </dependency>-->
  183. <dependency>
  184. <groupId>org.apache.poi</groupId>
  185. <artifactId>poi-scratchpad</artifactId>
  186. <version>${poi-scratchpad.version}</version>
  187. </dependency>
  188. <!-- Word 需要使用 -->
  189. <dependency>
  190. <groupId>com.amazonaws</groupId>
  191. <artifactId>aws-java-sdk-s3</artifactId>
  192. <version>${aws-java-sdk.version}</version>
  193. <exclusions>
  194. <exclusion>
  195. <artifactId>commons-logging</artifactId>
  196. <groupId>commons-logging</groupId>
  197. </exclusion>
  198. </exclusions>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.apache.logging.log4j</groupId>
  202. <artifactId>log4j-spring-boot</artifactId>
  203. <version>${log4j-spring-boot.version}</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>cn.hutool</groupId>
  207. <artifactId>hutool-all</artifactId>
  208. <version>${hutool.version}</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>io.jsonwebtoken</groupId>
  212. <artifactId>jjwt</artifactId>
  213. <version>${jjwt.version}</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>com.auth0</groupId>
  217. <artifactId>jwks-rsa</artifactId>
  218. <version>${jwks-rsa.version}</version>
  219. </dependency>
  220. <!--velocity begin-->
  221. <dependency>
  222. <groupId>org.apache.velocity</groupId>
  223. <artifactId>velocity-engine-core</artifactId>
  224. <version>${velocity-engine-core.version}</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>org.apache.velocity.tools</groupId>
  228. <artifactId>velocity-tools-generic</artifactId>
  229. <version>${velocity-tools.version}</version>
  230. </dependency>
  231. <!--velocity end-->
  232. </dependencies>
  233. </dependencyManagement>
  234. <build>
  235. <finalName>${profiles.active}-${project.name}</finalName>
  236. <resources>
  237. <resource>
  238. <filtering>false</filtering>
  239. <directory>src/main/resources</directory>
  240. <excludes>
  241. <exclude>dev/*</exclude>
  242. <exclude>test/*</exclude>
  243. <exclude>pre/*</exclude>
  244. <exclude>prod/*</exclude>
  245. </excludes>
  246. </resource>
  247. <resource>
  248. <directory>src/main/resources/${profiles.active}</directory>
  249. <filtering>true</filtering>
  250. <includes>
  251. <include>*.yaml</include>
  252. </includes>
  253. </resource>
  254. <resource>
  255. <directory>src/main/resources/${profiles.active}</directory>
  256. <filtering>false</filtering>
  257. <includes>
  258. <include>*.*</include>
  259. </includes>
  260. </resource>
  261. </resources>
  262. <plugins>
  263. <plugin>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-compiler-plugin</artifactId>
  266. <version>3.2</version>
  267. <configuration>
  268. <source>1.8</source>
  269. <target>1.8</target>
  270. <encoding>UTF-8</encoding>
  271. </configuration>
  272. </plugin>
  273. <plugin>
  274. <groupId>org.apache.maven.plugins</groupId>
  275. <artifactId>maven-surefire-plugin</artifactId>
  276. <version>2.16</version>
  277. <configuration>
  278. <testFailureIgnore>true</testFailureIgnore>
  279. <skipTests>true</skipTests>
  280. </configuration>
  281. </plugin>
  282. <plugin>
  283. <groupId>org.springframework.boot</groupId>
  284. <artifactId>spring-boot-maven-plugin</artifactId>
  285. <version>${springboot.version}</version>
  286. </plugin>
  287. </plugins>
  288. </build>
  289. <profiles>
  290. <!--开发环境-->
  291. <profile>
  292. <id>dev</id>
  293. <properties>
  294. <profiles.active>dev</profiles.active>
  295. </properties>
  296. <activation>
  297. <activeByDefault>true</activeByDefault>
  298. </activation>
  299. </profile>
  300. <!--测试环境-->
  301. <profile>
  302. <id>test</id>
  303. <properties>
  304. <profiles.active>test</profiles.active>
  305. </properties>
  306. </profile>
  307. <!--预发布环境-->
  308. <profile>
  309. <id>pre</id>
  310. <properties>
  311. <profiles.active>pre</profiles.active>
  312. </properties>
  313. </profile>
  314. <!--生产环境-->
  315. <profile>
  316. <id>prod</id>
  317. <properties>
  318. <profiles.active>prod</profiles.active>
  319. </properties>
  320. </profile>
  321. </profiles>
  322. </project>