Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install jdtls but Non-readable POM #465

Open
sincebyte opened this issue Jan 16, 2024 · 1 comment
Open

install jdtls but Non-readable POM #465

sincebyte opened this issue Jan 16, 2024 · 1 comment

Comments

@sincebyte
Copy link

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

@sincebyte
Copy link
Author

sincebyte commented Jan 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant