最近对接国网的隔离网闸,需要添加外部jar包,特此度娘了一下,做个记录
1,在项目下建个文件夹libs,把包放进去,配置xml文件
<dependency> <groupId>com.zx</groupId> <artifactId>webdemo</artifactId> <version>2023.11.08</version> <scope>system</scope> <systemPath>${basedir}/libs/webDemo-0.0.1-SNAPSHOT.jar</systemPath> </dependency>
2,注意打包不会把这个文件打进去,需要添加配置
<configuration> <includeSystemScope>true</includeSystemScope> </configuration>