Skip to content

Failure during 'mvn package -DskipTests' step of build.sh #359

@alukreis

Description

@alukreis

Environment:

  • OS 6.1.165-1-MANJARO
  • Run via Mason installer in Neovim
    • Mason v2.2.1
    • Neovim v0.11.6
  • Maven v3.9.16

Description:
When I attempt to install the java-language-server via the Mason plugin in neovim, I get an error message during the build step. Looking at the error it seems like it's a fairly fundamental compilation error of the language server itself.

Expected Results:

  • The java-language-server is built and can run as expected within neovim

Actual Result: See error message

                      [INFO] Changes detected - recompiling the module!                                                                                                                   
                      [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!                                                          
                      [INFO] Compiling 357 source files to /home/luk/.local/share/nvim/mason/staging/java-language-server/target/classes                                                  
                      [INFO] /home/luk/.local/share/nvim/mason/staging/java-language-server/src/main/java/org/javacs/guava/ClassPath.java: Some input files use or override a deprecated API.
                      [INFO] /home/luk/.local/share/nvim/mason/staging/java-language-server/src/main/java/org/javacs/guava/ClassPath.java: Recompile with -Xlint:deprecation for details.
                      [INFO] -------------------------------------------------------------                                                                                                
                      [ERROR] COMPILATION ERROR :                                                                                                                                         
                      [INFO] -------------------------------------------------------------                                                                                                
                      [ERROR] /home/luk/.local/share/nvim/mason/staging/java-language-server/src/main/java/org/javacs/ReusableCompiler.java:[254,18] clear() in org.javacs.ReusableCompiler.ReusableContext.ReusableLog cannot override clear() in com.sun.tools.javac.util.Log
                        attempting to assign weaker access privileges; was public                                                                                                         
                      [INFO] 1 error                                                                                                                                                      
                      [INFO] -------------------------------------------------------------                                                                                                
                      [INFO] ------------------------------------------------------------------------                                                                                     
                      [INFO] BUILD FAILURE                                                                                                                                                
                      [INFO] ------------------------------------------------------------------------                                                                                     
                      [INFO] Total time:  15.611 s                                                                                                                                        
                      [INFO] Finished at: 2026-06-11T14:21:01+01:00                                                                                                                       
                      [INFO] ------------------------------------------------------------------------                                                                                     
                      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project javac-services: Compilation failure
                      [ERROR] /home/luk/.local/share/nvim/mason/staging/java-language-server/src/main/java/org/javacs/ReusableCompiler.java:[254,18] clear() in org.javacs.ReusableCompiler.ReusableContext.ReusableLog cannot override clear() in com.sun.tools.javac.util.Log
                      [ERROR]   attempting to assign weaker access privileges; was public                                                                                                 
                      [ERROR]                                                                                                                                                             
                      [ERROR] -> [Help 1]                                                                                                                                                 
                      [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/MojoFailureException                                                                              
                     spawn: bash failed with exit code 1 and signal 0. Cloning into '.'...                                                                                               
                     From https://github.com/georgewfraser/java-language-server                                                                                                          
                      * tag               v0.2.39    -> FETCH_HEAD                                                                                                                       
                     + ./scripts/link_linux.sh                                                                                                                                           
                     Warning: The 2 argument for --compress is deprecated and may be removed in a future release

From looking at the scripts it seems like they are using a contained version of the jdk, is that correct? if so, I don't see how there would be any version conflict issues or anything either.

Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions