springboot打包问题:本地开发,启动项目中引入了另一个正在开发的jar,然后用eclipse maven install打包,运行发现报找不到引入jar中的类,网上搜索说有两种解决方式,1,在启动项目中添加lib将jar放入,然后修改pom打包;2,将jar放进maven库中打包;本人感觉这两种方式都不太好,因为这个jar是正在开发的,这样的话每次打包还得重新生成jar,丢进lib或者maven库,麻烦,而且容易忘,请问各位大佬有更好的解决办法吗
1条回答 默认 最新
- @子敬 2019-06-19 10:33关注
本地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>
解决评论 打赏 举报无用 2
悬赏问题
- ¥15 求daily translation(DT)偏差订正方法的代码
- ¥15 js调用html页面需要隐藏某个按钮
- ¥15 ads仿真结果在圆图上是怎么读数的
- ¥20 Cotex M3的调试和程序执行方式是什么样的?
- ¥20 java项目连接sqlserver时报ssl相关错误
- ¥15 一道python难题3
- ¥15 牛顿斯科特系数表表示
- ¥15 arduino 步进电机
- ¥20 程序进入HardFault_Handler
- ¥15 关于#python#的问题:自动化测试