springboot打包问题:本地开发,启动项目中引入了另一个正在开发的jar,然后用eclipse maven install打包,运行发现报找不到引入jar中的类,网上搜索说有两种解决方式,1,在启动项目中添加lib将jar放入,然后修改pom打包;2,将jar放进maven库中打包;本人感觉这两种方式都不太好,因为这个jar是正在开发的,这样的话每次打包还得重新生成jar,丢进lib或者maven库,麻烦,而且容易忘,请问各位大佬有更好的解决办法吗
本地jar默认是不会一起打包的,请在pom.xml文件里配置
<includeSystemScope>true</includeSystemScope>
完整插件配置如下:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>