diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java index 1f274c63e2ad7..ad31f3ed8d66e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java @@ -1003,11 +1003,15 @@ private NativeImageSourceJarBuildItem buildNativeImageThinJar(CurateOutcomeBuild // Remove svm and graal-sdk artifacts as they are provided by GraalVM itself if (classLoadingConfig.removedArtifacts.isEmpty()) { - classLoadingConfig.removedArtifacts = Optional.of(new ArrayList<>(2)); + classLoadingConfig.removedArtifacts = Optional.of(new ArrayList<>(5)); } List removedArtifacts = classLoadingConfig.removedArtifacts.get(); removedArtifacts.add("org.graalvm.nativeimage:svm"); removedArtifacts.add("org.graalvm.sdk:graal-sdk"); + removedArtifacts.add("org.graalvm.sdk:nativeimage"); + removedArtifacts.add("org.graalvm.sdk:word"); + removedArtifacts.add("org.graalvm.sdk:collections"); + removedArtifacts.add("org.graalvm.polyglot:polyglot"); doLegacyThinJarGeneration(curateOutcomeBuildItem, outputTargetBuildItem, transformedClasses, applicationArchivesBuildItem, applicationInfo, packageConfig, generatedResources, libDir, allClasses,