---
title: "springboot maven项目多模块，打包时需要包含本地第三方jar包"
author: "learnmore"
date: "2021-07-21T18:48:09Z"
tags: []
categories: ["编程语言"]
slug: "springboot-maven-jar"
draft: false
lastmod: "2021-07-21T18:48:09Z"
id: 2520499
url: "https://learnmore.iteye.com/blog/2520499"
---

如果需要在打出来的jar包中包含本地第三方jar包，需要在web模块（也就是target目录所在的模块）中，加入如下的配置

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
              		<includeSystemScope>true</includeSystemScope>
                </configuration>
            </plugin>
        </plugins>
    </build>