pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.gyee</groupId>
  5. <artifactId>gyee-exam-api</artifactId>
  6. <packaging>jar</packaging>
  7. <version>1.0</version>
  8. <name>gyee-exam-api</name>
  9. <parent>
  10. <groupId>org.springframework.boot</groupId>
  11. <artifactId>spring-boot-starter-parent</artifactId>
  12. <version>2.1.4.RELEASE</version>
  13. </parent>
  14. <properties>
  15. <fastjson.version>1.2.83</fastjson.version>
  16. <oss.version>3.7.0</oss.version>
  17. <aliyun.sdk.version>4.4.9</aliyun.sdk.version>
  18. <swagger.version>2.9.2</swagger.version>
  19. <dozer.version>5.5.1</dozer.version>
  20. <apache.commons.version>3.8</apache.commons.version>
  21. <mysql.driver.version>8.0.11</mysql.driver.version>
  22. <mybatis-plus.version>3.3.2</mybatis-plus.version>
  23. <lombok.version>1.18.4</lombok.version>
  24. <thymeleaf.version>3.0.11.RELEASE</thymeleaf.version>
  25. <alicloud.version>2.1.1.RELEASE</alicloud.version>
  26. <poi.version>4.1.2</poi.version>
  27. <log4j2.version>2.16.0</log4j2.version>
  28. <shiro.version>1.8.0</shiro.version>
  29. </properties>
  30. <!-- 设定仓库 -->
  31. <repositories>
  32. <repository>
  33. <id>aliyun-repos</id>
  34. <url>https://maven.aliyun.com/repository/public</url>
  35. <releases>
  36. <enabled>true</enabled>
  37. </releases>
  38. <snapshots>
  39. <enabled>false</enabled>
  40. </snapshots>
  41. </repository>
  42. <repository>
  43. <id>sonatype-repos-s</id>
  44. <name>Sonatype Repository</name>
  45. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  46. <releases>
  47. <enabled>false</enabled>
  48. </releases>
  49. <snapshots>
  50. <enabled>false</enabled>
  51. </snapshots>
  52. </repository>
  53. </repositories>
  54. <pluginRepositories>
  55. <pluginRepository>
  56. <id>aliyun-repos</id>
  57. <url>https://maven.aliyun.com/repository/public</url>
  58. </pluginRepository>
  59. </pluginRepositories>
  60. <dependencies>
  61. <dependency>
  62. <groupId>org.aspectj</groupId>
  63. <artifactId>aspectjweaver</artifactId>
  64. <version>1.9.5</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.alibaba</groupId>
  68. <artifactId>fastjson</artifactId>
  69. <version>${fastjson.version}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>net.sf.dozer</groupId>
  73. <artifactId>dozer</artifactId>
  74. <version>${dozer.version}</version>
  75. <exclusions>
  76. <exclusion>
  77. <groupId>commons-collections</groupId>
  78. <artifactId>commons-collections</artifactId>
  79. </exclusion>
  80. <exclusion>
  81. <groupId>org.slf4j</groupId>
  82. <artifactId>slf4j-api</artifactId>
  83. </exclusion>
  84. </exclusions>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.baomidou</groupId>
  88. <artifactId>mybatis-plus</artifactId>
  89. <version>${mybatis-plus.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.baomidou</groupId>
  93. <artifactId>mybatis-plus-boot-starter</artifactId>
  94. <version>${mybatis-plus.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>mysql</groupId>
  98. <artifactId>mysql-connector-java</artifactId>
  99. <version>${mysql.driver.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.dom4j</groupId>
  103. <artifactId>dom4j</artifactId>
  104. <version>2.1.1</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>io.springfox</groupId>
  108. <artifactId>springfox-swagger2</artifactId>
  109. <version>${swagger.version}</version>
  110. <exclusions>
  111. <exclusion>
  112. <groupId>org.slf4j</groupId>
  113. <artifactId>slf4j-api</artifactId>
  114. </exclusion>
  115. </exclusions>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.github.xiaoymin</groupId>
  119. <artifactId>knife4j-spring-ui</artifactId>
  120. <version>2.0.9</version>
  121. </dependency>
  122. <!-- poi office -->
  123. <dependency>
  124. <groupId>org.apache.poi</groupId>
  125. <artifactId>poi</artifactId>
  126. <version>${poi.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.apache.poi</groupId>
  130. <artifactId>poi-ooxml</artifactId>
  131. <version>${poi.version}</version>
  132. </dependency>
  133. <!--JWT-->
  134. <dependency>
  135. <groupId>com.auth0</groupId>
  136. <artifactId>java-jwt</artifactId>
  137. <version>3.7.0</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.httpcomponents</groupId>
  141. <artifactId>httpclient</artifactId>
  142. <version>4.4.1</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>com.fasterxml.jackson.core</groupId>
  146. <artifactId>jackson-core</artifactId>
  147. <version>2.9.8</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>com.fasterxml.jackson.core</groupId>
  151. <artifactId>jackson-databind</artifactId>
  152. <version>2.9.8</version>
  153. </dependency>
  154. <!-- WEB支持 -->
  155. <dependency>
  156. <groupId>org.springframework.boot</groupId>
  157. <artifactId>spring-boot-starter-web</artifactId>
  158. </dependency>
  159. <!-- 缓存支持 -->
  160. <dependency>
  161. <groupId>org.springframework.boot</groupId>
  162. <artifactId>spring-boot-starter-cache</artifactId>
  163. </dependency>
  164. <!-- SpringBoot Redis支持 -->
  165. <dependency>
  166. <groupId>org.springframework.boot</groupId>
  167. <artifactId>spring-boot-starter-data-redis</artifactId>
  168. </dependency>
  169. <!--spring quartz依赖-->
  170. <dependency>
  171. <groupId>org.springframework.boot</groupId>
  172. <artifactId>spring-boot-starter-quartz</artifactId>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.projectlombok</groupId>
  176. <artifactId>lombok</artifactId>
  177. <version>${lombok.version}</version>
  178. <scope>provided</scope>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.springframework.boot</groupId>
  182. <artifactId>spring-boot-starter-test</artifactId>
  183. <scope>test</scope>
  184. </dependency>
  185. <!--shiro-->
  186. <dependency>
  187. <groupId>org.apache.shiro</groupId>
  188. <artifactId>shiro-spring-boot-starter</artifactId>
  189. <version>${shiro.version}</version>
  190. </dependency>
  191. <!-- shiro-redis -->
  192. <dependency>
  193. <groupId>org.crazycake</groupId>
  194. <artifactId>shiro-redis</artifactId>
  195. <version>3.1.0</version>
  196. <exclusions>
  197. <exclusion>
  198. <groupId>org.apache.shiro</groupId>
  199. <artifactId>shiro-core</artifactId>
  200. </exclusion>
  201. <exclusion>
  202. <artifactId>guava</artifactId>
  203. <groupId>com.google.guava</groupId>
  204. </exclusion>
  205. </exclusions>
  206. </dependency>
  207. <!-- 文件转换,通过OpenOffice或LibreOffice来转换 -->
  208. <dependency>
  209. <groupId>org.jodconverter</groupId>
  210. <artifactId>jodconverter-core</artifactId>
  211. <version>4.4.2</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.jodconverter</groupId>
  215. <artifactId>jodconverter-spring-boot-starter</artifactId>
  216. <version>4.4.2</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.jodconverter</groupId>
  220. <artifactId>jodconverter-local</artifactId>
  221. <version>4.4.2</version>
  222. </dependency>
  223. <!-- WebSocket用于文件阅读 -->
  224. <dependency>
  225. <groupId>org.springframework.boot</groupId>
  226. <artifactId>spring-boot-starter-websocket</artifactId>
  227. </dependency>
  228. <dependency>
  229. <groupId>com.aliyun</groupId>
  230. <artifactId>aliyun-java-sdk-core</artifactId>
  231. <version>4.4.9</version>
  232. </dependency>
  233. <!-- OSS文件上传及文档转换 -->
  234. <dependency>
  235. <groupId>com.aliyun.oss</groupId>
  236. <artifactId>aliyun-sdk-oss</artifactId>
  237. <version>${oss.version}</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>com.aliyun</groupId>
  241. <artifactId>aliyun-java-sdk-imm</artifactId>
  242. <version>1.22.0</version>
  243. </dependency>
  244. <!-- 阿里云视频转码 -->
  245. <dependency>
  246. <groupId>com.aliyun</groupId>
  247. <artifactId>aliyun-java-sdk-mts</artifactId>
  248. <version>2.5.2</version>
  249. </dependency>
  250. <!-- 直播SDK -->
  251. <dependency>
  252. <groupId>com.aliyun</groupId>
  253. <artifactId>aliyun-java-sdk-live</artifactId>
  254. <version>3.9.0</version>
  255. </dependency>
  256. <!-- 腾讯云 -->
  257. <dependency>
  258. <groupId>com.qcloud</groupId>
  259. <artifactId>cos_api</artifactId>
  260. <version>5.6.52</version>
  261. </dependency>
  262. <dependency>
  263. <groupId>com.qcloud</groupId>
  264. <artifactId>cos-sts_api</artifactId>
  265. <version>3.1.0</version>
  266. </dependency>
  267. <!-- 七牛云 -->
  268. <dependency>
  269. <groupId>com.qiniu</groupId>
  270. <artifactId>qiniu-java-sdk</artifactId>
  271. <version>[7.4.0, 7.4.99]</version>
  272. </dependency>
  273. <!-- 图形验证码 -->
  274. <dependency>
  275. <groupId>com.github.whvcse</groupId>
  276. <artifactId>easy-captcha</artifactId>
  277. <version>1.6.2</version>
  278. </dependency>
  279. <dependency>
  280. <groupId>com.aliyun</groupId>
  281. <artifactId>dysmsapi20170525</artifactId>
  282. <version>2.0.1</version>
  283. </dependency>
  284. <dependency>
  285. <groupId>com.alibaba</groupId>
  286. <artifactId>druid-spring-boot-starter</artifactId>
  287. <version>1.2.6</version>
  288. </dependency>
  289. <dependency>
  290. <groupId>commons-io</groupId>
  291. <artifactId>commons-io</artifactId>
  292. <version>2.11.0</version>
  293. </dependency>
  294. <!-- 阿里云人脸认证 start -->
  295. <dependency>
  296. <groupId>com.aliyun</groupId>
  297. <artifactId>tea-openapi</artifactId>
  298. <version>0.0.19</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>com.aliyun</groupId>
  302. <artifactId>facebody20191230</artifactId>
  303. <version>1.0.19</version>
  304. </dependency>
  305. <!-- 用于上传临时文件的 -->
  306. <dependency>
  307. <groupId>com.aliyun</groupId>
  308. <artifactId>viapi-utils</artifactId>
  309. <version>1.0.1</version>
  310. </dependency>
  311. <dependency>
  312. <groupId>com.aliyun</groupId>
  313. <artifactId>aliyun-java-sdk-viapiutils</artifactId>
  314. <version>1.0.0</version>
  315. </dependency>
  316. <!-- 阿里云人脸认证 end -->
  317. <!-- 百度人脸认证 start -->
  318. <dependency>
  319. <groupId>com.baidu.aip</groupId>
  320. <artifactId>java-sdk</artifactId>
  321. <version>4.16.2</version>
  322. <exclusions>
  323. <exclusion>
  324. <artifactId>slf4j-simple</artifactId>
  325. <groupId>org.slf4j</groupId>
  326. </exclusion>
  327. </exclusions>
  328. </dependency>
  329. <!-- 百度人脸认证 end -->
  330. <!-- 微信支付 start -->
  331. <dependency>
  332. <groupId>com.github.wechatpay-apiv3</groupId>
  333. <artifactId>wechatpay-apache-httpclient</artifactId>
  334. <version>0.2.2</version>
  335. </dependency>
  336. <!-- 微信支付 end -->
  337. <!-- 支付宝支付 start -->
  338. <dependency>
  339. <groupId>com.alipay.sdk</groupId>
  340. <artifactId>alipay-sdk-java</artifactId>
  341. <version>4.16.11.ALL</version>
  342. </dependency>
  343. <!-- 支付宝支付 end -->
  344. <!-- 腾讯云人脸识别 -->
  345. <dependency>
  346. <groupId>com.tencentcloudapi</groupId>
  347. <artifactId>tencentcloud-sdk-java-iai</artifactId>
  348. <version>3.1.471</version>
  349. </dependency>
  350. <!-- 通用工具包 -->
  351. <dependency>
  352. <groupId>cn.hutool</groupId>
  353. <artifactId>hutool-poi</artifactId>
  354. <version>5.7.17</version>
  355. </dependency>
  356. <!-- 证书模板 -->
  357. <dependency>
  358. <groupId>com.deepoove</groupId>
  359. <artifactId>poi-tl</artifactId>
  360. <version>1.10.0</version>
  361. </dependency>
  362. <!-- 文件工具获取MineType -->
  363. <dependency>
  364. <groupId>org.apache.tika</groupId>
  365. <artifactId>tika-core</artifactId>
  366. <version>2.4.0</version>
  367. </dependency>
  368. <!-- 获取视频时长 -->
  369. <dependency>
  370. <groupId>com.googlecode.mp4parser</groupId>
  371. <artifactId>isoparser</artifactId>
  372. <version>1.1.22</version>
  373. </dependency>
  374. </dependencies>
  375. <build>
  376. <finalName>${project.name}</finalName>
  377. <defaultGoal>compile</defaultGoal>
  378. <plugins>
  379. <plugin>
  380. <groupId>org.apache.maven.plugins</groupId>
  381. <artifactId>maven-dependency-plugin</artifactId>
  382. <version>3.1.2</version>
  383. <executions>
  384. <execution>
  385. <id>copy-dependencies</id>
  386. <phase>package</phase>
  387. <goals>
  388. <goal>copy-dependencies</goal>
  389. </goals>
  390. <configuration>
  391. <!-- 拷贝项目依赖包到libs/目录下 -->
  392. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  393. <!-- 间接依赖也拷贝 -->
  394. <excludeTransitive>false</excludeTransitive>
  395. <!-- 带上版本号 -->
  396. <stripVersion>false</stripVersion>
  397. </configuration>
  398. </execution>
  399. </executions>
  400. </plugin>
  401. <plugin>
  402. <groupId>org.springframework.boot</groupId>
  403. <artifactId>spring-boot-maven-plugin</artifactId>
  404. <version>2.1.4.RELEASE</version>
  405. <executions>
  406. <execution>
  407. <goals>
  408. <goal>repackage</goal>
  409. </goals>
  410. </execution>
  411. </executions>
  412. <configuration>
  413. <layout>ZIP</layout>
  414. <includeSystemScope>true</includeSystemScope>
  415. <!-- 调试或者完整打包注释以下内容 -->
  416. <!-- <includes>-->
  417. <!-- <include>-->
  418. <!-- <groupId>non-exists</groupId>-->
  419. <!-- <artifactId>non-exists</artifactId>-->
  420. <!-- </include>-->
  421. <!-- </includes>-->
  422. </configuration>
  423. </plugin>
  424. <plugin>
  425. <groupId>org.apache.maven.plugins</groupId>
  426. <artifactId>maven-compiler-plugin</artifactId>
  427. <version>3.7.0</version>
  428. <configuration>
  429. <source>1.8</source>
  430. <target>1.8</target>
  431. <encoding>UTF-8</encoding>
  432. </configuration>
  433. </plugin>
  434. <plugin>
  435. <groupId>org.apache.maven.plugins</groupId>
  436. <artifactId>maven-surefire-plugin</artifactId>
  437. <version>2.22.1</version>
  438. <configuration>
  439. <skipTests>true</skipTests>
  440. </configuration>
  441. </plugin>
  442. <plugin>
  443. <groupId>com.spotify</groupId>
  444. <artifactId>dockerfile-maven-plugin</artifactId>
  445. <version>1.4.12</version>
  446. <configuration>
  447. <!-- 阿里镜像仓库 -->
  448. <repository>${project.build.finalName}</repository>
  449. <buildArgs>
  450. <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
  451. </buildArgs>
  452. </configuration>
  453. </plugin>
  454. </plugins>
  455. </build>
  456. </project>