Bukama commented on code in PR #11495:
URL: https://github.com/apache/maven/pull/11495#discussion_r2567690372
##########
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:
Yes, please help the user. Many users treat warnings as errors and set their
CI to failed or at least unstable. We should not let them alone with this
advanced topic.
--
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]