From ae647a641ed56a828bccdc47b1addebd6dcf1e73 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 23 Feb 2023 18:39:03 +0100 Subject: [PATCH] Include the artifact in the bean discovery mode warning Otherwise it is not possible to know which dependency contain the problematic beans.xml. Related to #31378. --- .../java/io/quarkus/arc/deployment/BeanArchiveProcessor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveProcessor.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveProcessor.java index 5e8158993fafd..53eda169c5dc1 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveProcessor.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveProcessor.java @@ -189,7 +189,9 @@ private boolean possiblyBeanArchive(ApplicationArchive archive) { || text.contains("bean-discovery-mode=\"all\"")) { LOGGER.warnf("Detected bean archive with bean discovery mode of 'all', " + "this is not portable in CDI Lite and is treated as 'annotated' in Quarkus! " - + "Path to beans.xml: %s", pathVisit.getPath()); + + "Path to beans.xml: %s", + archive.getKey() != null ? archive.getKey().toGacString() + ":" + pathVisit.getPath() + : pathVisit.getPath()); } } catch (IOException e) { throw new UncheckedIOException(e);