How to introduce local jar package into springboot project

During project development, local jars are sometimes introduced. How to do this?
The operation takes the development tool idea as an example. Create a new lib folder in the project and put the jar in the lib folder.
Right click on the folder and Add is Library...

pom.xml

<dependencies>
	<dependency>
		<groupId>com.abc</groupId>
		<artifactId>abc-core</artifactId>
		<version>1.0</version>
		<scope>system</scope>
		<systemPath>${pom.basedir}/lib/abc-core.jar</systemPath>
	</dependency>
</dependencies>
<build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
            <resource>
            <directory>lib</directory>
            <targetPath>BOOT-INF/lib</targetPath>
            <includes>
                <include>**/*.jar</include>
            </includes>
        </resource>
        </resources>
</build>

Guess you like

Origin blog.csdn.net/lizhao1226/article/details/131246411