踩了一天的坑,好服自己,记录一下答案吧:
项目中带有第三方jar包,怎么打包?
方法:
1、根路径建立lib包,将第三方jar复制进去
2、在pom.xml文件中
...
<dependency>
<groupId>aspose.slides</groupId>
<artifactId>slides</artifactId>
<version>15.9.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/aspose.slides-15.9.0.jar</systemPath>
</dependency>
....
(2)build部分
...
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>
...
修改后打包成功