emacs-lsp/lsp-java

install jdtls but Non-readable POM

Opened this issue · 1 comments

Describe the bug
when install jdtls an error ocurred. because the pom.xml located at the tmp dir is null.
There have a pom.xml but the content is null. so the build failed.
It seems that only happen when I want update the jdtls.
before update jdtls I will remove the dir lsp-java-server-install-dir, and just lsp-install-server to choose jdtls.

Note

-*- mode: compilation; default-directory: "~/AppData/Local/Temp/lsp-java-installSgwd2f/" -*-
Comint started at Tue Jan 16 19:59:38

"c:/Java/apache-maven/bin/mvn.cmd" "-Djdt.js.server.root=c:/Users/van/lsp-java/" "-Djunit.runner.root=c:/Users/van/.emacs.d/.local/cache/eclipse.jdt.ls/test-runner/" "-Djunit.runner.fileName=junit-platform-console-standalone.jar" "-Djava.debug.root=c:/Users/van/lsp-java/bundles" "clean" "package" "-Djdt.download.url=http://1.117.167.195/download/jdt-language-server-1.31.0-202401111522.tar.gz"
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-readable POM c:\Users\van\AppData\Local\Temp\lsp-java-installSgwd2f\pom.xml: input contained no data @ 
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project  (c:\Users\van\AppData\Local\Temp\lsp-java-installSgwd2f\pom.xml) has 1 error
[ERROR]     Non-readable POM c:\Users\van\AppData\Local\Temp\lsp-java-installSgwd2f\pom.xml: input contained no data
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

Comint exited abnormally with code 1 at Tue Jan 16 19:59:42

To Reproduce
Here is my config

(setq lsp-java-format-settings-url   (expand-file-name (concat doom-user-dir "neoemacs/Intellij_Spring_Boot_Java_Conventions.xml"))
      lsp-java-java-path             (concat (getenv "JAVA_17_HOME") "/bin/java")
      ;; lsp-java-server-install-dir    "~/lsp-java/"
      lsp-maven-path                 (concat (getenv "MAVEN_HOME") "/conf/settings.xml")
      lsp-java-jdt-download-url      "http://1.117.167.195/download/jdt-language-server-1.31.0-202401111522.tar.gz"
      lsp-java-configuration-maven-user-settings (expand-file-name lsp-maven-path )
      lsp-java-vmargs                `("-XX:+UseParallelGC"
                                       "-XX:GCTimeRatio=4"
                                       "-XX:AdaptiveSizePolicyWeight=90"
                                       "-Dsun.zip.disableMemoryMapping=true"
                                       "-Xmx2G"
                                       "-Xms100m",
                                       (concat "-javaagent:"
                                               (expand-file-name (concat doom-user-dir "neoemacs/lombok.jar")))))

Expected behavior
install success

I found the pom.xml in this project and install jdtls handle.
It works, but what makes this issue happen is still a question.

/Users/van/soft/apache-maven-3.6.1/bin/mvn -Djdt.js.server.root\=/Users/van/lsp-java/ 
-Djunit.runner.root\=/Users/van/.emacs.d/.local/cache/eclipse.jdt.ls/test-runner/ 
-Djunit.runner.fileName\=junit-platform-console-standalone.jar 
-Djava.debug.root\=/Users/van/lsp-java/bundles clean package 
-Djdt.download.url\=http\://1.117.167.195/download/jdt-language-server-1.31.0-202401111522.tar.gz 
-f ~/.doom.d/modules/neo-emacs/java/pom.xml