Maven Local Dependency not built
Remove all the parent from the dependent class(parent) before mvn clean install. This will block for importing to dependency class( child) e.g: remove this from parent dependecy class < parent > < groupId >org.springframework.boot</ groupId > < artifactId >spring-boot-starter-parent</ artifactId > < version >2.5.0</ version > < relativePath /> </ parent >