SpringBoot multi-module project package docker image problem

If the project is SpringBoot multi-module project, then direct point package may be a problem, no other modules depend on the question of what, forget the specific error record

Problem Description: I have A, B two modules, package time, suggesting I could not find B.jar,

Larger items, is divided into a plurality of modules, such as module A module dependent of B, then A module which is configured as pom

<dependency>
    <groupId>com.xxx.xxx.common</groupId>
    <artifactId>common</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

At this time, there will be a problem can not be found directly packaged module B

Approach, execute mvn the install , the jar B module installed locally Repository, and then execute the command mvn package

Guess you like

Origin blog.csdn.net/wu__peng/article/details/90023384