pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  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. <groupId>com.ydtech</groupId>
  7. <artifactId>insagent</artifactId>
  8. <version>0.0.2</version>
  9. <packaging>jar</packaging>
  10. <parent>
  11. <groupId>org.springframework.boot</groupId>
  12. <artifactId>spring-boot-starter-parent</artifactId>
  13. <version>2.5.14</version>
  14. <!-- <version>2.1.9.RELEASE</version>-->
  15. <relativePath/>
  16. </parent>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <java.version>1.8</java.version>
  21. <!-- <swagger.version>2.9.2</swagger.version>-->
  22. <druid.version>1.1.10</druid.version>
  23. <jwt.version>0.9.1</jwt.version>
  24. <fastjson.version>1.2.58</fastjson.version>
  25. <!-- <log4j.version>1.2.17</log4j.version>-->
  26. <kaptcha.version>0.0.9</kaptcha.version>
  27. <mapstruct.version>1.5.4.Final</mapstruct.version>
  28. </properties>
  29. <dependencies>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-web</artifactId>
  33. <exclusions>
  34. <!-- <exclusion>-->
  35. <!-- <groupId>org.springframework.boot</groupId>-->
  36. <!-- <artifactId>spring-boot-starter-logging</artifactId>-->
  37. <!-- </exclusion>-->
  38. <!-- &lt;!&ndash; 打成war包,排除spring-boot-starter-web中的Tomcat&ndash;&gt;-->
  39. <!-- <exclusion>-->
  40. <!-- <groupId>org.springframework.boot</groupId>-->
  41. <!-- <artifactId>spring-boot-starter-tomcat</artifactId>-->
  42. <!-- </exclusion>-->
  43. </exclusions>
  44. </dependency>
  45. <!-- <dependency>-->
  46. <!-- <groupId>org.springframework.boot</groupId>-->
  47. <!-- <artifactId>spring-boot-starter-log4j</artifactId>-->
  48. <!-- <version>1.3.8.RELEASE</version>-->
  49. <!-- </dependency>-->
  50. <!-- <dependency>-->
  51. <!-- <groupId>org.springframework.boot</groupId>-->
  52. <!-- <artifactId>spring-boot-starter-tomcat</artifactId>-->
  53. <!-- &lt;!&ndash;打包的时候可以不用包进去,别的设施会提供。事实上该依赖理论上可以参与编译,测试,运行等周期。-->
  54. <!-- 相当于compile,但是打包阶段做了exclude操作&ndash;&gt;-->
  55. <!-- <scope>provided</scope>-->
  56. <!-- </dependency>-->
  57. <!--spring切面aop依赖-->
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-aop</artifactId>
  61. </dependency>
  62. <!--数据库相关-->
  63. <!--
  64. <dependency>
  65. <groupId>org.springframework</groupId>
  66. <artifactId>spring-jdbc</artifactId>
  67. <version>4.2.5.RELEASE</version>
  68. </dependency>
  69. -->
  70. <!--SpringBoot 使用 JDBCTemplate 引用下面这个包才会自动注入,不要引用上面按个-->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-jdbc</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.github.drinkjava2</groupId>
  77. <artifactId>jdialects</artifactId>
  78. <version>1.0.7</version> <!--或Maven最新版-->
  79. </dependency>
  80. <!-- 加入p6spy -->
  81. <dependency>
  82. <groupId>p6spy</groupId>
  83. <artifactId>p6spy</artifactId>
  84. <version>3.8.5</version>
  85. </dependency>
  86. <!-- kaptcha -->
  87. <dependency>
  88. <groupId>com.github.axet</groupId>
  89. <artifactId>kaptcha</artifactId>
  90. <version>${kaptcha.version}</version>
  91. </dependency>
  92. <!-- mysql -->
  93. <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
  94. <dependency>
  95. <groupId>mysql</groupId>
  96. <artifactId>mysql-connector-java</artifactId>
  97. <scope>runtime</scope>
  98. </dependency>
  99. <!-- druid -->
  100. <!-- <dependency>-->
  101. <!-- <groupId>com.alibaba</groupId>-->
  102. <!-- <artifactId>druid-spring-boot-starter</artifactId>-->
  103. <!-- <version>${druid.version}</version>-->
  104. <!-- </dependency>-->
  105. <dependency>
  106. <groupId>com.alibaba</groupId>
  107. <artifactId>druid</artifactId>
  108. <version>1.1.10</version>
  109. </dependency>
  110. <!-- &lt;!&ndash; swagger &ndash;&gt;-->
  111. <!-- <dependency>-->
  112. <!-- <groupId>io.springfox</groupId>-->
  113. <!-- <artifactId>springfox-swagger2</artifactId>-->
  114. <!-- <version>${swagger.version}</version>-->
  115. <!-- <exclusions>-->
  116. <!-- <exclusion>-->
  117. <!-- <groupId>org.mapstruct</groupId>-->
  118. <!-- <artifactId>mapstruct</artifactId>-->
  119. <!-- </exclusion>-->
  120. <!-- </exclusions>-->
  121. <!-- </dependency>-->
  122. <!-- <dependency>-->
  123. <!-- <groupId>io.springfox</groupId>-->
  124. <!-- <artifactId>springfox-swagger-ui</artifactId>-->
  125. <!-- <version>${swagger.version}</version>-->
  126. <!-- </dependency>-->
  127. <!--引入Knife4j的官方start包,Swagger2基于Springfox2.10.5项目-->
  128. <dependency>
  129. <groupId>com.github.xiaoymin</groupId>
  130. <!--使用Swagger2-->
  131. <artifactId>knife4j-spring-boot-starter</artifactId>
  132. <version>2.0.9</version>
  133. <exclusions>
  134. <exclusion>
  135. <groupId>org.mapstruct</groupId>
  136. <artifactId>mapstruct</artifactId>
  137. </exclusion>
  138. </exclusions>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.springframework.plugin</groupId>
  142. <artifactId>spring-plugin-core</artifactId>
  143. <version>2.0.0.RELEASE</version>
  144. </dependency>
  145. <!-- <dependency>-->
  146. <!-- <groupId>org.springframework.plugin</groupId>-->
  147. <!-- <artifactId>spring-plugin-metadata</artifactId>-->
  148. <!-- <version>2.0.0.RELEASE</version>-->
  149. <!-- </dependency>-->
  150. <dependency>
  151. <groupId>org.springframework.boot</groupId>
  152. <artifactId>spring-boot-starter-security</artifactId>
  153. </dependency>
  154. <!-- jwt -->
  155. <dependency>
  156. <groupId>io.jsonwebtoken</groupId>
  157. <artifactId>jjwt</artifactId>
  158. <version>${jwt.version}</version>
  159. </dependency>
  160. <!-- fastjson -->
  161. <dependency>
  162. <groupId>com.alibaba</groupId>
  163. <artifactId>fastjson</artifactId>
  164. <version>${fastjson.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>joda-time</groupId>
  168. <artifactId>joda-time</artifactId>
  169. <version>2.10.5</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.github.promeg</groupId>
  173. <artifactId>tinypinyin</artifactId>
  174. <version>2.0.3</version>
  175. </dependency>
  176. <!-- 爬虫开始 -->
  177. <!-- spider -->
  178. <dependency>
  179. <groupId>org.apache.httpcomponents</groupId>
  180. <artifactId>httpclient</artifactId>
  181. <version>4.5.6</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.apache.httpcomponents</groupId>
  185. <artifactId>httpcore</artifactId>
  186. <version>4.4.10</version>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.apache.httpcomponents</groupId>
  190. <artifactId>httpmime</artifactId>
  191. <version>4.5.6</version>
  192. </dependency>
  193. <!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
  194. <dependency>
  195. <groupId>redis.clients</groupId>
  196. <artifactId>jedis</artifactId>
  197. <version>2.9.3</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>com.google.code.gson</groupId>
  201. <artifactId>gson</artifactId>
  202. <version>2.8.5</version>
  203. <scope>compile</scope>
  204. </dependency>
  205. <dependency>
  206. <groupId>com.jayway.jsonpath</groupId>
  207. <artifactId>json-path</artifactId>
  208. <version>2.4.0</version>
  209. </dependency>
  210. <!-- https://mvnrepository.com/artifact/org.jsoup/jsoup -->
  211. <dependency>
  212. <groupId>org.jsoup</groupId>
  213. <artifactId>jsoup</artifactId>
  214. <version>1.10.3</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.codeborne</groupId>
  218. <artifactId>selenide</artifactId>
  219. <version>4.7</version>
  220. <scope>test</scope>
  221. <exclusions>
  222. <exclusion>
  223. <groupId>org.seleniumhq.selenium</groupId>
  224. <artifactId>selenium</artifactId>
  225. </exclusion>
  226. <exclusion>
  227. <groupId>org.seleniumhq.selenium</groupId>
  228. <artifactId>selenium-support</artifactId>
  229. </exclusion>
  230. </exclusions>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.seleniumhq.selenium</groupId>
  234. <artifactId>selenium-java</artifactId>
  235. <version>3.3.0</version>
  236. <!-- <version>2.53.1</version>-->
  237. </dependency>
  238. <dependency>
  239. <groupId>org.seleniumhq.selenium</groupId>
  240. <artifactId>selenium-chrome-driver</artifactId>
  241. <version>2.53.1</version>
  242. </dependency>
  243. <dependency>
  244. <groupId>org.seleniumhq.selenium</groupId>
  245. <artifactId>selenium-api</artifactId>
  246. <version>2.53.1</version>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.seleniumhq.selenium</groupId>
  250. <artifactId>selenium-edge-driver</artifactId>
  251. <version>2.53.1</version>
  252. </dependency>
  253. <dependency>
  254. <groupId>org.seleniumhq.selenium</groupId>
  255. <artifactId>selenium-firefox-driver</artifactId>
  256. <version>2.53.1</version>
  257. </dependency>
  258. <dependency>
  259. <groupId>org.seleniumhq.selenium</groupId>
  260. <artifactId>selenium-ie-driver</artifactId>
  261. <version>2.53.1</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.seleniumhq.selenium</groupId>
  265. <artifactId>selenium-remote-driver</artifactId>
  266. <version>2.53.1</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.seleniumhq.selenium</groupId>
  270. <artifactId>selenium-safari-driver</artifactId>
  271. <version>2.53.1</version>
  272. </dependency>
  273. <dependency>
  274. <groupId>com.codeborne</groupId>
  275. <artifactId>phantomjsdriver</artifactId>
  276. <version>1.4.0</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>org.seleniumhq.selenium</groupId>
  280. <artifactId>selenium-support</artifactId>
  281. <version>2.53.1</version>
  282. </dependency>
  283. <!-- EXCEL导出-->
  284. <dependency>
  285. <groupId>cn.afterturn</groupId>
  286. <artifactId>easypoi-base</artifactId>
  287. <version>4.1.2</version>
  288. </dependency>
  289. <dependency>
  290. <groupId>cn.afterturn</groupId>
  291. <artifactId>easypoi-web</artifactId>
  292. <version>4.1.2</version>
  293. </dependency>
  294. <dependency>
  295. <groupId>cn.afterturn</groupId>
  296. <artifactId>easypoi-annotation</artifactId>
  297. <version>4.1.2</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>org.projectlombok</groupId>
  301. <artifactId>lombok</artifactId>
  302. </dependency>
  303. <!-- 分页插件 -->
  304. <dependency>
  305. <groupId>com.github.pagehelper</groupId>
  306. <artifactId>pagehelper-spring-boot-starter</artifactId>
  307. <version>1.4.6</version>
  308. <exclusions>
  309. <exclusion>
  310. <groupId>org.mybatis</groupId>
  311. <artifactId>mybatis</artifactId>
  312. </exclusion>
  313. <exclusion>
  314. <groupId>org.mybatis</groupId>
  315. <artifactId>mybatis-spring</artifactId>
  316. </exclusion>
  317. </exclusions>
  318. </dependency>
  319. <!--mybatis-->
  320. <dependency>
  321. <groupId>org.mybatis.spring.boot</groupId>
  322. <artifactId>mybatis-spring-boot-starter</artifactId>
  323. <version>2.3.0</version>
  324. </dependency>
  325. <!--mapper -->
  326. <dependency>
  327. <groupId>tk.mybatis</groupId>
  328. <artifactId>mapper-spring-boot-starter</artifactId>
  329. <version>2.1.5</version>
  330. </dependency>
  331. <!-- mybatis配置文件生成工具 -->
  332. <dependency>
  333. <groupId>org.mybatis.generator</groupId>
  334. <artifactId>mybatis-generator-core</artifactId>
  335. <version>1.4.2</version>
  336. <!-- <version>1.3.6</version>-->
  337. </dependency>
  338. <dependency>
  339. <groupId>javax.el</groupId>
  340. <artifactId>javax.el-api</artifactId>
  341. <version>3.0.0</version>
  342. </dependency>
  343. <!-- Hutool是一个小而全的Java工具类库 -->
  344. <dependency>
  345. <groupId>cn.hutool</groupId>
  346. <artifactId>hutool-all</artifactId>
  347. <version>5.7.7</version>
  348. </dependency>
  349. <!-- sftp连接 -->
  350. <dependency>
  351. <groupId>com.jcraft</groupId>
  352. <artifactId>jsch</artifactId>
  353. <version>0.1.54</version>
  354. </dependency>
  355. <!-- sftp连接 end-->
  356. <!-- xml接口请求 -->
  357. <dependency>
  358. <groupId>com.fasterxml.jackson.dataformat</groupId>
  359. <artifactId>jackson-dataformat-xml</artifactId>
  360. <version>2.9.0</version>
  361. </dependency>
  362. <dependency>
  363. <groupId>commons-httpclient</groupId>
  364. <artifactId>commons-httpclient</artifactId>
  365. <version>3.1</version>
  366. </dependency>
  367. <!-- xml接口请求 end -->
  368. <!-- &lt;!&ndash;类似redis的map&ndash;&gt;-->
  369. <!-- <dependency>-->
  370. <!-- <groupId>net.jodah</groupId>-->
  371. <!-- <artifactId>expiringmap</artifactId>-->
  372. <!-- <version>0.5.8</version>-->
  373. <!-- </dependency>-->
  374. <!--redis-->
  375. <dependency>
  376. <groupId>org.springframework.boot</groupId>
  377. <artifactId>spring-boot-starter-data-redis</artifactId>
  378. </dependency>
  379. <dependency>
  380. <groupId>org.apache.commons</groupId>
  381. <artifactId>commons-pool2</artifactId>
  382. </dependency>
  383. <!--集成微信-->
  384. <dependency>
  385. <groupId>com.github.binarywang</groupId>
  386. <artifactId>weixin-java-mp</artifactId>
  387. <version>4.3.8.B</version>
  388. </dependency>
  389. <dependency>
  390. <groupId>org.springframework.boot</groupId>
  391. <artifactId>spring-boot-configuration-processor</artifactId>
  392. <optional>true</optional>
  393. </dependency>
  394. <!--集成 mybatis-plus -->
  395. <dependency>
  396. <groupId>com.baomidou</groupId>
  397. <artifactId>mybatis-plus-boot-starter</artifactId>
  398. <version>3.5.3.1</version>
  399. </dependency>
  400. <!-- 测试 -->
  401. <dependency>
  402. <groupId>org.springframework.boot</groupId>
  403. <artifactId>spring-boot-starter-test</artifactId>
  404. <scope>test</scope>
  405. </dependency>
  406. <dependency>
  407. <groupId>org.reflections</groupId>
  408. <artifactId>reflections</artifactId>
  409. <version>0.9.10</version>
  410. </dependency>
  411. <!-- <dependency>-->
  412. <!-- <groupId>org.junit.jupiter</groupId>-->
  413. <!-- <artifactId>junit-jupiter</artifactId>-->
  414. <!-- <version>5.9.1</version>-->
  415. <!-- </dependency>-->
  416. <!--thumbnailator图片处理-->
  417. <dependency>
  418. <groupId>net.coobird</groupId>
  419. <artifactId>thumbnailator</artifactId>
  420. <version>0.4.8</version>
  421. </dependency>
  422. <!--mapStruct依赖-->
  423. <dependency>
  424. <groupId>org.mapstruct</groupId>
  425. <artifactId>mapstruct</artifactId>
  426. <version>${mapstruct.version}</version>
  427. </dependency>
  428. <dependency>
  429. <groupId>org.mapstruct</groupId>
  430. <artifactId>mapstruct-processor</artifactId>
  431. <!-- <scope>provided</scope>-->
  432. <version>${mapstruct.version}</version>
  433. </dependency>
  434. <dependency>
  435. <groupId>junit</groupId>
  436. <artifactId>junit</artifactId>
  437. <version>4.13.2</version>
  438. <!-- <version>RELEASE</version>-->
  439. <scope>test</scope>
  440. </dependency>
  441. <!-- rabbitmq依赖 -->
  442. <!-- <dependency>-->
  443. <!-- <groupId>org.springframework.boot</groupId>-->
  444. <!-- <artifactId>spring-boot-starter-amqp</artifactId>-->
  445. <!-- </dependency>-->
  446. </dependencies>
  447. <build>
  448. <!-- 应与application.properties(或application.yml)中context-path保持一致 -->
  449. <finalName>ROOT</finalName>
  450. <plugins>
  451. <plugin>
  452. <groupId>org.apache.maven.plugins</groupId>
  453. <artifactId>maven-jar-plugin</artifactId>
  454. <configuration>
  455. <!-- &lt;!&ndash;不打入jar包的文件类型或者路径&ndash;&gt;-->
  456. <!-- <excludes>-->
  457. <!-- <exclude>*.properties</exclude>-->
  458. <!-- <exclude>*.yml</exclude>-->
  459. <!-- <exclude>*.yaml</exclude>-->
  460. <!-- </excludes>-->
  461. <archive>
  462. <!-- <skipTests>true</skipTests>-->
  463. <manifest>
  464. <!-- 执行的主程序路径 -->
  465. <mainClass>com.ydtech.SpringInsApplication</mainClass>
  466. <!--是否要把第三方jar放到manifest的classpath中-->
  467. <addClasspath>true</addClasspath>
  468. <!--生成的manifest中classpath的前缀,因为要把第三方jar放到lib目录下,所以classpath的前缀是lib/-->
  469. <classpathPrefix>lib/</classpathPrefix>
  470. <!-- 打包时 MANIFEST.MF 文件不记录的时间戳版本 -->
  471. <useUniqueVersions>false</useUniqueVersions>
  472. </manifest>
  473. <manifestEntries>
  474. <!-- 在 Class-Path 下添加配置文件的路径 -->
  475. <Class-Path>config/</Class-Path>
  476. </manifestEntries>
  477. </archive>
  478. </configuration>
  479. </plugin>
  480. <plugin>
  481. <groupId>org.apache.maven.plugins</groupId>
  482. <artifactId>maven-dependency-plugin</artifactId>
  483. <executions>
  484. <execution>
  485. <id>copy</id>
  486. <phase>package</phase>
  487. <goals>
  488. <goal>copy-dependencies</goal>
  489. </goals>
  490. <configuration>
  491. <outputDirectory>${project.build.directory}/lib/</outputDirectory>
  492. </configuration>
  493. </execution>
  494. </executions>
  495. </plugin>
  496. <plugin>
  497. <groupId>org.apache.maven.plugins</groupId>
  498. <artifactId>maven-resources-plugin</artifactId>
  499. <version>3.1.0</version>
  500. </plugin>
  501. <!-- <plugin>-->
  502. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  503. <!-- <artifactId>maven-compiler-plugin</artifactId>-->
  504. <!-- <version>3.1</version>-->
  505. <!-- <configuration>-->
  506. <!-- <fork>true</fork>-->
  507. <!-- <executable>C:/Program Files/Java/jdk1.8.0_351/bin/javac</executable>-->
  508. <!-- </configuration>-->
  509. <!-- </plugin>-->
  510. <!-- <plugin>-->
  511. <!-- <artifactId>maven-resources-plugin</artifactId>-->
  512. <!-- <executions>-->
  513. <!-- <execution>-->
  514. <!-- <id>copy-resources</id>-->
  515. <!-- <phase>package</phase>-->
  516. <!-- <goals>-->
  517. <!-- <goal>copy-resources</goal>-->
  518. <!-- </goals>-->
  519. <!-- <configuration>-->
  520. <!-- <resources>-->
  521. <!-- &lt;!&ndash;把配置文件打包到指定路径&ndash;&gt;-->
  522. <!-- <resource>-->
  523. <!-- <directory>src/main/resources/</directory>-->
  524. <!-- <includes>-->
  525. <!-- <include>*.properties</include>-->
  526. <!-- <include>*.yml</include>-->
  527. <!-- <exclude>*.yaml</exclude>-->
  528. <!-- </includes>-->
  529. <!-- </resource>-->
  530. <!-- </resources>-->
  531. <!-- <outputDirectory>${project.build.directory}/config</outputDirectory>-->
  532. <!-- </configuration>-->
  533. <!-- </execution>-->
  534. <!-- </executions>-->
  535. <!-- </plugin>-->
  536. </plugins>
  537. </build>
  538. </project>