Skip to content

chore(build): disable Maven Resolver 2.x default remote repository filters for flatten-maven-plugin - #14598

Open
blakeli0 wants to merge 1 commit into
googleapis:mainfrom
blakeli0:fix-flatten-maven-3.10
Open

blakeli0 wants to merge 1 commit into
googleapis:mainfrom
blakeli0:fix-flatten-maven-3.10

Conversation

@blakeli0

@blakeli0 blakeli0 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes java.lang.VerifyError in downstream tests (such as java-bigquery-jdbc) on GitHub Actions runners upgraded to Apache Maven 3.10.0.

Cause

Maven 3.10.0 (Maven Resolver 2.0.24) enables aether.remoteRepositoryFilter.prefixes and aether.remoteRepositoryFilter.groupId by default. Because flatten-maven-plugin:1.3.0 reads dependency POMs with repositories = null ([]), the active remote repository filter rejects cached POMs in ~/.m2/repository, causing flatten-maven-plugin to drop <exclusions> (such as protobuf-javalite on io.grpc:grpc-protobuf-lite) when generating .flattened-pom.xml.

Fix

Disable the default remote repository filters in .mvn/maven.config:

-Daether.remoteRepositoryFilter.prefixes=false
-Daether.remoteRepositoryFilter.groupId=false

@blakeli0
blakeli0 requested a review from a team as a code owner October 7, 2026 21:21

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Maven configuration in .mvn/maven.config to disable remote repository filters for prefixes and group IDs. There are no review comments, and I have no feedback to provide.

Comment thread .mvn/maven.config
@@ -0,0 +1,2 @@
-Daether.remoteRepositoryFilter.prefixes=false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add a todo to remove it when extract plugin is updated?

This branch has not been deployed

No deployments
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