2024-02-28 10:53:50 +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>org.aohe</groupId>
|
|
|
|
|
<artifactId>twain-service</artifactId>
|
2025-02-21 14:01:51 +08:00
|
|
|
|
<version>0.1.7.0</version>
|
2024-02-28 10:53:50 +08:00
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
|
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.java-websocket</groupId>
|
|
|
|
|
<artifactId>Java-WebSocket</artifactId>
|
|
|
|
|
<version>1.5.3</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
<version>1.18.30</version>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!--这个依赖直接包含了 logback-core 以及 slf4j-api 的依赖-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
|
|
<artifactId>hutool-all</artifactId>
|
|
|
|
|
<version>5.8.25</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
|
|
|
<artifactId>fastjson2</artifactId>
|
|
|
|
|
<version>2.0.43</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>net.java.dev.jna</groupId>
|
|
|
|
|
<artifactId>jna</artifactId>
|
|
|
|
|
<version>4.5.1</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>net.java.dev.jna</groupId>
|
|
|
|
|
<artifactId>jna-platform</artifactId>
|
|
|
|
|
<version>4.5.1</version>
|
|
|
|
|
</dependency>
|
2024-11-27 17:18:32 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.formdev</groupId>
|
|
|
|
|
<artifactId>flatlaf</artifactId>
|
|
|
|
|
<version>3.4.1</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
2025-02-08 17:49:40 +08:00
|
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
|
|
<artifactId>logback-classic</artifactId>
|
|
|
|
|
<version>1.2.13</version>
|
|
|
|
|
<!-- <scope>test</scope>-->
|
2024-11-27 17:18:32 +08:00
|
|
|
|
</dependency>
|
2025-02-07 11:24:51 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.github.eduramiba</groupId>
|
|
|
|
|
<artifactId>webcam-capture-driver-native</artifactId>
|
|
|
|
|
<version>1.2.0-8</version>
|
|
|
|
|
</dependency>
|
2025-02-08 15:05:08 +08:00
|
|
|
|
|
2025-02-07 11:24:51 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.github.sarxos</groupId>
|
|
|
|
|
<artifactId>webcam-capture</artifactId>
|
|
|
|
|
<version>0.3.12</version>
|
|
|
|
|
</dependency>
|
2025-02-08 17:49:40 +08:00
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.github.sanyarnd</groupId>
|
|
|
|
|
<artifactId>app-locker</artifactId>
|
|
|
|
|
<version>1.2.0</version>
|
|
|
|
|
</dependency>
|
2024-02-28 10:53:50 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<!-- <build>-->
|
|
|
|
|
<!-- <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>org.aohe.Main</mainClass>-->
|
|
|
|
|
<!-- </manifest>-->
|
|
|
|
|
<!-- </archive>-->
|
|
|
|
|
<!-- </configuration>-->
|
|
|
|
|
<!-- <executions>-->
|
|
|
|
|
<!-- <execution>-->
|
|
|
|
|
<!-- <id>make-assembly</id>-->
|
|
|
|
|
<!-- <!–绑定的 maven 操作–>-->
|
|
|
|
|
<!-- <phase>package</phase>-->
|
|
|
|
|
<!-- <goals>-->
|
|
|
|
|
<!-- <goal>assembly</goal>-->
|
|
|
|
|
<!-- </goals>-->
|
|
|
|
|
<!-- </execution>-->
|
|
|
|
|
<!-- </executions>-->
|
|
|
|
|
<!-- </plugin>-->
|
|
|
|
|
|
|
|
|
|
<!-- <plugin>-->
|
|
|
|
|
<!-- <groupId>org.graalvm.nativeimage</groupId>-->
|
|
|
|
|
<!-- <artifactId>native-image-maven-plugin</artifactId>-->
|
|
|
|
|
<!-- <version>21.2.0</version>-->
|
|
|
|
|
<!-- <executions>-->
|
|
|
|
|
<!-- <execution>-->
|
|
|
|
|
<!-- <goals>-->
|
|
|
|
|
<!-- <goal>native-image</goal>-->
|
|
|
|
|
<!-- </goals>-->
|
|
|
|
|
<!-- <phase>package</phase>-->
|
|
|
|
|
<!-- </execution>-->
|
|
|
|
|
<!-- </executions>-->
|
|
|
|
|
<!-- <configuration>-->
|
|
|
|
|
<!-- <skip>false</skip>-->
|
|
|
|
|
<!-- <imageName>twain-service</imageName>-->
|
|
|
|
|
<!-- <mainClass>org.aohe.Main</mainClass>-->
|
|
|
|
|
<!-- <buildArgs>-->
|
|
|
|
|
<!-- --no-fallback-->
|
|
|
|
|
<!-- </buildArgs>-->
|
|
|
|
|
<!-- </configuration>-->
|
|
|
|
|
<!-- </plugin>-->
|
|
|
|
|
<!-- </plugins>-->
|
|
|
|
|
<!-- </build>-->
|
|
|
|
|
|
|
|
|
|
<build>
|
2025-02-08 15:05:08 +08:00
|
|
|
|
<finalName>sane-service-v${project.version}</finalName>
|
2024-02-28 10:53:50 +08:00
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<source>8</source>
|
|
|
|
|
<target>8</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
2025-02-08 15:05:08 +08:00
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>copy-dependencies</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
2024-02-28 10:53:50 +08:00
|
|
|
|
</plugin>
|
2025-02-08 15:05:08 +08:00
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<finalName>${project.build.finalName}</finalName>
|
|
|
|
|
<archive>
|
|
|
|
|
<manifest>
|
|
|
|
|
<mainClass>org.aohe.Main</mainClass>
|
|
|
|
|
</manifest>
|
|
|
|
|
</archive>
|
|
|
|
|
<descriptorRefs>
|
|
|
|
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
|
|
</descriptorRefs>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>make-assembly</id>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>single</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
2024-02-28 10:53:50 +08:00
|
|
|
|
<!--生成 javadoc 文件-->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
|
<version>3.1.0</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
|
<charset>UTF-8</charset>
|
|
|
|
|
<docencoding>UTF-8</docencoding>
|
|
|
|
|
<doclint>none</doclint>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>attach-javadocs</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>jar</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<!--生成 source 文件-->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
|
<version>2.4</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>attach-sources</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>jar</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
</project>
|