Project build error: Non-resolvable parent POM for com.gzl.cn:springboot01:0.0.1-SNAPSHOT: Could not

Problem Description

This is an error when building a springboot project through maven. Sometimes the xml reports a little red × and it’s nothing, but this time it’s different.

The following is a screenshot of the error report

Insert picture description here
After guiding the dependencies, I found that there are no maven dependencies, let alone running, it is purely a pom dependency error.

The screenshot below is what it looks like after debugging.

Insert picture description here

Resolution process

First of all, this part of my dependency is copied from other places. Many online sayings say that the dependency version should be replaced, and the change will be fine. Actually, it is not. I don’t believe in this evil. It is also an empty project. Why other versions That's fine, and finally found the result, which is caused by the space in the middle of the copied dependency. Especially the pdf file copying dependency can cause this problem most.

Then change the dependency again. Here is a website for you to find dependent files. All versions are available.
Link: maven depends on the website .

Insert picture description here

to sum up

I hope that through my own personal experiments, I can help you solve the problem. If it helps you, please give me a thumbs up, hee hee

Guess you like

Origin blog.csdn.net/weixin_43888891/article/details/110410127