mirror of
https://github.com/geekwenjie/SmartJavaAI.git
synced 2026-09-12 12:48:57 +00:00
116 lines
4.1 KiB
XML
116 lines
4.1 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">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<groupId>ink.numberone</groupId>
|
||
<artifactId>examples</artifactId>
|
||
<version>1.0.0-SNAPSHOT</version>
|
||
|
||
<properties>
|
||
<maven.compiler.source>11</maven.compiler.source>
|
||
<maven.compiler.target>11</maven.compiler.target>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<smartjavaai.version>1.0.0-SNAPSHOT</smartjavaai.version>
|
||
<exec.mainClass>smartai.examples.face.FaceDemo</exec.mainClass>
|
||
</properties>
|
||
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>commons-cli</groupId>
|
||
<artifactId>commons-cli</artifactId>
|
||
<version>1.9.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>commons-io</groupId>
|
||
<artifactId>commons-io</artifactId>
|
||
<version>2.17.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.logging.log4j</groupId>
|
||
<artifactId>log4j-slf4j2-impl</artifactId>
|
||
<version>2.24.1</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.testng</groupId>
|
||
<artifactId>testng</artifactId>
|
||
<version>7.10.2</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>ink.numberone</groupId>
|
||
<artifactId>smartjavaai-face</artifactId>
|
||
<version>1.0.5</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>ch.qos.logback</groupId>
|
||
<artifactId>logback-classic</artifactId>
|
||
<version>1.2.3</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.slf4j</groupId>
|
||
<artifactId>slf4j-api</artifactId>
|
||
<version>1.7.30</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>fastjson</artifactId>
|
||
<version>1.2.83</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>ai.djl.onnxruntime</groupId>
|
||
<artifactId>onnxruntime-engine</artifactId>
|
||
<version>0.20.0</version>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<finalName>example</finalName>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-assembly-plugin</artifactId>
|
||
<version>2.3</version>
|
||
<configuration>
|
||
<!--如果不想在打包的后缀加上assembly.xml中设置的id,可以加上下面的配置-->
|
||
<appendAssemblyId>false</appendAssemblyId>
|
||
<descriptorRefs>
|
||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||
</descriptorRefs>
|
||
<archive>
|
||
<manifest>
|
||
<!-- 是否绑定依赖,将外部jar包依赖加入到classPath中 -->
|
||
<addClasspath>true</addClasspath>
|
||
<!-- 依赖前缀,与之前设置的文件夹路径要匹配 -->
|
||
<classpathPrefix>lib/</classpathPrefix>
|
||
<!-- 执行的主程序入口 -->
|
||
<mainClass>smartai.examples.face.FaceDemo</mainClass>
|
||
</manifest>
|
||
</archive>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>make-assembly</id>
|
||
<!--绑定的maven操作-->
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>assembly</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
|
||
|
||
|
||
|
||
|
||
</project>
|