Failed to execute goal on project XXXX: Could not resolve dependencies for project Failure to find

In my case, you have a parent directory, such as springCloud, which contains a springBoot module.

Then this module introduced another module , and the error was reported that the imported package could not be found

 Then the module started without any problem, but it reported an error when it was packaged, saying that it could not find another one.

In this case, there are two kinds, 1. They are not in the same parent directory. 2. Your private warehouse does not have this package.

You can find any of these two. I am the first one, they are in a parent directory, but I can't find it, so I found it by doing the following.

0. Use maven [clean, then install] for the project in the parent directory

1. Go to the project you want to import and use maven [clean, then install]

2. Go to the imported project and use maven [clean, then install]

It was successful in packaging

 

Guess you like

Origin blog.csdn.net/qq_38403590/article/details/131378794