Maven packaged the SpringBoot program containing the local jar package and reported an error [Resolved]

This jar package is my own local, I now use maven to install this SpringBoot project, but if you package it directly, you will get an error. Insert picture description here
Add dependency

<dependency>
            <groupId>com.arcsoft.face</groupId>
            <artifactId>arcsoft-sdk-face-2.2.0.1</artifactId>
            <version>1.0-SNAPSHOT</version>
            <scope>system</scope>
            <systemPath>${
    
    basedir}/lib/arcsoft-sdk-face-2.2.0.1.jar</systemPath>
</dependency>

${basedir} is the root path of the project Insert picture description here
. Package again and succeed.

May your heart be like flowers and trees

Guess you like

Origin blog.csdn.net/nbcsdn/article/details/102917526