pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. <?xml version="1.0"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.7.18</version>
  10. </parent>
  11. <groupId>com.genersoft</groupId>
  12. <artifactId>wvp-pro</artifactId>
  13. <version>2.7.3</version>
  14. <name>web video platform</name>
  15. <description>国标28181视频平台</description>
  16. <packaging>${project.packaging}</packaging>
  17. <repositories>
  18. <repository>
  19. <id>nexus-aliyun</id>
  20. <name>Nexus aliyun</name>
  21. <url>https://maven.aliyun.com/repository/public</url>
  22. <layout>default</layout>
  23. <snapshots>
  24. <enabled>false</enabled>
  25. </snapshots>
  26. <releases>
  27. <enabled>true</enabled>
  28. </releases>
  29. </repository>
  30. </repositories>
  31. <pluginRepositories>
  32. <pluginRepository>
  33. <id>nexus-aliyun</id>
  34. <name>Nexus aliyun</name>
  35. <url>https://maven.aliyun.com/repository/public</url>
  36. <snapshots>
  37. <enabled>false</enabled>
  38. </snapshots>
  39. <releases>
  40. <enabled>true</enabled>
  41. </releases>
  42. </pluginRepository>
  43. </pluginRepositories>
  44. <properties>
  45. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  46. <maven.build.timestamp.format>MMddHHmm</maven.build.timestamp.format>
  47. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  48. <!-- 依赖版本 -->
  49. <snippetsDirectory>${project.build.directory}/generated-snippets</snippetsDirectory>
  50. <asciidoctor.input.directory>${project.basedir}/docs/asciidoc</asciidoctor.input.directory>
  51. <generated.asciidoc.directory>${project.build.directory}/asciidoc</generated.asciidoc.directory>
  52. <asciidoctor.html.output.directory>${project.build.directory}/asciidoc/html</asciidoctor.html.output.directory>
  53. <asciidoctor.pdf.output.directory>${project.build.directory}/asciidoc/pdf</asciidoctor.pdf.output.directory>
  54. </properties>
  55. <profiles>
  56. <profile>
  57. <id>jar</id>
  58. <activation>
  59. <activeByDefault>true</activeByDefault>
  60. </activation>
  61. <properties>
  62. <project.packaging>jar</project.packaging>
  63. </properties>
  64. </profile>
  65. <profile>
  66. <id>war</id>
  67. <properties>
  68. <project.packaging>war</project.packaging>
  69. </properties>
  70. <dependencies>
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-web</artifactId>
  74. <exclusions>
  75. <exclusion>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-starter-jetty</artifactId>
  78. </exclusion>
  79. </exclusions>
  80. </dependency>
  81. <dependency>
  82. <groupId>javax.servlet</groupId>
  83. <artifactId>javax.servlet-api</artifactId>
  84. <version>3.1.0</version>
  85. <scope>provided</scope>
  86. </dependency>
  87. </dependencies>
  88. </profile>
  89. </profiles>
  90. <dependencies>
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-starter-data-redis</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-starter-cache</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-starter-web</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-starter-websocket</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-configuration-processor</artifactId>
  110. <optional>true</optional>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.mybatis.spring.boot</groupId>
  114. <artifactId>mybatis-spring-boot-starter</artifactId>
  115. <version>2.2.2</version>
  116. <exclusions>
  117. <exclusion>
  118. <groupId>com.zaxxer</groupId>
  119. <artifactId>HikariCP</artifactId>
  120. </exclusion>
  121. </exclusions>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.springframework.boot</groupId>
  125. <artifactId>spring-boot-starter-security</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-starter-jdbc</artifactId>
  130. </dependency>
  131. <!-- 数据库监控页面 -->
  132. <dependency>
  133. <groupId>com.alibaba</groupId>
  134. <artifactId>druid-spring-boot-starter</artifactId>
  135. <version>1.2.23</version>
  136. </dependency>
  137. <!-- mysql数据库 -->
  138. <dependency>
  139. <groupId>com.mysql</groupId>
  140. <artifactId>mysql-connector-j</artifactId>
  141. <version>8.2.0</version>
  142. </dependency>
  143. <!--postgresql-->
  144. <dependency>
  145. <groupId>org.postgresql</groupId>
  146. <artifactId>postgresql</artifactId>
  147. <version>42.5.1</version>
  148. </dependency>
  149. <!-- kingbase人大金仓 -->
  150. <!-- 手动下载驱动后安装 -->
  151. <!-- mvn install:install-file -Dfile=/home/lin/soft/kingbase/jdbc-aarch/kingbase8-8.6.0.jar -DgroupId=com.kingbase -DartifactId=kingbase8 -Dversion=8.6.0 -Dpackaging=jar
  152. -->
  153. <dependency>
  154. <groupId>com.kingbase</groupId>
  155. <artifactId>kingbase8</artifactId>
  156. <version>8.6.0</version>
  157. <scope>system</scope>
  158. <systemPath>${basedir}/libs/jdbc-aarch/kingbase8-8.6.0.jar</systemPath>
  159. </dependency>
  160. <dependency>
  161. <groupId>com.kingbase</groupId>
  162. <artifactId>kingbase8</artifactId>
  163. <version>8.6.0</version>
  164. <scope>system</scope>
  165. <systemPath>${basedir}/libs/jdbc-x86/kingbase8-8.6.0.jar</systemPath>
  166. </dependency>
  167. <!--Mybatis分页插件 -->
  168. <dependency>
  169. <groupId>com.github.pagehelper</groupId>
  170. <artifactId>pagehelper-spring-boot-starter</artifactId>
  171. <version>1.4.6</version>
  172. </dependency>
  173. <!--在线文档 -->
  174. <!--在线文档 -->
  175. <dependency>
  176. <groupId>org.springdoc</groupId>
  177. <artifactId>springdoc-openapi-ui</artifactId>
  178. <version>1.6.10</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.springdoc</groupId>
  182. <artifactId>springdoc-openapi-security</artifactId>
  183. <version>1.6.10</version>
  184. </dependency>
  185. <!-- https://mvnrepository.com/artifact/com.baomidou/dynamic-datasource-spring-boot-starter -->
  186. <dependency>
  187. <groupId>com.baomidou</groupId>
  188. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  189. <version>3.6.1</version>
  190. </dependency>
  191. <!--在线文档 -->
  192. <dependency>
  193. <groupId>org.springdoc</groupId>
  194. <artifactId>springdoc-openapi-ui</artifactId>
  195. <version>1.6.10</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>com.github.xiaoymin</groupId>
  199. <artifactId>knife4j-springdoc-ui</artifactId>
  200. <version>3.0.3</version>
  201. </dependency>
  202. <!--参数校验 -->
  203. <dependency>
  204. <groupId>javax.validation</groupId>
  205. <artifactId>validation-api</artifactId>
  206. </dependency>
  207. <!-- 日志相关 -->
  208. <dependency>
  209. <groupId>org.springframework.boot</groupId>
  210. <artifactId>spring-boot-starter-aop</artifactId>
  211. </dependency>
  212. <!-- sip协议栈 -->
  213. <dependency>
  214. <groupId>javax.sip</groupId>
  215. <artifactId>jain-sip-ri</artifactId>
  216. <version>1.3.0-91</version>
  217. </dependency>
  218. <!-- 取代log4j -->
  219. <dependency>
  220. <groupId>org.slf4j</groupId>
  221. <artifactId>log4j-over-slf4j</artifactId>
  222. <version>1.7.36</version>
  223. </dependency>
  224. <!-- xml解析库 -->
  225. <dependency>
  226. <groupId>org.dom4j</groupId>
  227. <artifactId>dom4j</artifactId>
  228. <version>2.1.3</version>
  229. </dependency>
  230. <!-- json解析库fastjson2 -->
  231. <dependency>
  232. <groupId>com.alibaba.fastjson2</groupId>
  233. <artifactId>fastjson2</artifactId>
  234. <version>2.0.17</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>com.alibaba.fastjson2</groupId>
  238. <artifactId>fastjson2-extension</artifactId>
  239. <version>2.0.17</version>
  240. </dependency>
  241. <!-- okhttp -->
  242. <dependency>
  243. <groupId>com.squareup.okhttp3</groupId>
  244. <artifactId>okhttp</artifactId>
  245. <version>4.10.0</version>
  246. </dependency>
  247. <!-- okhttp 调试日志 -->
  248. <dependency>
  249. <groupId>com.squareup.okhttp3</groupId>
  250. <artifactId>logging-interceptor</artifactId>
  251. <version>4.10.0</version>
  252. </dependency>
  253. <!-- okhttp-digest -->
  254. <dependency>
  255. <groupId>io.github.rburgst</groupId>
  256. <artifactId>okhttp-digest</artifactId>
  257. <version>2.7</version>
  258. </dependency>
  259. <!-- https://mvnrepository.com/artifact/net.sf.kxml/kxml2 -->
  260. <!-- <dependency>-->
  261. <!-- <groupId>net.sf.kxml</groupId>-->
  262. <!-- <artifactId>kxml2</artifactId>-->
  263. <!-- <version>2.3.0</version>-->
  264. <!-- </dependency>-->
  265. <!-- jwt实现 -->
  266. <dependency>
  267. <groupId>org.bitbucket.b_c</groupId>
  268. <artifactId>jose4j</artifactId>
  269. <version>0.9.3</version>
  270. </dependency>
  271. <!--反向代理-->
  272. <dependency>
  273. <groupId>org.mitre.dsmiley.httpproxy</groupId>
  274. <artifactId>smiley-http-proxy-servlet</artifactId>
  275. <version>1.12.1</version>
  276. </dependency>
  277. <!--excel解析库-->
  278. <dependency>
  279. <groupId>com.alibaba</groupId>
  280. <artifactId>easyexcel</artifactId>
  281. <version>3.3.2</version>
  282. <exclusions>
  283. <exclusion>
  284. <groupId>org.apache.commons</groupId>
  285. <artifactId>commons-compress</artifactId>
  286. </exclusion>
  287. </exclusions>
  288. </dependency>
  289. <dependency>
  290. <groupId>org.apache.commons</groupId>
  291. <artifactId>commons-compress</artifactId>
  292. <version>1.24.0</version>
  293. </dependency>
  294. <!-- 获取系统信息 -->
  295. <dependency>
  296. <groupId>com.github.oshi</groupId>
  297. <artifactId>oshi-core</artifactId>
  298. <version>6.2.2</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>org.springframework.session</groupId>
  302. <artifactId>spring-session-core</artifactId>
  303. </dependency>
  304. <!-- 检测文件编码 -->
  305. <!-- https://mvnrepository.com/artifact/cpdetector/cpdetector -->
  306. <!--<dependency>-->
  307. <!-- <groupId>cpdetector</groupId>-->
  308. <!-- <artifactId>cpdetector</artifactId>-->
  309. <!-- <version>1.0.8</version>-->
  310. <!--</dependency>-->
  311. <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
  312. <dependency>
  313. <groupId>com.google.guava</groupId>
  314. <artifactId>guava</artifactId>
  315. <version>32.1.3-jre</version>
  316. </dependency>
  317. <!-- 自动化生成代码工具 -->
  318. <dependency>
  319. <groupId>org.projectlombok</groupId>
  320. <artifactId>lombok</artifactId>
  321. <version>1.18.30</version>
  322. <scope>provided</scope>
  323. </dependency>
  324. <!--LogViewer-->
  325. <!-- <dependency>-->
  326. <!-- <groupId>io.github.sevdokimov.logviewer</groupId>-->
  327. <!-- <artifactId>log-generator</artifactId>-->
  328. <!-- <version>1.0.10</version>-->
  329. <!-- </dependency>-->
  330. <dependency>
  331. <groupId>io.github.sevdokimov.logviewer</groupId>
  332. <artifactId>log-viewer-spring-boot</artifactId>
  333. <version>1.0.10</version>
  334. </dependency>
  335. <dependency>
  336. <groupId>org.springframework.boot</groupId>
  337. <artifactId>spring-boot-starter-test</artifactId>
  338. <scope>test</scope>
  339. </dependency>
  340. </dependencies>
  341. <build>
  342. <finalName>${project.artifactId}-${project.version}-${maven.build.timestamp}</finalName>
  343. <plugins>
  344. <plugin>
  345. <groupId>org.springframework.boot</groupId>
  346. <artifactId>spring-boot-maven-plugin</artifactId>
  347. <version>2.7.2</version>
  348. <configuration>
  349. <includeSystemScope>true</includeSystemScope>
  350. </configuration>
  351. </plugin>
  352. <plugin>
  353. <groupId>org.apache.maven.plugins</groupId>
  354. <artifactId>maven-compiler-plugin</artifactId>
  355. <version>3.8.1</version>
  356. <configuration>
  357. <source>1.8</source>
  358. <target>1.8</target>
  359. <annotationProcessorPaths>
  360. <path>
  361. <groupId>org.projectlombok</groupId>
  362. <artifactId>lombok</artifactId>
  363. <version>1.18.30</version>
  364. </path>
  365. </annotationProcessorPaths>
  366. </configuration>
  367. </plugin>
  368. <plugin>
  369. <groupId>pl.project13.maven</groupId>
  370. <artifactId>git-commit-id-plugin</artifactId>
  371. <version>3.0.1</version>
  372. <configuration>
  373. <offline>true</offline>
  374. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  375. <dateFormat>yyyyMMdd</dateFormat>
  376. </configuration>
  377. </plugin>
  378. <plugin>
  379. <groupId>org.apache.maven.plugins</groupId>
  380. <artifactId>maven-surefire-plugin</artifactId>
  381. <version>2.22.2</version>
  382. <configuration>
  383. <skipTests>true</skipTests>
  384. </configuration>
  385. </plugin>
  386. <plugin>
  387. <groupId>org.apache.maven.plugins</groupId>
  388. <artifactId>maven-jar-plugin</artifactId>
  389. <version>3.3.0</version>
  390. <configuration>
  391. <excludes>
  392. <exclude>**/配置详情.yml</exclude>
  393. <exclude>**/application.yml</exclude>
  394. <exclude>**/application-*.yml</exclude>
  395. <exclude>**/local.jks</exclude>
  396. </excludes>
  397. </configuration>
  398. </plugin>
  399. <plugin>
  400. <artifactId>maven-resources-plugin</artifactId>
  401. <executions>
  402. <execution> <!-- 复制配置文件 -->
  403. <id>copy-resources</id>
  404. <phase>package</phase>
  405. <goals>
  406. <goal>copy-resources</goal>
  407. </goals>
  408. <configuration>
  409. <resources>
  410. <resource>
  411. <directory>src/main/resources</directory>
  412. <includes>
  413. <include>application.yml</include>
  414. <include>application-*.yml</include>
  415. </includes>
  416. </resource>
  417. </resources>
  418. <outputDirectory>${project.build.directory}</outputDirectory>
  419. </configuration>
  420. </execution>
  421. </executions>
  422. </plugin>
  423. </plugins>
  424. <resources>
  425. <resource>
  426. <directory>src/main/resources</directory>
  427. </resource>
  428. <resource>
  429. <directory>src/main/java</directory>
  430. <includes>
  431. <include>**/*.xml</include>
  432. </includes>
  433. </resource>
  434. </resources>
  435. </build>
  436. </project>