slawekjaranowski commented on code in PR #11495:
URL: https://github.com/apache/maven/pull/11495#discussion_r2570683842
##########
maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java:
##########
@@ -816,4 +858,43 @@ else if (layout.equals(repoLayout)) {
return result;
}
+
+ /**
+ * In the future, the legacy system might encounter repository types for
which no layout components exists because
+ * the actual communication with the repository happens via a repository
connector. As a minimum, the legacy system
+ * needs to retain the id of this layout so that the content type of the
remote repository can still be accurately
+ * described.
+ */
+ static class UnknownRepositoryLayout implements ArtifactRepositoryLayout {
+
+ private final String id;
+
+ private final ArtifactRepositoryLayout fallback;
+
+ UnknownRepositoryLayout(String id, ArtifactRepositoryLayout fallback) {
+ this.id = id;
+ this.fallback = fallback;
+ }
+
Review Comment:
It is private class, no special to write about it
--
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]