优化宇视打包jar包依赖问题
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
<systemPath>${project.basedir}/Library/MvCameraControlWrapper.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
<!-- 本地库:JNA -->
|
||||
<!-- 本地库:JNA (宇视SDK依赖旧版本) -->
|
||||
<dependency>
|
||||
<groupId>com.sun.jna</groupId>
|
||||
<artifactId>jna</artifactId>
|
||||
@@ -118,11 +118,6 @@
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/src/main/resources/lib/jna.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.java.dev.jna</groupId>
|
||||
<artifactId>jna</artifactId>
|
||||
<version>5.13.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 串口通信依赖 -->
|
||||
<dependency>
|
||||
@@ -160,7 +155,7 @@
|
||||
</manifest>
|
||||
<manifestEntries>
|
||||
<!--为 MANIFEST.MF 中的 Class-Path 加入配置文件目录前缀 -->
|
||||
<Class-Path>../${config-path}</Class-Path>
|
||||
<Class-Path>../${config-path} ../${config-path}lib/jna.jar ../${lib-path}jna.jar</Class-Path>
|
||||
</manifestEntries>
|
||||
</archive>
|
||||
<outputDirectory>${project.build.directory}/app/${bin-path}</outputDirectory>
|
||||
@@ -179,6 +174,18 @@
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/app/${lib-path}</outputDirectory>
|
||||
<includeScope>runtime</includeScope>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>copy-system-dependencies</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/app/${lib-path}</outputDirectory>
|
||||
<includeScope>system</includeScope>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
@@ -207,11 +214,23 @@
|
||||
<include>logback-spring.xml</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<outputDirectory>${project.build.directory}/app/${config-path}</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>copy-lib-resources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/lib</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
<outputDirectory>${project.build.directory}/app/${config-path}</outputDirectory>
|
||||
<outputDirectory>${project.build.directory}/app/${config-path}lib</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
||||
Reference in New Issue
Block a user