pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. <!-- 媒体只用到以下两个,javacv、ffmpeg -->
  57. <!--视频流处理-->
  58. <dependency>
  59. <groupId>org.bytedeco</groupId>
  60. <artifactId>javacv</artifactId>
  61. <version>1.5.9</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.bytedeco</groupId>
  65. <artifactId>opencv</artifactId>
  66. <version>4.7.0-1.5.9</version>
  67. <classifier>${cpu.arch}</classifier>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.bytedeco</groupId>
  71. <artifactId>ffmpeg</artifactId>
  72. <version>6.0-1.5.9</version>
  73. <classifier>${cpu.arch}</classifier>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.openpnp</groupId>
  77. <artifactId>opencv</artifactId>
  78. <version>${opencv.version}</version>
  79. </dependency>
  80. <!--
  81. <dependency>
  82. <groupId>org.bytedeco</groupId>
  83. <artifactId>ffmpeg</artifactId>
  84. <version>4.4-1.5.6</version>
  85. <classifier>windows-x86_64</classifier>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.bytedeco</groupId>
  89. <artifactId>ffmpeg</artifactId>
  90. <version>4.4-1.5.6</version>
  91. <classifier>linux-x86_64</classifier>
  92. </dependency>
  93. -->
  94. <!-- 工具包 -->
  95. <dependency>
  96. <groupId>cn.hutool</groupId>
  97. <artifactId>hutool-all</artifactId>
  98. <version>5.8.21</version>
  99. </dependency>
  100. <!-- netty -->
  101. <dependency>
  102. <groupId>io.netty</groupId>
  103. <artifactId>netty-all</artifactId>
  104. <version>4.1.59.Final</version>
  105. </dependency>
  106. <!-- h2驱动 -->
  107. <dependency>
  108. <groupId>com.h2database</groupId>
  109. <artifactId>h2</artifactId>
  110. <scope>runtime</scope>
  111. </dependency>
  112. <!-- jpa -->
  113. <dependency>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-starter-data-jpa</artifactId>
  116. </dependency>
  117. <!-- mybatisplus -->
  118. <dependency>
  119. <groupId>com.baomidou</groupId>
  120. <artifactId>mybatis-plus-boot-starter</artifactId>
  121. <version>3.4.3.1</version>
  122. </dependency>
  123. <!-- 云台控制sdk需要 -->
  124. <dependency>
  125. <groupId>com.jna</groupId>
  126. <artifactId>jna</artifactId>
  127. <version>1.0.0</version>
  128. <scope>system</scope>
  129. <systemPath>${project.basedir}/sdk/jna.jar</systemPath>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.examples</groupId>
  133. <artifactId>examples</artifactId>
  134. <version>1.0.0</version>
  135. <scope>system</scope>
  136. <systemPath>${project.basedir}/sdk/examples.jar</systemPath>
  137. </dependency>
  138. </dependencies>
  139. <build>
  140. <plugins>
  141. <plugin>
  142. <groupId>org.springframework.boot</groupId>
  143. <artifactId>spring-boot-maven-plugin</artifactId>
  144. <configuration>
  145. <includeSystemScope>true</includeSystemScope>
  146. </configuration>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.codehaus.mojo</groupId>
  150. <artifactId>exec-maven-plugin</artifactId>
  151. <version>1.6.0</version>
  152. <configuration>
  153. <mainClass>${java.main.class}</mainClass>
  154. <arguments>
  155. </arguments>
  156. <!--
  157. <executable>java</executable>
  158. <arguments>
  159. <argument>-Xmx64m</argument>
  160. <argument>-classpath</argument>
  161. <classpath />
  162. <argument>${java.main.class}</argument>
  163. </arguments>
  164. -->
  165. </configuration>
  166. <executions>
  167. <execution>
  168. <goals>
  169. <goal>java</goal>
  170. </goals>
  171. </execution>
  172. </executions>
  173. </plugin>
  174. </plugins>
  175. </build>
  176. <profiles>
  177. <profile>
  178. <id>linux_x64</id>
  179. <properties>
  180. <cpu.arch>linux-x86_64</cpu.arch>
  181. </properties>
  182. </profile>
  183. <profile>
  184. <id>mac_intel_x64</id>
  185. <properties>
  186. <cpu.arch>macosx-x86_64</cpu.arch>
  187. </properties>
  188. </profile>
  189. <profile>
  190. <id>win_intel_x64</id>
  191. <properties>
  192. <cpu.arch>windows-x86_64</cpu.arch>
  193. </properties>
  194. </profile>
  195. </profiles>
  196. </project>