The error “Non-resolvable parent POM” typically occurs when Maven cannot find the parent POM (Project Object Model) of your project. To solve this issue in a Spring Boot project, you can follow these steps.
The Exact error:
Non-resolvable parent POM for com:music:0.0.1-SNAPSHOT: org.springframework.boot:spring-boot-starter-parent:pom:3.2.2 failed to transfer from https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:3.2.2 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org IN ECLIPSE
Solution
Open M2 directory:
C:\Users\Asus\.m2\wrapper\dists\apache-maven-3.8.7-bin\1ktonn2lleg549uah6ngl1r74r\apache-maven-3.8.7\conf
Remove Mirror:
<mirror> <id>maven-default-http-blocker</id> <mirrorOf>external:http:*</mirrorOf> <name>Pseudo repository to mirror external repositories initially using HTTP.</name> <url>http://0.0.0.0/</url> <blocked>true</blocked> </mirror>
Add Mirror:
<mirror> <id>insecure-repo</id> <mirrorOf>external:http:*</mirrorOf> <url>http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo/</url> <blocked>false</blocked> </mirror>