Skip to content

build: set maven-install-plugin to 3.1.2 for offline mirror compatibility#400

Open
AnshulPatni wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
AnshulPatni:fix-maven-plugins
Open

build: set maven-install-plugin to 3.1.2 for offline mirror compatibility#400
AnshulPatni wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
AnshulPatni:fix-maven-plugins

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.codehaus.plexus:plexus-components:pom:1.1.7 in mirror

When building against Sonatype's oss-parent:9, default lifecycle bindings execute maven-install-plugin:2.4 (from 2012), which depends on deprecated Plexus artifacts that are unavailable in offline package mirrors.

An audit of our package mirror confirmed that maven-install-plugin:3.1.2 (and its parent POM tree) is fully cached and available. By explicitly defining version 3.1.2 in root pluginManagement, we resolve the missing artifact error while keeping changes minimal and surgical.

…tibility

Change-Id: I3465574727c1f70aa500941fb08a85ca708963bb
@AnshulPatni AnshulPatni assigned AnshulPatni and taeold and unassigned AnshulPatni Jul 10, 2026
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