正常用maven打包,直接package,但是在项目中使用了maven库中没有的jar包,直接这样打包会报错:
解决方法:
把jar包添加到项目中,

然后在pom.xml中配置,如图


具体配置
<dependencies>
<dependency>
<groupId>aspose-cells</groupId>
<artifactId>aspose-cells</artifactId>
<version>8.5.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/aspose-cells-8.5.2.jar</systemPath>
</dependency>
</dependencies>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>文章来源:
不凡
版权声明:本站所发布的全部内容部分源于互联网搬运,仅供用于学习和交流,如果有侵权之处请第一时间联系我们删除。敬请谅解! E-mail:bufanYes@163.com
还木有评论哦,快来抢沙发吧~