Skip to content

Conversation

@copybara-service
Copy link

Rip out maven-release-plugin configuration.

As best I can tell, this configuration has never offered anything over what we get by default from maven-deploy-plugin (or its modern replacement, central-publishing-maven-plugin).

I wouldn't rule out that we've never actually used maven-release-plugin at all for our releases: We may have been running mvn deploy instead of mvn release:prepare + mvn release:perform. (Certainly the script that we use for most of our projects uses mvn deploy directly.)

I looked into the -DenableCiProfile bit, and as best I can tell, we've never defined a property by that name, nor is it a standard part of Maven. I do see one defined in the pom.xml for maven-surefire-plugin, but our setting the flag would have no effect on our usage of Surefire; the setting there would matter only when building Surefire.

Anyway, this configuration dates back to cl/30835352 (Caliper) and cl/51674256 (Compile-Testing). I can't fully rule out that it's doing something for some process that someone uses, but I'm highly comfortable removing it. We can always roll back if we somehow see trouble, and I don't expect any trouble in the first place.

RELNOTES=n/a

As best I can tell, this configuration has never offered anything over what we get by default from `maven-deploy-plugin` (or its modern replacement, `central-publishing-maven-plugin`).

I wouldn't rule out that we've never actually used `maven-release-plugin` at all for our releases: We may have been running `mvn deploy` instead of `mvn release:prepare` + `mvn release:perform`. (Certainly the script that we use for most of our projects uses `mvn deploy` directly.)

I looked into the `-DenableCiProfile` bit, and as best I can tell, we've never defined a property by that name, nor is it a standard part of Maven. I do see one defined in [the `pom.xml` for `maven-surefire-plugin`](https://central.sonatype.com/artifact/org.apache.maven.plugins/maven-surefire-plugin/3.1.0), but our setting the flag would have no effect on our _usage_ of Surefire; the setting there would matter only when _building_ Surefire.

Anyway, this configuration dates back to cl/30835352 (Caliper) and cl/51674256 (Compile-Testing). I can't fully rule out that it's doing _something_ for _some_ process that _someone_ uses, but I'm highly comfortable removing it. We can always roll back if we somehow see trouble, and I don't expect any trouble in the first place.

RELNOTES=n/a
PiperOrigin-RevId: 831024758
@copybara-service copybara-service bot merged commit 084e365 into main Nov 11, 2025
@copybara-service copybara-service bot deleted the test_831002527 branch November 11, 2025 20:31
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.

1 participant