Springboot introduces external sdk, configures it in maven, and packages it with sdk

Table of contents

1 install sdk

2 Configure the maven configuration file

3 Refresh maven

4 Packaging configuration


1 install sdk

Put the external sdk in the specified directory of the project, I choose to put it in the directory of resource/sdk

Example:

2 Configure the maven configuration file

Open pom.xml and add the following dependency configuration

 

 Specifically as follows:

        <dependency>
            <groupId>com.xxxx</groupId>
            <artifactId>xx-sdk-core-java</artifactId>
            <version>v3.0.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/src/main/resources/sdk/xx-sdk-core-java-v3.0.0.jar</systemPath>
        </dependency>

3 Refresh maven

4 Packaging configuration

The key points are in the content of the red box

 

                    <includeSystemScope>true</includeSystemScope>

Then pack it normally 

END.

 

Guess you like

Origin blog.csdn.net/qq_53679247/article/details/131213405