2022-11-21 09:39:53 +08:00
|
|
|
|
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
|
|
<groupId>com.hisense</groupId>
|
|
|
|
|
<artifactId>dahua_video</artifactId>
|
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
|
|
|
|
|
<kotlin.version>1.7.20</kotlin.version>
|
|
|
|
|
|
|
|
|
|
<maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
|
|
|
|
|
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
|
|
|
|
|
<exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
|
|
|
|
|
|
|
|
|
|
<vertx.version>4.3.4</vertx.version>
|
|
|
|
|
<junit-jupiter.version>5.7.0</junit-jupiter.version>
|
|
|
|
|
|
|
|
|
|
<caffeine.version>3.1.1</caffeine.version>
|
|
|
|
|
<log4j.version>2.8.2</log4j.version>
|
|
|
|
|
<disruptor.version>3.3.6</disruptor.version>
|
|
|
|
|
<exposed.version>0.40.1</exposed.version>
|
|
|
|
|
<sqlite-jdbc.version>3.39.4.0</sqlite-jdbc.version>
|
|
|
|
|
<HikariCP.version>4.0.3</HikariCP.version>
|
2022-11-22 17:42:21 +08:00
|
|
|
|
<javacv.version>1.5.7</javacv.version>
|
|
|
|
|
<system.linux-x86_64>linux-x86_64</system.linux-x86_64>
|
|
|
|
|
<ffmpeg.version>5.0</ffmpeg.version>
|
2022-11-21 09:39:53 +08:00
|
|
|
|
|
|
|
|
|
<main.verticle>com.hisense.dahua_video.MainVerticle</main.verticle>
|
|
|
|
|
<launcher.class>io.vertx.core.Launcher</launcher.class>
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.vertx</groupId>
|
|
|
|
|
<artifactId>vertx-stack-depchain</artifactId>
|
|
|
|
|
<version>${vertx.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.vertx</groupId>
|
|
|
|
|
<artifactId>vertx-web-client</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.vertx</groupId>
|
|
|
|
|
<artifactId>vertx-config</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.vertx</groupId>
|
|
|
|
|
<artifactId>vertx-web-templ-thymeleaf</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.vertx</groupId>
|
|
|
|
|
<artifactId>vertx-web</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.vertx</groupId>
|
|
|
|
|
<artifactId>vertx-lang-kotlin</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.vertx</groupId>
|
|
|
|
|
<artifactId>vertx-lang-kotlin-coroutines</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
|
|
|
|
<version>${kotlin.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.netty</groupId>
|
|
|
|
|
<artifactId>netty-transport-native-epoll</artifactId>
|
|
|
|
|
<classifier>linux-x86_64</classifier>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.vertx</groupId>
|
|
|
|
|
<artifactId>vertx-hazelcast</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.github.ben-manes.caffeine/caffeine -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
|
|
|
|
<artifactId>caffeine</artifactId>
|
|
|
|
|
<version>${caffeine.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.jetbrains.exposed</groupId>
|
|
|
|
|
<artifactId>exposed-core</artifactId>
|
|
|
|
|
<version>${exposed.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.jetbrains.exposed</groupId>
|
|
|
|
|
<artifactId>exposed-jdbc</artifactId>
|
|
|
|
|
<version>${exposed.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.jetbrains.exposed</groupId>
|
|
|
|
|
<artifactId>exposed-java-time</artifactId>
|
|
|
|
|
<version>${exposed.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.xerial</groupId>
|
|
|
|
|
<artifactId>sqlite-jdbc</artifactId>
|
|
|
|
|
<version>${sqlite-jdbc.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.zaxxer/HikariCP -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.zaxxer</groupId>
|
|
|
|
|
<artifactId>HikariCP</artifactId>
|
|
|
|
|
<version>${HikariCP.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- log4j2 日志配置-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
|
<artifactId>log4j-api</artifactId>
|
|
|
|
|
<version>${log4j.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
|
<artifactId>log4j-core</artifactId>
|
|
|
|
|
<version>${log4j.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
|
<artifactId>log4j-slf4j-impl</artifactId>
|
|
|
|
|
<version>${log4j.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
|
<artifactId>log4j-jcl</artifactId>
|
|
|
|
|
<version>${log4j.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
|
<artifactId>log4j-jul</artifactId>
|
|
|
|
|
<version>${log4j.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.lmax</groupId>
|
|
|
|
|
<artifactId>disruptor</artifactId>
|
|
|
|
|
<version>${disruptor.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!--日志配置结束-->
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.vertx</groupId>
|
|
|
|
|
<artifactId>vertx-junit5</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
|
|
|
<version>${junit-jupiter.version}</version>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
|
<artifactId>junit-jupiter-engine</artifactId>
|
|
|
|
|
<version>${junit-jupiter.version}</version>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
2022-11-22 17:42:21 +08:00
|
|
|
|
|
|
|
|
|
<!-- javacv+javacpp核心库-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.bytedeco</groupId>
|
|
|
|
|
<artifactId>javacv</artifactId>
|
|
|
|
|
<version>${javacv.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.bytedeco</groupId>
|
|
|
|
|
<artifactId>javacpp-platform</artifactId>
|
|
|
|
|
<version>${javacv.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!-- ffmpeg最小依赖包,必须包含上面的javacv+javacpp核心库 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.bytedeco</groupId>
|
|
|
|
|
<artifactId>ffmpeg</artifactId>
|
|
|
|
|
<version>${ffmpeg.version}-${javacv.version}</version>
|
|
|
|
|
<classifier>${system.linux-x86_64}</classifier>
|
|
|
|
|
</dependency>
|
2022-11-21 09:39:53 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
|
|
|
|
|
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
|
|
|
<version>${kotlin.version}</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<jvmTarget>11</jvmTarget>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>compile</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>compile</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>test-compile</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>test-compile</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
|
<version>${maven-shade-plugin.version}</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>shade</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<transformers>
|
|
|
|
|
<transformer
|
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
|
|
|
<manifestEntries>
|
|
|
|
|
<Main-Class>${launcher.class}</Main-Class>
|
|
|
|
|
<Main-Verticle>${main.verticle}</Main-Verticle>
|
|
|
|
|
</manifestEntries>
|
|
|
|
|
</transformer>
|
|
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
|
|
|
</transformers>
|
|
|
|
|
<outputFile>${project.build.directory}/${project.artifactId}-${project.version}-fat.jar
|
|
|
|
|
</outputFile>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
<version>${maven-surefire-plugin.version}</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
|
<version>${exec-maven-plugin.version}</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<mainClass>io.vertx.core.Launcher</mainClass>
|
|
|
|
|
<arguments>
|
|
|
|
|
<argument>run</argument>
|
|
|
|
|
<argument>${main.verticle}</argument>
|
|
|
|
|
</arguments>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<source>8</source>
|
|
|
|
|
<target>8</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|