Stop generating .project .classpath .settings/ files
This issue has already been solved in vscode-java in https://github.com/redhat-developer/vscode-java/pull/2153 and Eclipse JDT Language Server (eclipse.jdt.ls) in https://github.com/eclipse/eclipse.jdt.ls/pull/1900 and there is even a blog post about it at https://devblogs.microsoft.com/java/say-goodbye-to-project-files-in-1-1-0
coc-java running on Vim (8.2) and Node.js (16.14.0) on Fedora Linux (35) still generates those files.
I was able to get things working by adding "java.jdt.ls.vmargs": "-Djava.import.generatesMetadataFilesAtProjectRoot=false" to my :CocConfig file. I'm not sure why this isn't the default from coc-java, but I haven't looked very hard into how it launches the language server.
@chemzqm any insight on this?
Need some time to upgrade coc-java, I used to have issues with java environment on my machine and some components are missing from coc.nvim.
Should be fixed on recent version of coc-java, try upgrade coc.nvim to latest release and coc-java to version 1.14.0.