systemPath 打包问题

发布时间 2023-06-21 10:00:34作者: 暮商

systemPath 打包问题

<systemPath><systemPath/>标签的作用是导入外部的jar包。

 某次项目中在使用<systemPath>标签导入jar包,该项目本地跑的好好的,但是当打包到线上的时候,出现了找不到该jar包下的某个类的报错。

 经过查询,发现使用<systemPath>标签打包的话,需要在<plugin>中加入<includeSystemScope>true</includeSystemScope>。

 

<includeSystemScope>true</includeSystemScope>是设置打包的时候是否包括外部引入的jar包

修改之后,线上使用该类的功能顺利跑起来。