pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.sqx</groupId>
  6. <artifactId>zhaopin</artifactId>
  7. <version>3.0.0</version>
  8. <packaging>jar</packaging>
  9. <description>zhaopin</description>
  10. <parent>
  11. <groupId>org.springframework.boot</groupId>
  12. <artifactId>spring-boot-starter-parent</artifactId>
  13. <version>2.6.11</version>
  14. </parent>
  15. <properties>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  18. <java.version>1.8</java.version>
  19. <mybatisplus.version>3.2.0</mybatisplus.version>
  20. <mysql.version>8.0.17</mysql.version>
  21. <mssql.version>4.0</mssql.version>
  22. <oracle.version>11.2.0.3</oracle.version>
  23. <druid.version>1.1.13</druid.version>
  24. <quartz.version>2.3.0</quartz.version>
  25. <commons.lang.version>2.6</commons.lang.version>
  26. <commons.fileupload.version>1.2.2</commons.fileupload.version>
  27. <commons.io.version>2.5</commons.io.version>
  28. <commons.codec.version>1.10</commons.codec.version>
  29. <commons.configuration.version>1.10</commons.configuration.version>
  30. <shiro.version>1.10.1</shiro.version>
  31. <jwt.version>0.7.0</jwt.version>
  32. <kaptcha.version>0.0.9</kaptcha.version>
  33. <qiniu.version>7.2.23</qiniu.version>
  34. <aliyun.oss.version>3.4.0</aliyun.oss.version>
  35. <qcloud.cos.version>4.4</qcloud.cos.version>
  36. <swagger.version>2.7.0</swagger.version>
  37. <joda.time.version>2.9.9</joda.time.version>
  38. <gson.version>2.8.5</gson.version>
  39. <fastjson.version>1.2.83</fastjson.version>
  40. <hutool.version>4.1.1</hutool.version>
  41. <lombok.version>1.18.4</lombok.version>
  42. <!--wagon plugin 配置-->
  43. <!--<service-path>/work/sz</service-path>
  44. <pack-name>${project.artifactId}-${project.version}.jar</pack-name>
  45. <remote-addr>192.168.1.10:22</remote-addr>
  46. <remote-username>root</remote-username>
  47. <remote-passwd>123456</remote-passwd>-->
  48. </properties>
  49. <dependencies>
  50. <dependency>
  51. <groupId>com.tencentcloudapi</groupId>
  52. <artifactId>tencentcloud-sdk-java-trtc</artifactId>
  53. <version>3.1.918</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>activation</groupId>
  57. <artifactId>email</artifactId>
  58. <version>20220902</version>
  59. <scope>system</scope>
  60. <systemPath>${project.basedir}/lib/activation.jar</systemPath>
  61. </dependency>
  62. <dependency>
  63. <groupId>mail</groupId>
  64. <artifactId>email</artifactId>
  65. <version>20220902</version>
  66. <scope>system</scope>
  67. <systemPath>${project.basedir}/lib/mail.jar</systemPath>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.hibernate.validator</groupId>
  71. <artifactId>hibernate-validator</artifactId>
  72. <version>6.2.3.Final</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>net.dreamlu</groupId>
  76. <artifactId>mica-weixin</artifactId>
  77. <version>2.1.2</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.mybatis</groupId>
  81. <artifactId>mybatis-typehandlers-jsr310</artifactId>
  82. <version>1.0.1</version>
  83. </dependency>
  84. <!-- itextpdf-->
  85. <dependency>
  86. <groupId>com.belerweb</groupId>
  87. <artifactId>pinyin4j</artifactId>
  88. <version>2.5.0</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>com.itextpdf</groupId>
  92. <artifactId>itext-asian</artifactId>
  93. <version>5.2.0</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>cn.afterturn</groupId>
  97. <artifactId>easypoi-spring-boot-starter</artifactId>
  98. <version>4.0.0</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>com.itextpdf</groupId>
  102. <artifactId>itextpdf</artifactId>
  103. <version>5.4.3</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org</groupId>
  107. <artifactId>jaudiotagger</artifactId>
  108. <version>2.0.3</version>
  109. </dependency>
  110. <!--
  111. <dependency>
  112. <groupId>org.springframework</groupId>
  113. <artifactId>spring-websocket</artifactId>
  114. <version>5.1.2.RELEASE</version>
  115. </dependency>
  116. -->
  117. <dependency>
  118. <groupId>org.springframework.boot</groupId>
  119. <artifactId>spring-boot-starter-websocket</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>net.java.dev.jna</groupId>
  123. <artifactId>jna</artifactId>
  124. <version>5.5.0</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>net.java.dev.jna</groupId>
  128. <artifactId>jna-platform</artifactId>
  129. <version>5.5.0</version>
  130. </dependency>
  131. <!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
  132. <dependency>
  133. <groupId>com.alibaba</groupId>
  134. <artifactId>druid</artifactId>
  135. <version>${druid.version}</version>
  136. </dependency>
  137. <!-- 苹果工具类 -->
  138. <dependency>
  139. <groupId>com.auth0</groupId>
  140. <artifactId>java-jwt</artifactId>
  141. <version>3.8.3</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.auth0</groupId>
  145. <artifactId>jwks-rsa</artifactId>
  146. <version>0.12.0</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>io.jsonwebtoken</groupId>
  150. <artifactId>jjwt</artifactId>
  151. <version>0.9.0</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>net.sf.json-lib</groupId>
  155. <artifactId>json-lib</artifactId>
  156. <version>2.4</version>
  157. <classifier>jdk15</classifier>
  158. </dependency>
  159. <!-- excel工具类 -->
  160. <dependency>
  161. <groupId>org.apache.poi</groupId>
  162. <artifactId>poi</artifactId>
  163. <version>4.0.1</version>
  164. </dependency>
  165. <!-- excel工具类 -->
  166. <dependency>
  167. <groupId>org.apache.poi</groupId>
  168. <artifactId>poi-ooxml</artifactId>
  169. <version>4.0.1</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.github.qcloudsms</groupId>
  173. <artifactId>qcloudsms</artifactId>
  174. <version>1.0.6</version>
  175. </dependency>
  176. <!--阿里云短信-->
  177. <dependency>
  178. <groupId>com.aliyun</groupId>
  179. <artifactId>aliyun-java-sdk-core</artifactId>
  180. <version>4.5.3</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>com.aliyun.oss</groupId>
  184. <artifactId>aliyun-sdk-oss</artifactId>
  185. <version>3.4.0</version>
  186. </dependency>
  187. <!-- 集成支付宝sdk -->
  188. <dependency>
  189. <groupId>com.alipay.sdk</groupId>
  190. <artifactId>alipay-sdk-java</artifactId>
  191. <version>4.10.29.ALL</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.github.wxpay</groupId>
  195. <artifactId>wxpay-sdk</artifactId>
  196. <version>0.0.3</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>com.github.liyiorg</groupId>
  200. <artifactId>weixin-popular</artifactId>
  201. <version>2.8.25</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.springframework.boot</groupId>
  205. <artifactId>spring-boot-starter-test</artifactId>
  206. <scope>test</scope>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.springframework.boot</groupId>
  210. <artifactId>spring-boot-starter-web</artifactId>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.springframework.boot</groupId>
  214. <artifactId>spring-boot-starter-aop</artifactId>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.springframework</groupId>
  218. <artifactId>spring-context-support</artifactId>
  219. </dependency>
  220. <dependency>
  221. <groupId>org.springframework.boot</groupId>
  222. <artifactId>spring-boot-configuration-processor</artifactId>
  223. <optional>true</optional>
  224. </dependency>
  225. <!--<dependency>-->
  226. <!--<groupId>org.springframework.boot</groupId>-->
  227. <!--<artifactId>spring-boot-devtools</artifactId>-->
  228. <!--<optional>true</optional>-->
  229. <!--</dependency>-->
  230. <dependency>
  231. <groupId>com.baomidou</groupId>
  232. <artifactId>mybatis-plus-boot-starter</artifactId>
  233. <version>${mybatisplus.version}</version>
  234. <exclusions>
  235. <exclusion>
  236. <groupId>com.baomidou</groupId>
  237. <artifactId>mybatis-plus-generator</artifactId>
  238. </exclusion>
  239. </exclusions>
  240. </dependency>
  241. <dependency>
  242. <groupId>mysql</groupId>
  243. <artifactId>mysql-connector-java</artifactId>
  244. <version>${mysql.version}</version>
  245. </dependency>
  246. <!--postgresql驱动-->
  247. <dependency>
  248. <groupId>org.postgresql</groupId>
  249. <artifactId>postgresql</artifactId>
  250. <version>42.3.2</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>com.alibaba</groupId>
  254. <artifactId>druid-spring-boot-starter</artifactId>
  255. <version>${druid.version}</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>org.quartz-scheduler</groupId>
  259. <artifactId>quartz</artifactId>
  260. <version>${quartz.version}</version>
  261. <exclusions>
  262. <exclusion>
  263. <groupId>com.mchange</groupId>
  264. <artifactId>c3p0</artifactId>
  265. </exclusion>
  266. </exclusions>
  267. </dependency>
  268. <dependency>
  269. <groupId>commons-lang</groupId>
  270. <artifactId>commons-lang</artifactId>
  271. <version>${commons.lang.version}</version>
  272. </dependency>
  273. <dependency>
  274. <groupId>commons-fileupload</groupId>
  275. <artifactId>commons-fileupload</artifactId>
  276. <version>${commons.fileupload.version}</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>commons-io</groupId>
  280. <artifactId>commons-io</artifactId>
  281. <version>${commons.io.version}</version>
  282. </dependency>
  283. <dependency>
  284. <groupId>commons-codec</groupId>
  285. <artifactId>commons-codec</artifactId>
  286. <version>${commons.codec.version}</version>
  287. </dependency>
  288. <dependency>
  289. <groupId>commons-configuration</groupId>
  290. <artifactId>commons-configuration</artifactId>
  291. <version>${commons.configuration.version}</version>
  292. </dependency>
  293. <dependency>
  294. <groupId>org.apache.shiro</groupId>
  295. <artifactId>shiro-core</artifactId>
  296. <version>${shiro.version}</version>
  297. </dependency>
  298. <dependency>
  299. <groupId>org.apache.shiro</groupId>
  300. <artifactId>shiro-spring</artifactId>
  301. <version>${shiro.version}</version>
  302. </dependency>
  303. <dependency>
  304. <groupId>com.github.axet</groupId>
  305. <artifactId>kaptcha</artifactId>
  306. <version>${kaptcha.version}</version>
  307. </dependency>
  308. <dependency>
  309. <groupId>io.springfox</groupId>
  310. <artifactId>springfox-swagger2</artifactId>
  311. <version>${swagger.version}</version>
  312. </dependency>
  313. <dependency>
  314. <groupId>io.springfox</groupId>
  315. <artifactId>springfox-swagger-ui</artifactId>
  316. <version>${swagger.version}</version>
  317. </dependency>
  318. <dependency>
  319. <groupId>com.qiniu</groupId>
  320. <artifactId>qiniu-java-sdk</artifactId>
  321. <version>${qiniu.version}</version>
  322. </dependency>
  323. <dependency>
  324. <groupId>com.qcloud</groupId>
  325. <artifactId>cos_api</artifactId>
  326. <version>${qcloud.cos.version}</version>
  327. <exclusions>
  328. <exclusion>
  329. <groupId>org.slf4j</groupId>
  330. <artifactId>slf4j-log4j12</artifactId>
  331. </exclusion>
  332. </exclusions>
  333. </dependency>
  334. <dependency>
  335. <groupId>joda-time</groupId>
  336. <artifactId>joda-time</artifactId>
  337. <version>${joda.time.version}</version>
  338. </dependency>
  339. <dependency>
  340. <groupId>com.google.code.gson</groupId>
  341. <artifactId>gson</artifactId>
  342. <version>${gson.version}</version>
  343. </dependency>
  344. <dependency>
  345. <groupId>com.alibaba</groupId>
  346. <artifactId>fastjson</artifactId>
  347. <version>1.2.83</version>
  348. </dependency>
  349. <dependency>
  350. <groupId>cn.hutool</groupId>
  351. <artifactId>hutool-all</artifactId>
  352. <version>${hutool.version}</version>
  353. </dependency>
  354. <dependency>
  355. <groupId>org.projectlombok</groupId>
  356. <artifactId>lombok</artifactId>
  357. <version>${lombok.version}</version>
  358. </dependency>
  359. <!--二维码生成架包引用-->
  360. <!-- https://mvnrepository.com/artifact/com.google.zxing/core -->
  361. <dependency>
  362. <groupId>com.google.zxing</groupId>
  363. <artifactId>core</artifactId>
  364. <version>3.3.3</version>
  365. </dependency>
  366. <!-- https://mvnrepository.com/artifact/com.google.zxing/javase -->
  367. <dependency>
  368. <groupId>com.google.zxing</groupId>
  369. <artifactId>javase</artifactId>
  370. <version>3.3.3</version>
  371. </dependency>
  372. <dependency>
  373. <groupId>com.github.binarywang</groupId>
  374. <artifactId>weixin-java-mp</artifactId>
  375. <version>3.6.0</version>
  376. </dependency>
  377. <dependency>
  378. <groupId>com.github.binarywang</groupId>
  379. <artifactId>weixin-java-pay</artifactId>
  380. <version>3.6.0</version>
  381. </dependency>
  382. <dependency>
  383. <groupId>com.github.pagehelper</groupId>
  384. <artifactId>pagehelper-spring-boot-starter</artifactId>
  385. <version>1.2.5</version>
  386. <exclusions>
  387. <exclusion>
  388. <artifactId>mybatis-spring</artifactId>
  389. <groupId>org.mybatis</groupId>
  390. </exclusion>
  391. <exclusion>
  392. <artifactId>mybatis</artifactId>
  393. <groupId>org.mybatis</groupId>
  394. </exclusion>
  395. </exclusions>
  396. </dependency>
  397. <dependency>
  398. <groupId>com.github.dozermapper</groupId>
  399. <artifactId>dozer-core</artifactId>
  400. <version>6.4.1</version>
  401. </dependency>
  402. <dependency>
  403. <groupId>com.getui.push</groupId>
  404. <artifactId>restful-sdk</artifactId>
  405. <version>1.0.0.1</version>
  406. </dependency>
  407. <dependency>
  408. <groupId>org.springframework.boot</groupId>
  409. <artifactId>spring-boot-starter-data-jpa</artifactId>
  410. </dependency>
  411. <!--<dependency>-->
  412. <!--<groupId>com.baidu.aip</groupId>-->
  413. <!--            <artifactId>java-sdk</artifactId>-->
  414. <!--            <version>4.11.3</version>-->
  415. <!--</dependency>-->
  416. </dependencies>
  417. <build>
  418. <finalName>${project.artifactId}</finalName>
  419. <extensions>
  420. <extension>
  421. <groupId>org.apache.maven.wagon</groupId>
  422. <artifactId>wagon-ssh</artifactId>
  423. <version>2.8</version>
  424. </extension>
  425. </extensions>
  426. <plugins>
  427. <plugin>
  428. <groupId>org.springframework.boot</groupId>
  429. <artifactId>spring-boot-maven-plugin</artifactId>
  430. <configuration>
  431. <fork>true</fork>
  432. <includeSystemScope>true</includeSystemScope>
  433. <!-- 关键新增:指定唯一主类(二选一,根据你的实际入口选择) -->
  434. <mainClass>com.sqx.SqxApplication</mainClass>
  435. <!-- 若要使用 WebSocketApp 作为入口,替换为:<mainClass>com.sqx.WebSocketApp</mainClass> -->
  436. </configuration>
  437. </plugin>
  438. <!-- 跳过单元测试 -->
  439. <plugin>
  440. <groupId>org.apache.maven.plugins</groupId>
  441. <artifactId>maven-surefire-plugin</artifactId>
  442. <configuration>
  443. <skipTests>true</skipTests>
  444. </configuration>
  445. </plugin>
  446. <plugin>
  447. <groupId>org.codehaus.mojo</groupId>
  448. <artifactId>wagon-maven-plugin</artifactId>
  449. <version>1.0</version>
  450. <!--<configuration>
  451. <fromFile>target/${pack-name}</fromFile>
  452. <url><![CDATA[scp://${remote-username}:${remote-passwd}@${remote-addr}${service-path}]]></url>
  453. <commands>
  454. &lt;!&ndash; Kill Old Process &ndash;&gt;
  455. <command>kill -9 `ps -ef |grep ${project.artifactId}.jar|grep -v "grep" |awk '{print $2}'`</command>
  456. <command><![CDATA[nohup java -jar ${service-path}/${pack-name} &#45;&#45;spring.profiles.active=test > ${service-path}/sz.log 2>&1 & ]]></command>
  457. <command><![CDATA[netstat -nptl]]></command>
  458. <command><![CDATA[ps -ef | grep java | grep -v grep]]></command>
  459. </commands>
  460. &lt;!&ndash; 运行命令 mvn clean package wagon:upload-single wagon:sshexec&ndash;&gt;
  461. <displayCommandOutputs>true</displayCommandOutputs>
  462. </configuration>-->
  463. </plugin>
  464. <plugin>
  465. <groupId>com.spotify</groupId>
  466. <artifactId>docker-maven-plugin</artifactId>
  467. <version>0.4.14</version>
  468. <!--<executions>-->
  469. <!--<execution>-->
  470. <!--<phase>package</phase>-->
  471. <!--<goals>-->
  472. <!--<goal>build</goal>-->
  473. <!--</goals>-->
  474. <!--</execution>-->
  475. <!--</executions>-->
  476. <configuration>
  477. <imageName>sqx/fast</imageName>
  478. <dockerDirectory>${project.basedir}</dockerDirectory>
  479. <resources>
  480. <resource>
  481. <targetPath>/</targetPath>
  482. <directory>${project.build.directory}</directory>
  483. <include>${project.build.finalName}.jar</include>
  484. </resource>
  485. </resources>
  486. </configuration>
  487. <!-- 运行命令 mvn clean package docker:build 打包并生成docker镜像 -->
  488. </plugin>
  489. </plugins>
  490. </build>
  491. <repositories>
  492. <repository>
  493. <id>central</id>
  494. <name>Maven Central</name>
  495. <url>https://repo1.maven.org/maven2/</url>
  496. <releases>
  497. <enabled>true</enabled>
  498. </releases>
  499. </repository>
  500. </repositories>
  501. <pluginRepositories>
  502. <pluginRepository>
  503. <id>central</id>
  504. <name>Maven Central</name>
  505. <url>https://repo1.maven.org/maven2/</url>
  506. <releases>
  507. <enabled>true</enabled>
  508. </releases>
  509. <snapshots>
  510. <enabled>false</enabled>
  511. </snapshots>
  512. </pluginRepository>
  513. </pluginRepositories>
  514. </project>