90 lines
3.5 KiB
XML
90 lines
3.5 KiB
XML
<?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">
|
|
<parent>
|
|
<artifactId>JavaBasiceDemo</artifactId>
|
|
<groupId>com.wyl.example</groupId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>javacv</artifactId>
|
|
<properties>
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
<javacv.version>1.5.9</javacv.version>
|
|
<system.windowsx64>windows-x86_64</system.windowsx64>
|
|
<system.linuxx64>linux-x86_64</system.linuxx64>
|
|
</properties>
|
|
<dependencies>
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>org.opencv</groupId>-->
|
|
<!-- <artifactId>opencv-480</artifactId>-->
|
|
<!-- <version>1.0.0-java1.8</version>-->
|
|
<!-- </dependency>-->
|
|
<!--JAVA使用javacv实现图片合成短视频,相关JAR包-->
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>org.bytedeco</groupId>-->
|
|
<!-- <artifactId>javacv-platform</artifactId>-->
|
|
<!-- <version>1.5.9</version>-->
|
|
<!-- </dependency>-->
|
|
|
|
<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>6.0-${javacv.version}</version>
|
|
<classifier>${system.windowsx64}</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.bytedeco</groupId>
|
|
<artifactId>ffmpeg</artifactId>
|
|
<version>6.0-${javacv.version}</version>
|
|
<classifier>${system.linuxx64}</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>2.13.0</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<configuration>
|
|
<archive>
|
|
<manifest>
|
|
<mainClass>com.wyl.javacv.JavaCvTest</mainClass>
|
|
</manifest>
|
|
</archive>
|
|
<descriptorRefs>
|
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
</descriptorRefs>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<!-- 在执行 package 打包时,执行 assembly:single 进行 jar 包合并操作 -->
|
|
<id>make-assembly</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |