Check once in vscode where the maven build or plugin is there,see whether the compiler warnings is checked or non checked ,if its checked it might come,so the place from where you are building the project that plugin's settings needs to be verified once