./mvnw clean verify BUILD FAILURE in Ubuntu 20.04
Hello, When I try to build the server I get an error. I have no idea how I can resolve it. Could you please assist? There are some details:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for JDT Language Server :: Parent 1.3.0-SNAPSHOT:
[INFO]
[INFO] JDT Language Server :: Parent ...................... SUCCESS [ 1.320 s]
[INFO] JDT Language Server :: Target Platform ............. SUCCESS [ 3.799 s]
[INFO] JDT Language Server :: Core ........................ SUCCESS [02:40 min]
[INFO] JDT Language Server :: Tests ....................... FAILURE [11:41 min]
[INFO] JDT Language Server :: SyntaxServer Tests .......... SKIPPED
[INFO] JDT Language Server :: Product ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21:57 min
[INFO] Finished at: 2021-08-05T22:25:20+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:2.3.0:test (default-test) on project org.eclipse.jdt.ls.tests: There are test failures.
[ERROR]
[ERROR] Please refer to /home/ekoverznev/programs/eclipse.jdt.ls-master/org.eclipse.jdt.ls.tests/target/surefire-reports for the individual test results.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
@ekoverznev Could you attach a complete log?
./mvnw clean verify | tee log.txt
and attach log.txt.
Here you go log.txt.tar.gz
@ekoverznev could you try
./mvnw clean verify -U | tee log.txt
here you go log.txt.tar.gz
Maybe the problem is connected with a version of java. Today I also have a similar problem. When I switched to the java-11 build was successful. Before it default java was java-16
But my current java version is 11
java --version openjdk 11.0.12 2021-07-20 OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7) OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode)
When I switched to the java-11 build was successful.
The Java LS build requires java 11
I see /etc/java/jdk-11.0.12.7_adopt/bin/java in the logs, so that would indicate you're running with Java 11. Is this still happening ?
If you want to just build the language server, you can bypass the tests with ./mvnw clean verify -DskipTests.
I think we can close this for now. Java 17 is required to build and run since JDT-LS 1.13.0. Feel free to re-open if those test failures are still occuring on the latest version.