123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.3.12.RELEASE</version>
- <relativePath /> <!-- lookup parent from repository -->
- </parent>
- <groupId>com.zj</groupId>
- <artifactId>EasyMedia</artifactId>
- <version>1.3.2</version>
- <name>EasyMedia</name>
- <description>一款简单的流媒体服务</description>
- <properties>
- <java.version>1.8</java.version>
- <opencv.version>4.7.0-0</opencv.version>
- <onnx.version>1.16.3</onnx.version>
- <cpu.arch>macosx-x86_64</cpu.arch>
- <java.main.class>com.zj.EasyMediaApplication</java.main.class>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>org.junit.vintage</groupId>
- <artifactId>junit-vintage-engine</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <!-- 全量引入 ,包含javacv、ffmpeg、opencv等
- <dependency>
- <groupId>org.bytedeco</groupId>
- <artifactId>javacv-platform</artifactId>
- <version>1.5.6</version>
- </dependency>
- -->
- <!-- 媒体只用到以下两个,javacv、ffmpeg -->
- <!--视频流处理-->
- <dependency>
- <groupId>org.bytedeco</groupId>
- <artifactId>javacv</artifactId>
- <version>1.5.9</version>
- </dependency>
- <dependency>
- <groupId>org.bytedeco</groupId>
- <artifactId>opencv</artifactId>
- <version>4.7.0-1.5.9</version>
- <classifier>${cpu.arch}</classifier>
- </dependency>
- <dependency>
- <groupId>org.bytedeco</groupId>
- <artifactId>ffmpeg</artifactId>
- <version>6.0-1.5.9</version>
- <classifier>${cpu.arch}</classifier>
- </dependency>
- <dependency>
- <groupId>org.openpnp</groupId>
- <artifactId>opencv</artifactId>
- <version>${opencv.version}</version>
- </dependency>
- <!--
- <dependency>
- <groupId>org.bytedeco</groupId>
- <artifactId>ffmpeg</artifactId>
- <version>4.4-1.5.6</version>
- <classifier>windows-x86_64</classifier>
- </dependency>
- <dependency>
- <groupId>org.bytedeco</groupId>
- <artifactId>ffmpeg</artifactId>
- <version>4.4-1.5.6</version>
- <classifier>linux-x86_64</classifier>
- </dependency>
- -->
- <!-- 工具包 -->
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-all</artifactId>
- <version>5.8.21</version>
- </dependency>
- <!-- netty -->
- <dependency>
- <groupId>io.netty</groupId>
- <artifactId>netty-all</artifactId>
- <version>4.1.59.Final</version>
- </dependency>
- <!-- h2驱动 -->
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <scope>runtime</scope>
- </dependency>
- <!-- jpa -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-jpa</artifactId>
- </dependency>
- <!-- mybatisplus -->
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-boot-starter</artifactId>
- <version>3.4.3.1</version>
- </dependency>
- <!-- 云台控制sdk需要 -->
- <dependency>
- <groupId>com.jna</groupId>
- <artifactId>jna</artifactId>
- <version>1.0.0</version>
- <scope>system</scope>
- <systemPath>${project.basedir}/sdk/jna.jar</systemPath>
- </dependency>
- <dependency>
- <groupId>com.examples</groupId>
- <artifactId>examples</artifactId>
- <version>1.0.0</version>
- <scope>system</scope>
- <systemPath>${project.basedir}/sdk/examples.jar</systemPath>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <includeSystemScope>true</includeSystemScope>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.6.0</version>
- <configuration>
- <mainClass>${java.main.class}</mainClass>
- <arguments>
- </arguments>
- <!--
- <executable>java</executable>
- <arguments>
- <argument>-Xmx64m</argument>
- <argument>-classpath</argument>
- <classpath />
- <argument>${java.main.class}</argument>
- </arguments>
- -->
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>java</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>linux_x64</id>
- <properties>
- <cpu.arch>linux-x86_64</cpu.arch>
- </properties>
- </profile>
- <profile>
- <id>mac_intel_x64</id>
- <properties>
- <cpu.arch>macosx-x86_64</cpu.arch>
- </properties>
- </profile>
- <profile>
- <id>win_intel_x64</id>
- <properties>
- <cpu.arch>windows-x86_64</cpu.arch>
- </properties>
- </profile>
- </profiles>
- </project>
|