pom.xml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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.2</version>
  10. </parent>
  11. <groupId>com.genersoft</groupId>
  12. <artifactId>hfy-gb</artifactId>
  13. <version>1.0.1</version>
  14. <name>hfy-gb28181</name>
  15. <description>hfy国标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. <!-- druid数据库连接池 -->
  120. <dependency>
  121. <groupId>com.alibaba</groupId>
  122. <artifactId>druid-spring-boot-starter</artifactId>
  123. <version>1.2.11</version>
  124. </dependency>
  125. <!-- mysql数据库 -->
  126. <dependency>
  127. <groupId>mysql</groupId>
  128. <artifactId>mysql-connector-java</artifactId>
  129. <version>8.0.30</version>
  130. </dependency>
  131. <!--Mybatis分页插件 -->
  132. <dependency>
  133. <groupId>com.github.pagehelper</groupId>
  134. <artifactId>pagehelper-spring-boot-starter</artifactId>
  135. <version>1.4.3</version>
  136. </dependency>
  137. <!--在线文档 -->
  138. <dependency>
  139. <groupId>org.springdoc</groupId>
  140. <artifactId>springdoc-openapi-ui</artifactId>
  141. <version>1.6.10</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.github.xiaoymin</groupId>
  145. <artifactId>knife4j-springdoc-ui</artifactId>
  146. <version>3.0.3</version>
  147. </dependency>
  148. <!--参数校验 -->
  149. <dependency>
  150. <groupId>javax.validation</groupId>
  151. <artifactId>validation-api</artifactId>
  152. </dependency>
  153. <!-- 日志相关 -->
  154. <dependency>
  155. <groupId>org.springframework.boot</groupId>
  156. <artifactId>spring-boot-starter-aop</artifactId>
  157. </dependency>
  158. <!-- sip协议栈 -->
  159. <dependency>
  160. <groupId>javax.sip</groupId>
  161. <artifactId>jain-sip-ri</artifactId>
  162. <version>1.3.0-91</version>
  163. </dependency>
  164. <!-- 取代log4j -->
  165. <dependency>
  166. <groupId>org.slf4j</groupId>
  167. <artifactId>log4j-over-slf4j</artifactId>
  168. <version>1.7.36</version>
  169. </dependency>
  170. <!-- xml解析库 -->
  171. <dependency>
  172. <groupId>org.dom4j</groupId>
  173. <artifactId>dom4j</artifactId>
  174. <version>2.1.3</version>
  175. </dependency>
  176. <!-- json解析库fastjson2 -->
  177. <dependency>
  178. <groupId>com.alibaba.fastjson2</groupId>
  179. <artifactId>fastjson2</artifactId>
  180. <version>2.0.17</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>com.alibaba.fastjson2</groupId>
  184. <artifactId>fastjson2-extension</artifactId>
  185. <version>2.0.17</version>
  186. </dependency>
  187. <!-- okhttp -->
  188. <dependency>
  189. <groupId>com.squareup.okhttp3</groupId>
  190. <artifactId>okhttp</artifactId>
  191. <version>4.10.0</version>
  192. </dependency>
  193. <!-- okhttp 调试日志 -->
  194. <dependency>
  195. <groupId>com.squareup.okhttp3</groupId>
  196. <artifactId>logging-interceptor</artifactId>
  197. <version>4.10.0</version>
  198. </dependency>
  199. <!-- okhttp-digest -->
  200. <dependency>
  201. <groupId>io.github.rburgst</groupId>
  202. <artifactId>okhttp-digest</artifactId>
  203. <version>2.7</version>
  204. </dependency>
  205. <!-- https://mvnrepository.com/artifact/net.sf.kxml/kxml2 -->
  206. <!-- <dependency>-->
  207. <!-- <groupId>net.sf.kxml</groupId>-->
  208. <!-- <artifactId>kxml2</artifactId>-->
  209. <!-- <version>2.3.0</version>-->
  210. <!-- </dependency>-->
  211. <!-- jwt实现 -->
  212. <dependency>
  213. <groupId>org.bitbucket.b_c</groupId>
  214. <artifactId>jose4j</artifactId>
  215. <version>0.9.3</version>
  216. </dependency>
  217. <!--反向代理-->
  218. <dependency>
  219. <groupId>org.mitre.dsmiley.httpproxy</groupId>
  220. <artifactId>smiley-http-proxy-servlet</artifactId>
  221. <version>1.12.1</version>
  222. </dependency>
  223. <!--excel解析库-->
  224. <dependency>
  225. <groupId>com.alibaba</groupId>
  226. <artifactId>easyexcel</artifactId>
  227. <version>3.1.1</version>
  228. </dependency>
  229. <!-- 获取系统信息 -->
  230. <dependency>
  231. <groupId>com.github.oshi</groupId>
  232. <artifactId>oshi-core</artifactId>
  233. <version>6.2.2</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>org.springframework.session</groupId>
  237. <artifactId>spring-session-core</artifactId>
  238. </dependency>
  239. <!-- &lt;!&ndash; 检测文件编码 &ndash;&gt;-->
  240. <!-- &lt;!&ndash; https://mvnrepository.com/artifact/cpdetector/cpdetector &ndash;&gt;-->
  241. <!-- <dependency>-->
  242. <!-- <groupId>cpdetector</groupId>-->
  243. <!-- <artifactId>cpdetector</artifactId>-->
  244. <!-- <version>1.0.8</version>-->
  245. <!-- </dependency>-->
  246. <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
  247. <dependency>
  248. <groupId>com.google.guava</groupId>
  249. <artifactId>guava</artifactId>
  250. <version>31.1-jre</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>org.springframework.boot</groupId>
  254. <artifactId>spring-boot-starter-test</artifactId>
  255. <!-- <scope>test</scope>-->
  256. </dependency>
  257. </dependencies>
  258. <build>
  259. <!-- <finalName>${project.artifactId}-${project.version}-${maven.build.timestamp}</finalName>-->
  260. <finalName>${project.artifactId}</finalName>
  261. <plugins>
  262. <plugin>
  263. <groupId>org.springframework.boot</groupId>
  264. <artifactId>spring-boot-maven-plugin</artifactId>
  265. <version>2.3.5.RELEASE</version>
  266. <configuration>
  267. <includeSystemScope>true</includeSystemScope>
  268. </configuration>
  269. </plugin>
  270. <plugin>
  271. <groupId>org.apache.maven.plugins</groupId>
  272. <artifactId>maven-compiler-plugin</artifactId>
  273. <version>3.8.1</version>
  274. <configuration>
  275. <source>1.8</source>
  276. <target>1.8</target>
  277. </configuration>
  278. </plugin>
  279. <plugin>
  280. <groupId>pl.project13.maven</groupId>
  281. <artifactId>git-commit-id-plugin</artifactId>
  282. <version>3.0.1</version>
  283. <configuration>
  284. <offline>true</offline>
  285. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  286. <dateFormat>yyyyMMdd</dateFormat>
  287. </configuration>
  288. </plugin>
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-surefire-plugin</artifactId>
  292. <version>2.22.2</version>
  293. <configuration>
  294. <skipTests>true</skipTests>
  295. </configuration>
  296. </plugin>
  297. </plugins>
  298. <resources>
  299. <resource>
  300. <directory>src/main/resources</directory>
  301. </resource>
  302. <resource>
  303. <directory>src/main/java</directory>
  304. <includes>
  305. <include>**/*.xml</include>
  306. </includes>
  307. </resource>
  308. </resources>
  309. </build>
  310. </project>