Clojure+Java Emacs setup

Hi @daslu,
Were you able to get it working in a Leiningen polyglot project ? Recently I tried the same in a couple of projects using spacemacs. My settings are essentially @practicalli’s setup for spacemacs + java lsp and I have to generate and manually configure the pom.xml for each project in order for the java-lsp to work correctly - specifying java target version and such.

While the setup mostly works fine, but I encounter some annoying problems from time to time - though it may be due to my lack of knowledge and wrong configs. The most annoying of them is that sometimes upon switching to a java file, the lsp does not recognize the dependencies at all and keep complaining about them. When this happens I have to clean the project and restart spacemacs for it to work.

I’d be glad if you could share your experience as well.