ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

ideal打包,如何访问项目根目录的libs中的jar包

2026/8/5 21:55:45 拓冰建站 浏览量
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>