pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  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-pro</artifactId>
  13. <version>2.7.0</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-web</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-configuration-processor</artifactId>
  102. <optional>true</optional>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.mybatis.spring.boot</groupId>
  106. <artifactId>mybatis-spring-boot-starter</artifactId>
  107. <version>2.2.2</version>
  108. <exclusions>
  109. <exclusion>
  110. <groupId>com.zaxxer</groupId>
  111. <artifactId>HikariCP</artifactId>
  112. </exclusion>
  113. </exclusions>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-starter-security</artifactId>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-starter-jdbc</artifactId>
  122. </dependency>
  123. <!-- mysql数据库 -->
  124. <dependency>
  125. <groupId>com.mysql</groupId>
  126. <artifactId>mysql-connector-j</artifactId>
  127. <version>8.2.0</version>
  128. </dependency>
  129. <!--postgresql-->
  130. <dependency>
  131. <groupId>org.postgresql</groupId>
  132. <artifactId>postgresql</artifactId>
  133. <version>42.5.1</version>
  134. </dependency>
  135. <!-- kingbase人大金仓 -->
  136. <!-- 手动下载驱动后安装 -->
  137. <!-- 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
  138. -->
  139. <dependency>
  140. <groupId>com.kingbase</groupId>
  141. <artifactId>kingbase8</artifactId>
  142. <version>8.6.0</version>
  143. <scope>system</scope>
  144. <systemPath>${basedir}/libs/jdbc-aarch/kingbase8-8.6.0.jar</systemPath>
  145. </dependency>
  146. <dependency>
  147. <groupId>com.kingbase</groupId>
  148. <artifactId>kingbase8</artifactId>
  149. <version>8.6.0</version>
  150. <scope>system</scope>
  151. <systemPath>${basedir}/libs/jdbc-x86/kingbase8-8.6.0.jar</systemPath>
  152. </dependency>
  153. <!--Mybatis分页插件 -->
  154. <dependency>
  155. <groupId>com.github.pagehelper</groupId>
  156. <artifactId>pagehelper-spring-boot-starter</artifactId>
  157. <version>1.4.6</version>
  158. </dependency>
  159. <!--在线文档 -->
  160. <!--在线文档 -->
  161. <dependency>
  162. <groupId>org.springdoc</groupId>
  163. <artifactId>springdoc-openapi-ui</artifactId>
  164. <version>1.6.10</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.springdoc</groupId>
  168. <artifactId>springdoc-openapi-security</artifactId>
  169. <version>1.6.10</version>
  170. </dependency>
  171. <!-- https://mvnrepository.com/artifact/com.baomidou/dynamic-datasource-spring-boot-starter -->
  172. <dependency>
  173. <groupId>com.baomidou</groupId>
  174. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  175. <version>3.6.1</version>
  176. </dependency>
  177. <!--在线文档 -->
  178. <dependency>
  179. <groupId>org.springdoc</groupId>
  180. <artifactId>springdoc-openapi-ui</artifactId>
  181. <version>1.6.10</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>com.github.xiaoymin</groupId>
  185. <artifactId>knife4j-springdoc-ui</artifactId>
  186. <version>3.0.3</version>
  187. </dependency>
  188. <!--参数校验 -->
  189. <dependency>
  190. <groupId>javax.validation</groupId>
  191. <artifactId>validation-api</artifactId>
  192. </dependency>
  193. <!-- 日志相关 -->
  194. <dependency>
  195. <groupId>org.springframework.boot</groupId>
  196. <artifactId>spring-boot-starter-aop</artifactId>
  197. </dependency>
  198. <!-- sip协议栈 -->
  199. <dependency>
  200. <groupId>javax.sip</groupId>
  201. <artifactId>jain-sip-ri</artifactId>
  202. <version>1.3.0-91</version>
  203. </dependency>
  204. <!-- 取代log4j -->
  205. <dependency>
  206. <groupId>org.slf4j</groupId>
  207. <artifactId>log4j-over-slf4j</artifactId>
  208. <version>1.7.36</version>
  209. </dependency>
  210. <!-- xml解析库 -->
  211. <dependency>
  212. <groupId>org.dom4j</groupId>
  213. <artifactId>dom4j</artifactId>
  214. <version>2.1.3</version>
  215. </dependency>
  216. <!-- json解析库fastjson2 -->
  217. <dependency>
  218. <groupId>com.alibaba.fastjson2</groupId>
  219. <artifactId>fastjson2</artifactId>
  220. <version>2.0.17</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>com.alibaba.fastjson2</groupId>
  224. <artifactId>fastjson2-extension</artifactId>
  225. <version>2.0.17</version>
  226. </dependency>
  227. <!-- okhttp -->
  228. <dependency>
  229. <groupId>com.squareup.okhttp3</groupId>
  230. <artifactId>okhttp</artifactId>
  231. <version>4.10.0</version>
  232. </dependency>
  233. <!-- okhttp 调试日志 -->
  234. <dependency>
  235. <groupId>com.squareup.okhttp3</groupId>
  236. <artifactId>logging-interceptor</artifactId>
  237. <version>4.10.0</version>
  238. </dependency>
  239. <!-- okhttp-digest -->
  240. <dependency>
  241. <groupId>io.github.rburgst</groupId>
  242. <artifactId>okhttp-digest</artifactId>
  243. <version>2.7</version>
  244. </dependency>
  245. <!-- https://mvnrepository.com/artifact/net.sf.kxml/kxml2 -->
  246. <!-- <dependency>-->
  247. <!-- <groupId>net.sf.kxml</groupId>-->
  248. <!-- <artifactId>kxml2</artifactId>-->
  249. <!-- <version>2.3.0</version>-->
  250. <!-- </dependency>-->
  251. <!-- jwt实现 -->
  252. <dependency>
  253. <groupId>org.bitbucket.b_c</groupId>
  254. <artifactId>jose4j</artifactId>
  255. <version>0.9.3</version>
  256. </dependency>
  257. <!--反向代理-->
  258. <dependency>
  259. <groupId>org.mitre.dsmiley.httpproxy</groupId>
  260. <artifactId>smiley-http-proxy-servlet</artifactId>
  261. <version>1.12.1</version>
  262. </dependency>
  263. <!--excel解析库-->
  264. <dependency>
  265. <groupId>com.alibaba</groupId>
  266. <artifactId>easyexcel</artifactId>
  267. <version>3.3.2</version>
  268. <exclusions>
  269. <exclusion>
  270. <groupId>org.apache.commons</groupId>
  271. <artifactId>commons-compress</artifactId>
  272. </exclusion>
  273. </exclusions>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.apache.commons</groupId>
  277. <artifactId>commons-compress</artifactId>
  278. <version>1.24.0</version>
  279. </dependency>
  280. <!-- 获取系统信息 -->
  281. <dependency>
  282. <groupId>com.github.oshi</groupId>
  283. <artifactId>oshi-core</artifactId>
  284. <version>6.2.2</version>
  285. </dependency>
  286. <dependency>
  287. <groupId>org.springframework.session</groupId>
  288. <artifactId>spring-session-core</artifactId>
  289. </dependency>
  290. <!-- 检测文件编码 -->
  291. <!-- https://mvnrepository.com/artifact/cpdetector/cpdetector -->
  292. <!--<dependency>-->
  293. <!-- <groupId>cpdetector</groupId>-->
  294. <!-- <artifactId>cpdetector</artifactId>-->
  295. <!-- <version>1.0.8</version>-->
  296. <!--</dependency>-->
  297. <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
  298. <dependency>
  299. <groupId>com.google.guava</groupId>
  300. <artifactId>guava</artifactId>
  301. <version>32.1.3-jre</version>
  302. </dependency>
  303. <dependency>
  304. <groupId>org.springframework.boot</groupId>
  305. <artifactId>spring-boot-starter-test</artifactId>
  306. <scope>test</scope>
  307. </dependency>
  308. </dependencies>
  309. <build>
  310. <finalName>${project.artifactId}-${project.version}-${maven.build.timestamp}</finalName>
  311. <plugins>
  312. <plugin>
  313. <groupId>org.springframework.boot</groupId>
  314. <artifactId>spring-boot-maven-plugin</artifactId>
  315. <version>2.7.2</version>
  316. <configuration>
  317. <includeSystemScope>true</includeSystemScope>
  318. </configuration>
  319. </plugin>
  320. <plugin>
  321. <groupId>org.apache.maven.plugins</groupId>
  322. <artifactId>maven-compiler-plugin</artifactId>
  323. <version>3.8.1</version>
  324. <configuration>
  325. <source>1.8</source>
  326. <target>1.8</target>
  327. </configuration>
  328. </plugin>
  329. <plugin>
  330. <groupId>pl.project13.maven</groupId>
  331. <artifactId>git-commit-id-plugin</artifactId>
  332. <version>3.0.1</version>
  333. <configuration>
  334. <offline>true</offline>
  335. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  336. <dateFormat>yyyyMMdd</dateFormat>
  337. </configuration>
  338. </plugin>
  339. <plugin>
  340. <groupId>org.apache.maven.plugins</groupId>
  341. <artifactId>maven-surefire-plugin</artifactId>
  342. <version>2.22.2</version>
  343. <configuration>
  344. <skipTests>true</skipTests>
  345. </configuration>
  346. </plugin>
  347. <plugin>
  348. <groupId>org.apache.maven.plugins</groupId>
  349. <artifactId>maven-jar-plugin</artifactId>
  350. <version>3.3.0</version>
  351. <configuration>
  352. <excludes>
  353. <exclude>**/all-application.yml</exclude>
  354. <exclude>**/application.yml</exclude>
  355. <exclude>**/application-*.yml</exclude>
  356. <exclude>**/local.jks</exclude>
  357. </excludes>
  358. </configuration>
  359. </plugin>
  360. <plugin>
  361. <artifactId>maven-resources-plugin</artifactId>
  362. <executions>
  363. <execution> <!-- 复制配置文件 -->
  364. <id>copy-resources</id>
  365. <phase>package</phase>
  366. <goals>
  367. <goal>copy-resources</goal>
  368. </goals>
  369. <configuration>
  370. <resources>
  371. <resource>
  372. <directory>src/main/resources</directory>
  373. <includes>
  374. <include>application.yml</include>
  375. <include>application-*.yml</include>
  376. </includes>
  377. </resource>
  378. </resources>
  379. <outputDirectory>${project.build.directory}</outputDirectory>
  380. </configuration>
  381. </execution>
  382. </executions>
  383. </plugin>
  384. </plugins>
  385. <resources>
  386. <resource>
  387. <directory>src/main/resources</directory>
  388. </resource>
  389. <resource>
  390. <directory>src/main/java</directory>
  391. <includes>
  392. <include>**/*.xml</include>
  393. </includes>
  394. </resource>
  395. </resources>
  396. </build>
  397. </project>