今天用maven打包时,提示程序包com.aspose.slides不存在

原来第三方jar是直接导入的,打包时没找到

那项目中带有第三方jar包,怎么打包?

方法:

1、根路径建立lib包,将第三方jar复制进去

2、在pom.xml文件中

(1)dependency部分加入

aspose.slides

slides

15.9.0

system

${basedir}/lib/aspose.slides-15.9.0.jar

(2)build部分

org.springframework.boot

spring-boot-maven-plugin

true

修改后打包成功

 

相关链接

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。