Skip to content

build: fix remote repository filter for maven.packages.aklivity.io - #2613

Merged
jfallows merged 1 commit into
developfrom
claude/friendly-bohr-kfi9h0
Sep 26, 2026
Merged

jfallows merged 1 commit into
developfrom
claude/friendly-bohr-kfi9h0

Conversation

@jfallows

Copy link
Copy Markdown
Contributor

Description

.mvn/maven.config turns on Maven Resolver's group-id remote repository filter, so that the github repository (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:

  • Wrong property name. The config sets 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 is aether.remoteRepositoryFilter.groupId.basedir. The resolver therefore looked in its default directory under the local repository, found no filter file for github, and allowed every artifact from it.
    • Every uncached artifact was requested from maven.packages.aklivity.io before Central.
    • When that host is unreachable, each of those requests waits a 10s connect timeout before falling back. CI logs show exactly this pattern, e.g. Downloading from github: …/commons-io-2.15.1.pom, then Downloading from central: 10s later.
  • Exact match only. The group-id filter in Resolver 1.9 matches entries with a plain set lookup, so .mvn/rrf/groupId-github.txt containing io.aklivity wouldn't have admitted io.aklivity.zilla once the filter was active. The file now lists each group the repository serves: io.aklivity.k3po and io.aklivity.zilla.

A new io.aklivity.* group resolved from this repository will need a line in groupId-github.txt. Otherwise it fails to resolve immediately, rather than silently slowing the build.

Verification

  • Baseline. With develop's config and an empty local repository (-Dmaven.repo.local=<empty>), ./mvnw validate fails at checkstyle, which needs the reactor's own conf jar. That happens before and after this change, so validate alone can't exercise it.
  • With this change. ./mvnw clean install -DskipTests -Djacoco.skip -Dskip.checks=true -pl runtime/binding-tcp -am against an empty local repository passes:
    • io.aklivity.k3po artifacts came from github.
    • 1,360 other artifacts came from central.
    • Nothing outside the listed groups was requested from github.

Fixes # (none)

🤖 Generated with Claude Code

https://claude.ai/code/session_015AUJDQphhDuZTjetPaNsBg


Generated by Claude Code

.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 jfallows left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jfallows
jfallows merged commit befa603 into develop Sep 26, 2026
44 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants