(1)jar包放项目中(如下图)

(2)修改依赖配置

加入:

        <dependency>
            <groupId>cn.newhope</groupId>
            <artifactId>ServiceTemplate</artifactId>
            <version>1.1.12-SNAPSHOT</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/libs/ServiceTemplate-1.1.12-SNAPSHOT.jar</systemPath>
        </dependency>

加入:

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <includeSystemScope>true</includeSystemScope>
                </configuration>
            </plugin>
        </plugins>
    </build>

 

posted on 2022-02-21 16:14  song.yan  阅读(411)  评论(0编辑  收藏  举报