pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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.17</version>
  10. </parent>
  11. <groupId>com.genersoft</groupId>
  12. <artifactId>wvp-gb28181-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. <nacos.config.version>2021.0.5.0</nacos.config.version>
  55. <nacos.discovery.version>2021.0.5.0</nacos.discovery.version>
  56. </properties>
  57. <profiles>
  58. <profile>
  59. <id>jar</id>
  60. <activation>
  61. <activeByDefault>true</activeByDefault>
  62. </activation>
  63. <properties>
  64. <project.packaging>jar</project.packaging>
  65. </properties>
  66. </profile>
  67. <profile>
  68. <id>war</id>
  69. <properties>
  70. <project.packaging>war</project.packaging>
  71. </properties>
  72. <dependencies>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-web</artifactId>
  76. <exclusions>
  77. <exclusion>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-jetty</artifactId>
  80. </exclusion>
  81. </exclusions>
  82. </dependency>
  83. <dependency>
  84. <groupId>javax.servlet</groupId>
  85. <artifactId>javax.servlet-api</artifactId>
  86. <version>3.1.0</version>
  87. <scope>provided</scope>
  88. </dependency>
  89. </dependencies>
  90. </profile>
  91. </profiles>
  92. <dependencies>
  93. <dependency>
  94. <groupId>com.alibaba.cloud</groupId>
  95. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  96. <version>${nacos.config.version}</version>
  97. </dependency>
  98. <!--注册中心-->
  99. <dependency>
  100. <groupId>com.alibaba.cloud</groupId>
  101. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  102. <version>${nacos.discovery.version}</version>
  103. </dependency>
  104. <!--开启Spring Cloud 应用程序启动时加载bootstrap配置文件-->
  105. <dependency>
  106. <groupId>org.springframework.cloud</groupId>
  107. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  108. <version>3.1.4</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-starter-data-redis</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-starter-cache</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-starter-web</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.springframework.boot</groupId>
  124. <artifactId>spring-boot-configuration-processor</artifactId>
  125. <optional>true</optional>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.mybatis.spring.boot</groupId>
  129. <artifactId>mybatis-spring-boot-starter</artifactId>
  130. <version>2.2.2</version>
  131. <exclusions>
  132. <exclusion>
  133. <groupId>com.zaxxer</groupId>
  134. <artifactId>HikariCP</artifactId>
  135. </exclusion>
  136. </exclusions>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-starter-security</artifactId>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.springframework.boot</groupId>
  144. <artifactId>spring-boot-starter-jdbc</artifactId>
  145. </dependency>
  146. <!-- mysql数据库 -->
  147. <dependency>
  148. <groupId>com.mysql</groupId>
  149. <artifactId>mysql-connector-j</artifactId>
  150. <version>8.2.0</version>
  151. </dependency>
  152. <!--postgresql-->
  153. <dependency>
  154. <groupId>org.postgresql</groupId>
  155. <artifactId>postgresql</artifactId>
  156. <version>42.5.1</version>
  157. </dependency>
  158. <!-- kingbase人大金仓 -->
  159. <!-- 手动下载驱动后安装 -->
  160. <!-- 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
  161. -->
  162. <dependency>
  163. <groupId>com.kingbase</groupId>
  164. <artifactId>kingbase8</artifactId>
  165. <version>8.6.0</version>
  166. <scope>system</scope>
  167. <systemPath>${basedir}/libs/jdbc-aarch/kingbase8-8.6.0.jar</systemPath>
  168. </dependency>
  169. <dependency>
  170. <groupId>com.kingbase</groupId>
  171. <artifactId>kingbase8</artifactId>
  172. <version>8.6.0</version>
  173. <scope>system</scope>
  174. <systemPath>${basedir}/libs/jdbc-x86/kingbase8-8.6.0.jar</systemPath>
  175. </dependency>
  176. <!--Mybatis分页插件 -->
  177. <dependency>
  178. <groupId>com.github.pagehelper</groupId>
  179. <artifactId>pagehelper-spring-boot-starter</artifactId>
  180. <version>1.4.6</version>
  181. </dependency>
  182. <!--在线文档 -->
  183. <!--在线文档 -->
  184. <dependency>
  185. <groupId>org.springdoc</groupId>
  186. <artifactId>springdoc-openapi-ui</artifactId>
  187. <version>1.6.10</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.springdoc</groupId>
  191. <artifactId>springdoc-openapi-security</artifactId>
  192. <version>1.6.10</version>
  193. </dependency>
  194. <!-- https://mvnrepository.com/artifact/com.baomidou/dynamic-datasource-spring-boot-starter -->
  195. <dependency>
  196. <groupId>com.baomidou</groupId>
  197. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  198. <version>3.6.1</version>
  199. </dependency>
  200. <!--在线文档 -->
  201. <dependency>
  202. <groupId>org.springdoc</groupId>
  203. <artifactId>springdoc-openapi-ui</artifactId>
  204. <version>1.6.10</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>com.github.xiaoymin</groupId>
  208. <artifactId>knife4j-springdoc-ui</artifactId>
  209. <version>3.0.3</version>
  210. </dependency>
  211. <!--参数校验 -->
  212. <dependency>
  213. <groupId>javax.validation</groupId>
  214. <artifactId>validation-api</artifactId>
  215. </dependency>
  216. <!-- 日志相关 -->
  217. <dependency>
  218. <groupId>org.springframework.boot</groupId>
  219. <artifactId>spring-boot-starter-aop</artifactId>
  220. </dependency>
  221. <!-- sip协议栈 -->
  222. <dependency>
  223. <groupId>javax.sip</groupId>
  224. <artifactId>jain-sip-ri</artifactId>
  225. <version>1.3.0-91</version>
  226. </dependency>
  227. <!-- 取代log4j -->
  228. <dependency>
  229. <groupId>org.slf4j</groupId>
  230. <artifactId>log4j-over-slf4j</artifactId>
  231. <version>1.7.36</version>
  232. </dependency>
  233. <!-- xml解析库 -->
  234. <dependency>
  235. <groupId>org.dom4j</groupId>
  236. <artifactId>dom4j</artifactId>
  237. <version>2.1.3</version>
  238. </dependency>
  239. <!-- json解析库fastjson2 -->
  240. <dependency>
  241. <groupId>com.alibaba.fastjson2</groupId>
  242. <artifactId>fastjson2</artifactId>
  243. <version>2.0.17</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>com.alibaba.fastjson2</groupId>
  247. <artifactId>fastjson2-extension</artifactId>
  248. <version>2.0.17</version>
  249. </dependency>
  250. <!-- okhttp -->
  251. <dependency>
  252. <groupId>com.squareup.okhttp3</groupId>
  253. <artifactId>okhttp</artifactId>
  254. <version>4.10.0</version>
  255. </dependency>
  256. <!-- okhttp 调试日志 -->
  257. <dependency>
  258. <groupId>com.squareup.okhttp3</groupId>
  259. <artifactId>logging-interceptor</artifactId>
  260. <version>4.10.0</version>
  261. </dependency>
  262. <!-- okhttp-digest -->
  263. <dependency>
  264. <groupId>io.github.rburgst</groupId>
  265. <artifactId>okhttp-digest</artifactId>
  266. <version>2.7</version>
  267. </dependency>
  268. <!-- https://mvnrepository.com/artifact/net.sf.kxml/kxml2 -->
  269. <!-- <dependency>-->
  270. <!-- <groupId>net.sf.kxml</groupId>-->
  271. <!-- <artifactId>kxml2</artifactId>-->
  272. <!-- <version>2.3.0</version>-->
  273. <!-- </dependency>-->
  274. <!-- jwt实现 -->
  275. <dependency>
  276. <groupId>org.bitbucket.b_c</groupId>
  277. <artifactId>jose4j</artifactId>
  278. <version>0.9.3</version>
  279. </dependency>
  280. <!--反向代理-->
  281. <dependency>
  282. <groupId>org.mitre.dsmiley.httpproxy</groupId>
  283. <artifactId>smiley-http-proxy-servlet</artifactId>
  284. <version>1.12.1</version>
  285. </dependency>
  286. <!--excel解析库-->
  287. <dependency>
  288. <groupId>com.alibaba</groupId>
  289. <artifactId>easyexcel</artifactId>
  290. <version>3.3.2</version>
  291. <exclusions>
  292. <exclusion>
  293. <groupId>org.apache.commons</groupId>
  294. <artifactId>commons-compress</artifactId>
  295. </exclusion>
  296. </exclusions>
  297. </dependency>
  298. <dependency>
  299. <groupId>org.apache.commons</groupId>
  300. <artifactId>commons-compress</artifactId>
  301. <version>1.24.0</version>
  302. </dependency>
  303. <!-- 获取系统信息 -->
  304. <dependency>
  305. <groupId>com.github.oshi</groupId>
  306. <artifactId>oshi-core</artifactId>
  307. <version>6.2.2</version>
  308. </dependency>
  309. <dependency>
  310. <groupId>org.springframework.session</groupId>
  311. <artifactId>spring-session-core</artifactId>
  312. </dependency>
  313. <!-- 检测文件编码 -->
  314. <!-- https://mvnrepository.com/artifact/cpdetector/cpdetector -->
  315. <!--<dependency>-->
  316. <!-- <groupId>cpdetector</groupId>-->
  317. <!-- <artifactId>cpdetector</artifactId>-->
  318. <!-- <version>1.0.8</version>-->
  319. <!--</dependency>-->
  320. <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
  321. <dependency>
  322. <groupId>com.google.guava</groupId>
  323. <artifactId>guava</artifactId>
  324. <version>32.1.3-jre</version>
  325. </dependency>
  326. <dependency>
  327. <groupId>org.springframework.boot</groupId>
  328. <artifactId>spring-boot-starter-test</artifactId>
  329. <scope>test</scope>
  330. </dependency>
  331. <!-- mybatis-plus -->
  332. <dependency>
  333. <groupId>com.baomidou</groupId>
  334. <artifactId>mybatis-plus-boot-starter</artifactId>
  335. <version>3.3.2</version>
  336. </dependency>
  337. <dependency>
  338. <groupId>cn.hutool</groupId>
  339. <artifactId>hutool-all</artifactId>
  340. <version>5.8.15</version>
  341. </dependency>
  342. <!--消除冗余代码使用-->
  343. <dependency>
  344. <groupId>org.projectlombok</groupId>
  345. <artifactId>lombok</artifactId>
  346. <version>1.18.20</version>
  347. </dependency>
  348. </dependencies>
  349. <build>
  350. <finalName>wvp-gb28181-pro</finalName>
  351. <plugins>
  352. <plugin>
  353. <groupId>org.springframework.boot</groupId>
  354. <artifactId>spring-boot-maven-plugin</artifactId>
  355. <version>2.7.2</version>
  356. <configuration>
  357. <includeSystemScope>true</includeSystemScope>
  358. </configuration>
  359. </plugin>
  360. <plugin>
  361. <groupId>org.apache.maven.plugins</groupId>
  362. <artifactId>maven-compiler-plugin</artifactId>
  363. <version>3.8.1</version>
  364. <configuration>
  365. <source>1.8</source>
  366. <target>1.8</target>
  367. </configuration>
  368. </plugin>
  369. <plugin>
  370. <groupId>pl.project13.maven</groupId>
  371. <artifactId>git-commit-id-plugin</artifactId>
  372. <version>3.0.1</version>
  373. <configuration>
  374. <offline>true</offline>
  375. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  376. <dateFormat>yyyyMMdd</dateFormat>
  377. </configuration>
  378. </plugin>
  379. <plugin>
  380. <groupId>org.apache.maven.plugins</groupId>
  381. <artifactId>maven-surefire-plugin</artifactId>
  382. <version>2.22.2</version>
  383. <configuration>
  384. <skipTests>true</skipTests>
  385. </configuration>
  386. </plugin>
  387. <plugin>
  388. <groupId>org.apache.maven.plugins</groupId>
  389. <artifactId>maven-jar-plugin</artifactId>
  390. <version>3.3.0</version>
  391. <configuration>
  392. <excludes>
  393. <exclude>**/all-application.yml</exclude>
  394. <exclude>**/local.jks</exclude>
  395. </excludes>
  396. </configuration>
  397. </plugin>
  398. <plugin>
  399. <artifactId>maven-resources-plugin</artifactId>
  400. <executions>
  401. <execution> <!-- 复制配置文件 -->
  402. <id>copy-resources</id>
  403. <phase>package</phase>
  404. <goals>
  405. <goal>copy-resources</goal>
  406. </goals>
  407. <configuration>
  408. <resources>
  409. <resource>
  410. <directory>src/main/resources</directory>
  411. <includes>
  412. <include>application.yml</include>
  413. <include>application-*.yml</include>
  414. </includes>
  415. </resource>
  416. </resources>
  417. <outputDirectory>${project.build.directory}</outputDirectory>
  418. </configuration>
  419. </execution>
  420. </executions>
  421. </plugin>
  422. </plugins>
  423. <resources>
  424. <resource>
  425. <directory>src/main/resources</directory>
  426. </resource>
  427. <resource>
  428. <directory>src/main/java</directory>
  429. <includes>
  430. <include>**/*.xml</include>
  431. </includes>
  432. </resource>
  433. </resources>
  434. </build>
  435. </project>