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>
相关推荐
棉花骑士21 小时前
【AI Agent】面向 Java 工程师的Claude Code Harness 学习指南
java·开发语言
爱敲代码的小鱼21 小时前
springboot(2)从基础到项目创建:
java·spring boot·spring
迈巴赫车主1 天前
蓝桥杯19724食堂
java·数据结构·算法·职场和发展·蓝桥杯
i220818 Faiz Ul1 天前
动漫商城|基于springboot + vue动漫商城系统(源码+数据库+文档)
java·数据库·vue.js·spring boot·论文·毕设·动漫商城系统
海兰1 天前
【实战】MCP 服务在 Nacos 中注册状态分析与优化
android·java·github·银行系统·银行ai
Makoto_Kimur1 天前
Java 打印模板大全
java·开发语言·排序算法
程序员榴莲1 天前
Java(十)super关键字
java·开发语言
HAPPY酷1 天前
Python高级架构师之路——从原理到实战
java·python·算法
Boop_wu1 天前
[Java 算法 ] 链表
java·算法·链表
ybwycx1 天前
SpringBoot下获取resources目录下文件的常用方法
java·spring boot·后端