Skip to content

build: set maven-enforcer-plugin to 3.5.0 for offline mirror compatibility#399

Merged
AnshulPatni merged 1 commit into
GoogleCloudPlatform:mainfrom
AnshulPatni:fix-enforcer-airlock
Jul 9, 2026
Merged

build: set maven-enforcer-plugin to 3.5.0 for offline mirror compatibility#399
AnshulPatni merged 1 commit into
GoogleCloudPlatform:mainfrom
AnshulPatni:fix-enforcer-airlock

Conversation

@AnshulPatni

Copy link
Copy Markdown
Contributor

During automated release builds in secure, offline environments, Maven failed with a transitive dependency resolution error:
Could not find artifact org.apache.maven:maven-parent:pom:48 in mirror

In secure release pipelines, all Maven dependencies must be resolved through an internal vetted package mirror. While maven-enforcer-plugin:3.6.3 exists in the mirror, its parent POM (org.apache.maven:maven-parent:48) is currently unavailable in the offline cache.

An audit of our package mirror confirmed that org.apache.maven:maven-parent:42 is fully cached and available. By setting maven-enforcer-plugin to 3.5.0 (the highest modern version that inherits from maven-parent:42), we maintain a modern Enforcer plugin while guaranteeing 100% offline mirror compatibility during automated release builds.

…ility

Change-Id: I3f5adcb7864d39e2f3c2bc5de148936f6e0e248c
@AnshulPatni AnshulPatni merged commit bff183f into GoogleCloudPlatform:main Jul 9, 2026
25 of 26 checks passed
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