From 9d8d5c5622c049aa660abb28b9684b96a14c747d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vav=C5=99=C3=ADk?= Date: Tue, 27 Sep 2022 10:26:36 +0200 Subject: [PATCH] Do not index resources removed by extensions Excluded resources removed by extension from indexing as according to io.quarkus.maven.ExtensionDescriptorMojo#removedResources should be equivalent of quarkus.class-loading.removed-resources, however later classes are excluded from indexing while former are not. --- .../quarkus/deployment/index/ApplicationArchiveBuildStep.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/index/ApplicationArchiveBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/index/ApplicationArchiveBuildStep.java index 4dcaca5be140b..55ac76fb2f44e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/index/ApplicationArchiveBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/index/ApplicationArchiveBuildStep.java @@ -102,6 +102,9 @@ ApplicationArchivesBuildItem build( removedResources.put(new GACT(entry.getKey().split(":")), entry.getValue()); } + // Add resources removed from the classpath by extensions + removedResources.putAll(curateOutcomeBuildItem.getApplicationModel().getRemovedResources()); + List applicationArchives = scanForOtherIndexes(buildCloseables, appMarkers, root, additionalApplicationArchiveBuildItem, indexDependencyBuildItems, indexCache, curateOutcomeBuildItem, removedResources);