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>

最近更新

  1. TCP协议是安全的吗?

    2024-02-07 18:14:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-02-07 18:14:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-02-07 18:14:02       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-02-07 18:14:02       20 阅读

热门阅读

  1. Nginx

    2024-02-07 18:14:02       29 阅读
  2. Docker

    Docker

    2024-02-07 18:14:02      26 阅读
  3. 企业开发实战-erp -仓库表设计-postgresql

    2024-02-07 18:14:02       37 阅读
  4. leetcode 1351.统计有序矩阵中的负数

    2024-02-07 18:14:02       29 阅读
  5. npm安装命令

    2024-02-07 18:14:02       29 阅读
  6. 经典网络面试题(4)

    2024-02-07 18:14:02       31 阅读
  7. CSS transition(过渡效果)详解

    2024-02-07 18:14:02       29 阅读
  8. 笔记---贪心---区间问题

    2024-02-07 18:14:02       31 阅读