pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.3.12.RELEASE</version>
  10. <relativePath /> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>com.zj</groupId>
  13. <artifactId>EasyMedia</artifactId>
  14. <version>1.3.2</version>
  15. <name>EasyMedia</name>
  16. <description>一款简单的流媒体服务</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <opencv.version>4.7.0-0</opencv.version>
  20. <onnx.version>1.16.3</onnx.version>
  21. <cpu.arch>macosx-x86_64</cpu.arch>
  22. <java.main.class>com.zj.EasyMediaApplication</java.main.class>
  23. </properties>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-web</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-devtools</artifactId>
  32. <optional>true</optional>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.projectlombok</groupId>
  36. <artifactId>lombok</artifactId>
  37. <optional>true</optional>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-test</artifactId>
  42. <scope>test</scope>
  43. <exclusions>
  44. <exclusion>
  45. <groupId>org.junit.vintage</groupId>
  46. <artifactId>junit-vintage-engine</artifactId>
  47. </exclusion>
  48. </exclusions>
  49. </dependency>
  50. <!-- 全量引入 ,包含javacv、ffmpeg、opencv等
  51. <dependency>
  52. <groupId>org.bytedeco</groupId>
  53. <artifactId>javacv-platform</artifactId>
  54. <version>1.5.6</version>
  55. </dependency>
  56. -->
  57. <!-- 媒体只用到以下两个,javacv、ffmpeg -->
  58. <!--视频流处理-->
  59. <dependency>
  60. <groupId>org.bytedeco</groupId>
  61. <artifactId>javacv</artifactId>
  62. <version>1.5.9</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.bytedeco</groupId>
  66. <artifactId>opencv</artifactId>
  67. <version>4.7.0-1.5.9</version>
  68. <classifier>${cpu.arch}</classifier>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.bytedeco</groupId>
  72. <artifactId>ffmpeg</artifactId>
  73. <version>6.0-1.5.9</version>
  74. <classifier>${cpu.arch}</classifier>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.openpnp</groupId>
  78. <artifactId>opencv</artifactId>
  79. <version>${opencv.version}</version>
  80. </dependency>
  81. <!--
  82. <dependency>
  83. <groupId>org.bytedeco</groupId>
  84. <artifactId>ffmpeg</artifactId>
  85. <version>4.4-1.5.6</version>
  86. <classifier>windows-x86_64</classifier>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.bytedeco</groupId>
  90. <artifactId>ffmpeg</artifactId>
  91. <version>4.4-1.5.6</version>
  92. <classifier>linux-x86_64</classifier>
  93. </dependency>
  94. -->
  95. <!-- 工具包 -->
  96. <dependency>
  97. <groupId>cn.hutool</groupId>
  98. <artifactId>hutool-all</artifactId>
  99. <version>5.8.21</version>
  100. </dependency>
  101. <!-- netty -->
  102. <dependency>
  103. <groupId>io.netty</groupId>
  104. <artifactId>netty-all</artifactId>
  105. <version>4.1.59.Final</version>
  106. </dependency>
  107. <!-- h2驱动 -->
  108. <dependency>
  109. <groupId>com.h2database</groupId>
  110. <artifactId>h2</artifactId>
  111. <scope>runtime</scope>
  112. </dependency>
  113. <!-- jpa -->
  114. <dependency>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-starter-data-jpa</artifactId>
  117. </dependency>
  118. <!-- mybatisplus -->
  119. <dependency>
  120. <groupId>com.baomidou</groupId>
  121. <artifactId>mybatis-plus-boot-starter</artifactId>
  122. <version>3.4.3.1</version>
  123. </dependency>
  124. <!-- 云台控制sdk需要 -->
  125. <dependency>
  126. <groupId>com.jna</groupId>
  127. <artifactId>jna</artifactId>
  128. <version>1.0.0</version>
  129. <scope>system</scope>
  130. <systemPath>${project.basedir}/sdk/jna.jar</systemPath>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.examples</groupId>
  134. <artifactId>examples</artifactId>
  135. <version>1.0.0</version>
  136. <scope>system</scope>
  137. <systemPath>${project.basedir}/sdk/examples.jar</systemPath>
  138. </dependency>
  139. </dependencies>
  140. <build>
  141. <plugins>
  142. <plugin>
  143. <groupId>org.springframework.boot</groupId>
  144. <artifactId>spring-boot-maven-plugin</artifactId>
  145. <configuration>
  146. <includeSystemScope>true</includeSystemScope>
  147. </configuration>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.codehaus.mojo</groupId>
  151. <artifactId>exec-maven-plugin</artifactId>
  152. <version>1.6.0</version>
  153. <configuration>
  154. <mainClass>${java.main.class}</mainClass>
  155. <arguments>
  156. </arguments>
  157. <!--
  158. <executable>java</executable>
  159. <arguments>
  160. <argument>-Xmx64m</argument>
  161. <argument>-classpath</argument>
  162. <classpath />
  163. <argument>${java.main.class}</argument>
  164. </arguments>
  165. -->
  166. </configuration>
  167. <executions>
  168. <execution>
  169. <goals>
  170. <goal>java</goal>
  171. </goals>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. </plugins>
  176. </build>
  177. <profiles>
  178. <profile>
  179. <id>linux_x64</id>
  180. <properties>
  181. <cpu.arch>linux-x86_64</cpu.arch>
  182. </properties>
  183. </profile>
  184. <profile>
  185. <id>mac_intel_x64</id>
  186. <properties>
  187. <cpu.arch>macosx-x86_64</cpu.arch>
  188. </properties>
  189. </profile>
  190. <profile>
  191. <id>win_intel_x64</id>
  192. <properties>
  193. <cpu.arch>windows-x86_64</cpu.arch>
  194. </properties>
  195. </profile>
  196. </profiles>
  197. </project>