Skip to content

Commit 9c764b9

Browse files
committed
Add missing message
All providers except thins one emit message when selection happened. Add the missing message here too.
1 parent f7bbd35 commit 9c764b9

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultRepositoryLayoutProvider.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,19 @@ public RepositoryLayout newRepositoryLayout(RepositorySystemSession session, Rem
6767
List<NoRepositoryLayoutException> errors = new ArrayList<>();
6868
for (PrioritizedComponent<RepositoryLayoutFactory> factory : factories.getEnabled()) {
6969
try {
70-
return factory.getComponent().newInstance(session, repository);
70+
RepositoryLayout repositoryLayout = factory.getComponent().newInstance(session, repository);
71+
72+
if (LOGGER.isDebugEnabled()) {
73+
StringBuilder buffer = new StringBuilder(256);
74+
buffer.append("Using layout ")
75+
.append(repositoryLayout.getClass().getSimpleName());
76+
Utils.appendClassLoader(buffer, repositoryLayout);
77+
buffer.append(" with priority ").append(factory.getPriority());
78+
buffer.append(" for ").append(repository.getUrl());
79+
LOGGER.debug(buffer.toString());
80+
}
81+
82+
return repositoryLayout;
7183
} catch (NoRepositoryLayoutException e) {
7284
// continue and try next factory
7385
if (LOGGER.isTraceEnabled()) {

0 commit comments

Comments
 (0)