Maven中使用本地jar包的方法

一、问题

1、打开Maven项目模块

2、新建lib文件夹,将是jar包放到lib下。

3、在pom.xml中的dependencies中,添加引用:

        <dependency>
            <groupId>com.test.vapi</groupId>
            <artifactId>test-test-sdk</artifactId>
            <version>${test-test.version}</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/lib/test-test-sdk-${oidc-oauth2.version}.jar</systemPath>
        </dependency>
原文地址:https://www.cnblogs.com/songxingzhu/p/14137134.html