ITeye博客

springboot maven项目多模块,打包时需要包含本地第三方jar包

learnmore · 2021-07-21 18:48 · j2ee · 编程语言 · Markdown

如果需要在打出来的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>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。