You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I was trying to build a container with JDTLS in it using the following Dockerfile:
ARG VERSION=1.41.0
FROM docker.io/library/eclipse-temurin:17-alpine AS builder
ARG VERSION
ADD"https://github.com/eclipse-jdtls/eclipse.jdt.ls/archive/refs/tags/v$VERSION.tar.gz" /build.tar.gz
RUN tar -xzf /build.tar.gz && mv "eclipse.jdt.ls-$VERSION" /build
WORKDIR /build
RUN --mount=type=cache,id=maven-cache,target=/root/.m2 \
./mvnw clean verify -DskipTests=true
FROM docker.io/library/eclipse-temurin:17-alpine
COPY --from=builder /build/org.eclipse.jdt.ls.product/target/repository /opt/jdtls
ENV PATH="/opt/jdtls/bin:$PATH"
The build starts out nicely, but once it hits the "JDT Language Server :: Tests" module, the build fails with the error
My question is whether this is expected, and that the project itself should be built with the JDK version in question, after which it'll work with Java 17 or 21, or whether this is a bug in the build system and the tests. Another possibility could be that it just requires Java 23 as a whole, since the build will succeed with the eclipse-temurin:23-alpine image.
The text was updated successfully, but these errors were encountered:
sham1
changed the title
Failure to build 1.41.0 with Java 17 due to "Unknown OSGi execution environment: 'JavaSE-23'"
Failure to build version 1.41.0 with Java 17 due to "Unknown OSGi execution environment: 'JavaSE-23'"
Nov 16, 2024
@mickaelistria does your comment there about extraRequirement mean we could avoid having the tests depend on javac directly and move the requirement back to JavaSE-17 (for ECJ) ?
If the extraRequirements on org.eclipse.jdt.core.javac is isolated in a profile that is not enabled by default, then Java 23 shouldn't be influencing the build and Java 17 could still be used.
But I would personally recommend just using Java 23 in the Dockerfile, that wouldn't harm.
So, I was trying to build a container with JDTLS in it using the following Dockerfile:
The build starts out nicely, but once it hits the "JDT Language Server :: Tests" module, the build fails with the error
My question is whether this is expected, and that the project itself should be built with the JDK version in question, after which it'll work with Java 17 or 21, or whether this is a bug in the build system and the tests. Another possibility could be that it just requires Java 23 as a whole, since the build will succeed with the
eclipse-temurin:23-alpine
image.The text was updated successfully, but these errors were encountered: