Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ public void addRepository(final Repository repository, boolean replace) throws I
List<RemoteRepository> newRepositories =
Collections.singletonList(ArtifactDescriptorUtils.toRemoteRepository(repository));

this.repositories = remoteRepositoryManager.aggregateRepositories(session, repositories, newRepositories, true);
// The model being built is an artifact descriptor resolved from a repository, so the
// repositories it declares are remotely supplied input: they are merged recessively and
// flagged as descriptor-declared, which lets the repository manager withhold session
// authentication from them unless an operator-defined mirror captures them.
this.repositories =
remoteRepositoryManager.aggregateRepositories(session, repositories, newRepositories, true, true);
}

private static void removeMatchingRepository(Iterable<RemoteRepository> repositories, final String id) {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ under the License.
<!-- plexus-cipher 2.1.0 uses an incompatible KDF; ciphertext encrypted with 2.0 will no longer decrypt — see #12811. Do not bump on this branch. -->
<cipherVersion>2.0</cipherVersion>
<jxpathVersion>1.4.0</jxpathVersion>
<resolverVersion>1.9.27</resolverVersion>
<resolverVersion>1.9.28-SNAPSHOT</resolverVersion>
<slf4jVersion>1.7.36</slf4jVersion>
<xmlunitVersion>2.13.0</xmlunitVersion>
<powermockVersion>2.0.9</powermockVersion>
Expand Down
Loading