maven 遇到Non-resolvable parent POM: failure to find XXXX

When I imported the maven project today, I encountered Non-resolvable parent POM: failure to find XXXX, error.

Reason: The corresponding resource could not be found in the maven repository.

The POM configuration is as follows:


 

The error is as follows:



 

This is a bag of our company. This is an example.
 Solution. Find the com folder under the maven library you configured. Just drag and drop the corresponding files.

How to find the maven library you configured?

Eclipse-----》Windows----------》Peference ------------》Maven------------》User setting


 

Find the corresponding folder ( see the path configured by pom.xml to put it ), and then put the missing package in it. If prompted to cover, boldly cover it. Because when building a maven project, eclipse will automatically help you download the corresponding package of the pom configuration from the maven website or where. Probably eclipse will also help you create the corresponding folder. When I copied it the prompt was already there, I guess so.


 

/Then go back to Eclipse. See if there is still an error.

(The premise is that you have no missing packages.) If it still prompts an error, then align the project, right click --------"refresh. Or the shortcut key f5.

If an error is still reported, then close the project: align the project ----------"Right click------------"close project. Then open it again: Align the project ----------"Right click------------"open project.

If an error is still reported, this is a more metaphysical approach, and then open pom.xml, select all, cut, save, then copy and save.

(The premise is that you still have missing packages.) If you still get an error, then repeat the steps above to add the missing packages. . .

 


 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326820650&siteId=291194637