Skip to content

Commit

Permalink
Include the artifact in the bean discovery mode warning
Browse files Browse the repository at this point in the history
Otherwise it is not possible to know which dependency contain the
problematic beans.xml.

Related to quarkusio#31378.
  • Loading branch information
gsmet committed Feb 23, 2023
1 parent 021d16d commit ae647a6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae647a6

Please sign in to comment.