本文主要是介绍ideal打包,如何访问项目根目录的libs中的jar包,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
参考:idea maven 导入lib中jar 并打包_maven引入lib中的jar包-CSDN博客
解决办法,只需要在pom文件中加入
<includeSystemScope>true</includeSystemScope>
<build><!-- <includeSystemScope>true</includeSystemScope>解决指定的jar包不能打包 --><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><configuration><includeSystemScope>true</includeSystemScope><excludes><exclude><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId></exclude></excludes></configuration></plugin></plugins></build>
这篇关于ideal打包,如何访问项目根目录的libs中的jar包的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!