Skip to content

Fix issue for downstream users of Maven 3.10.0, and clean up obsolete profile. - #563

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_996593822
Oct 9, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_996593822

Conversation

@copybara-service

Copy link
Copy Markdown

Fix issue for downstream users of Maven 3.10.0, and clean up obsolete profile.

IIUC: For security reasons, Maven has changed to disallow dependencies to select a profile based on what files exist on disk. So, in order to detect whether to include tools.jar on the classpath, we must check the Java version, rather than checking whether tools.jar exists.

This change, once released and pulled into Auto, should resolve the problem seen at head, including in such PRs as google/auto#2160.

I also figured that it was about time to remove the Mac profile that sounds like it may have supported Java 6 there.

RELNOTES=Fixed Java 8 build configuration to work for downstream users of Maven 3.10.0.

… profile.

IIUC: For security reasons, Maven has changed to disallow _dependencies_ to select a profile based on what files exist on disk. So, in order to detect whether to include `tools.jar` on the classpath, we must check the Java version, rather than checking whether `tools.jar` exists.

This change, once released and pulled into Auto, should resolve the problem seen at head, including in such PRs as google/auto#2160.

I also figured that it was about time to remove the Mac profile that sounds like it may have supported Java *6* there.

RELNOTES=Fixed Java 8 build configuration to work for downstream users of Maven 3.10.0.
PiperOrigin-RevId: 996668159
@copybara-service
copybara-service Bot merged commit 63b2b79 into main Oct 9, 2026
2 checks passed
@copybara-service
copybara-service Bot deleted the test_996593822 branch October 9, 2026 18:55
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