You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new API to reflect the "intent" with given remote repository. Also, _within session_ remote repositories may be used as keys (ie in a map), but then use of new method IS MUST.
(This _immediately_ revealed bug in 2.0.13: triggered #1667; not after fixes got merged)
Copy file name to clipboardExpand all lines: maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/filter/RemoteRepositoryFilterSourceSupport.java
+5-18Lines changed: 5 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,6 @@
21
21
importjava.io.IOException;
22
22
importjava.io.UncheckedIOException;
23
23
importjava.nio.file.Path;
24
-
importjava.util.List;
25
24
26
25
importorg.eclipse.aether.ConfigurationProperties;
27
26
importorg.eclipse.aether.RepositorySystemSession;
@@ -79,26 +78,14 @@ protected Path getBasedir(
79
78
}
80
79
81
80
/**
82
-
* We use remote repositories as keys, but they may fly in as "bare" or as "equipped" (w/ auth and proxy) if caller
83
-
* used {@link org.eclipse.aether.RepositorySystem#newResolutionRepositories(RepositorySystemSession, List)} beforehand.
84
-
* The hash/equalTo method factors in all these as well, but from our perspective, they do not matter. So we make all
85
-
* key remote repositories back to "bare".
86
-
* Ignored properties of normalized repositories:
87
-
* <ul>
88
-
* <li>proxy - is environment dependent</li>
89
-
* <li>authentication - is environment and/or user dependent</li>
90
-
* <li>mirrored repositories - is environment dependent (within same session does not change)</li>
91
-
* <li>repository manager - is environment dependent (within same session does not change)</li>
92
-
* </ul>
81
+
* We use remote repositories as keys, so normalize them.
0 commit comments