0

Error while compiling and running spring boot project in intellij and vscode

press here to see the error

[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[FATAL] Non-parseable POM E:\sbalacha\.m2\repository\org\springframework\boot\spring-boot-starter-parent\3.3.0\spring-boot-starter-parent-3.3.0.pom: Expected root

element 'project' but found 'html' (position: START_TAG seen ...tp://www.w3.org/1999/xhtml" class="no-js" xml:lang="en" lang="en">... @3:82) @ E:\sbalacha\.m2\repository\org\springframework\boot\spring-boot-starter-parent\3.3.0\spring-boot-starter-parent-3.3.0.pom, line 3, column 82

Getting this error while i run the spring boot project in intellij and vs code.

i have installed maven 3.9.8, java 17 and spring boot version 3.3.0

why this error occurs? Can anyone help on this?

2
  • Two things. First, don't post images to stack overflow. Second, it looks like the spring-boot-starter-parent dependency is screwed up. delete your maven dependencies and redownload them Commented Jun 18, 2024 at 16:26
  • that works, thanks @lane.maxwell Commented Jun 19, 2024 at 14:47

1 Answer 1

0

I found this issue. I have ran maven for my other projects a few days back and I used older version. So that older version dependencies are stored as a cache in .m2 folder. That the thing causing this issue. I deleted the .m2 folder and reran the spring-boot project, it downloaded the latest dependencies and got compiled successfully.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.