Repository navigation
build: fix remote repository filter for maven.packages.aklivity.io - #2613
Merged
Merged
Conversation
.mvn/maven.config set aether.remoteRepositoryFilter.filterBasedir, which Maven Resolver 1.9 does not read; the groupId filter reads aether.remoteRepositoryFilter.groupId.basedir. With no filter file found for the github repository, every artifact was requested from maven.packages.aklivity.io before Maven Central, so an unreachable repository cost a connect timeout per uncached artifact. The groupId filter also matches exact group ids only, so io.aklivity alone would have blocked io.aklivity.zilla; list each group served by that repository instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015AUJDQphhDuZTjetPaNsBg
jfallows
added a commit
that referenced
this pull request
Sep 26, 2026
…2613) .mvn/maven.config set aether.remoteRepositoryFilter.filterBasedir, which Maven Resolver 1.9 does not read; the groupId filter reads aether.remoteRepositoryFilter.groupId.basedir. With no filter file found for the github repository, every artifact was requested from maven.packages.aklivity.io before Maven Central, so an unreachable repository cost a connect timeout per uncached artifact. The groupId filter also matches exact group ids only, so io.aklivity alone would have blocked io.aklivity.zilla; list each group served by that repository instead. Claude-Session: https://claude.ai/code/session_015AUJDQphhDuZTjetPaNsBg Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
.mvn/maven.configturns on Maven Resolver's group-id remote repository filter, so that thegithubrepository (https://maven.packages.aklivity.io/) only serves aklivity artifacts and everything else goes straight to Maven Central. The filter has never taken effect, for two reasons:aether.remoteRepositoryFilter.filterBasedir, which Maven Resolver 1.9 (Maven 3.9.14 bundles 1.9.27) doesn't read. The group-id filter's base directory isaether.remoteRepositoryFilter.groupId.basedir. The resolver therefore looked in its default directory under the local repository, found no filter file forgithub, and allowed every artifact from it.maven.packages.aklivity.iobefore Central.Downloading from github: …/commons-io-2.15.1.pom, thenDownloading from central:10s later..mvn/rrf/groupId-github.txtcontainingio.aklivitywouldn't have admittedio.aklivity.zillaonce the filter was active. The file now lists each group the repository serves:io.aklivity.k3poandio.aklivity.zilla.A new
io.aklivity.*group resolved from this repository will need a line ingroupId-github.txt. Otherwise it fails to resolve immediately, rather than silently slowing the build.Verification
develop's config and an empty local repository (-Dmaven.repo.local=<empty>),./mvnw validatefails at checkstyle, which needs the reactor's ownconfjar. That happens before and after this change, sovalidatealone can't exercise it../mvnw clean install -DskipTests -Djacoco.skip -Dskip.checks=true -pl runtime/binding-tcp -amagainst an empty local repository passes:io.aklivity.k3poartifacts came fromgithub.central.github.Fixes # (none)
🤖 Generated with Claude Code
https://claude.ai/code/session_015AUJDQphhDuZTjetPaNsBg
Generated by Claude Code