Microservices and multi-modules depend on each other and the dependency fails after git is pulled locally

Microservices and multi-modules depend on each other and the dependency fails after git is pulled locally

1. First confirm whether the maven local warehouse address of your idea is correct

2. Confirm whether the java version in your idea is what you want

3. Usually the microservice module may be under a parent project, and when you import it into the idea, only the parent project is imported, and all the subprojects under it are not imported. As a result, there is no relevant dependency relationship between the subprojects. The correct structure is shown below:

Insert picture description here
And if it is not imported, the maven project on the right side of the idea will be grayed out. After normal import:
Insert picture description here

4. Then it is ok to unify the clean in the maven parent project on the right side of the idea and install it again.

Guess you like

Origin blog.csdn.net/Guesshat/article/details/110676532