r/vscode•
beshoux44

Configure vs code properly for Java / Spring boot / maven

Everytime I try to compile the project, vscode would generate an enormous amount of errors and the only way to get around it is to click (Rebuild All) then trying to compile again.

Happened on Java 17 and Java 21 projects, I'm not the only one at work struggling with this and we couldn't find a fix

https://preview.redd.it/ko30k77gpauf1.png?width=154&format=png&auto=webp&s=d9ee539af6b1be86f1667de481da02bdf56c6ddb

https://preview.redd.it/b89jagvdpauf1.png?width=491&format=png&auto=webp&s=95811e37e4f6dd07ad0739f105cc462eeaf741fb

https://preview.redd.it/xnlu7hrjpauf1.png?width=488&format=png&auto=webp&s=0b92ae9601b60e31fdfb1937e30564fc728e50e0

I tried only compiling from an external terminal, and would still get the issues when vscode is open

I have all the java related extensions :

https://preview.redd.it/d6ailwarpauf1.png?width=481&format=png&auto=webp&s=f8f4d19c6dfd2cfce094c7bed96001b319191409

.vscode/settings.json :

{
  "java.configuration.updateBuildConfiguration": "automatic"
}

Posted Oct 10, 2025, 2:39 PM UTC

10
Loading comments…