- 在业务 pom.xml中配置
<!--集成sdk-->
<dependency>
<groupId>com.aaa</groupId> <!--自定义-->
<artifactId>aaa-sdk</artifactId> <!--自定义-->
<version>0.0.1-SNAPSHOT</version> <!--自定义-->
<scope>system</scope>
<!--jar包路径 注意:这里用的是 {pom.basedir}-->
<systemPath>${pom.basedir}/lib/aaa-user-3.9.2-SNAPSHOT.jar</systemPath>
</dependency>
- 在打包的pom.xml中配置,支持打包本地的jar
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin> </plugins> </build>
文章评论