Skip to content

Commit

Permalink
Stop index warn by excluding resource removed by extension from indexing
Browse files Browse the repository at this point in the history
fixes: #27907
  • Loading branch information
michalvavrik committed Sep 26, 2022
1 parent 70df6b8 commit 18b106f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Expand Up @@ -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<ApplicationArchive> applicationArchives = scanForOtherIndexes(buildCloseables,
appMarkers, root, additionalApplicationArchiveBuildItem, indexDependencyBuildItems, indexCache,
curateOutcomeBuildItem, removedResources);
Expand Down
8 changes: 8 additions & 0 deletions extensions/keycloak-admin-client-reactive/runtime/pom.xml
Expand Up @@ -73,6 +73,14 @@
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-extension-maven-plugin</artifactId>
<configuration>
<removedResources>
<artifact>
<key>org.keycloak:keycloak-admin-client</key>
<resources>org/keycloak/admin/client/JacksonProvider.class</resources>
</artifact>
</removedResources>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down

0 comments on commit 18b106f

Please sign in to comment.