gnodet commented on code in PR #11495:
URL: https://github.com/apache/maven/pull/11495#discussion_r2567677307
##########
maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java:
##########
@@ -275,9 +288,14 @@ public void injectProxy(RepositorySystemSession session,
List<ArtifactRepository
}
}
- private ArtifactRepositoryLayout getLayout(String id) {
+ private ArtifactRepositoryLayout getLayout(String repoId, String id) {
ArtifactRepositoryLayout layout = layouts.get(id);
+ if (layout == null) {
+ LOGGER.warn("No layout '{}' found for repository id '{}'", id,
repoId);
Review Comment:
Won't this warning be printed each time the repository is used?
Should we inform the user about how to fix the problem ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]