Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix automatic toolchain downloads again. #7622

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

copybara-service[bot]
Copy link
Contributor

Fix automatic toolchain downloads again.

Automatic toolchains downloads aren't necessary for our CI, which pre-downloads the toolchains that it needs. But automatic toolchains downloads remain necessary for local users who don't already have the necessary JDKs downloaded and registered.

I had the configuration right initially, and then I broke it in cl/711746683 without noticing because (as a comment in pom.xml observes) you don't notice unless you clear out your local Maven configuration before running. (I still haven't done that now, as of this writing, because I'm in the process of using one of the Maven-configured JDKs for something else....)

This fix also addresses this warning:

[WARNING] Some problems were encountered while building the effective model for com.google.guava:guava:bundle:HEAD-jre-SNAPSHOT
[WARNING] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.mvnsearch:toolchains-maven-plugin @ com.google.guava:guava-parent:HEAD-jre-SNAPSHOT, /usr/local/google/home/cpovirk/clients/guava-black/guava/pom.xml, line 389, column 17
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.google.guava:guava-parent:pom:HEAD-jre-SNAPSHOT
[WARNING] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.mvnsearch:toolchains-maven-plugin @ line 389, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

RELNOTES=n/a

Automatic toolchains downloads aren't necessary for our CI, which pre-downloads the toolchains that it needs. But automatic toolchains downloads remain necessary for local users who don't already have the necessary JDKs downloaded and registered.

I had the configuration right initially, and then I broke it in cl/711746683 without noticing because (as a comment in `pom.xml` observes) you don't notice unless you clear out your local Maven configuration before running. (I still haven't done that now, as of this writing, because I'm in the process of using one of the Maven-configured JDKs for something else....)

This fix also addresses this warning:

```
[WARNING] Some problems were encountered while building the effective model for com.google.guava:guava:bundle:HEAD-jre-SNAPSHOT
[WARNING] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.mvnsearch:toolchains-maven-plugin @ com.google.guava:guava-parent:HEAD-jre-SNAPSHOT, /usr/local/google/home/cpovirk/clients/guava-black/guava/pom.xml, line 389, column 17
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.google.guava:guava-parent:pom:HEAD-jre-SNAPSHOT
[WARNING] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.mvnsearch:toolchains-maven-plugin @ line 389, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
```

RELNOTES=n/a
PiperOrigin-RevId: 715914892
@copybara-service copybara-service bot closed this Jan 15, 2025
@copybara-service copybara-service bot merged commit d6ceb21 into master Jan 15, 2025
2 checks passed
@copybara-service copybara-service bot deleted the test_715831916 branch January 15, 2025 21:12
copybara-service bot pushed a commit that referenced this pull request Jan 15, 2025
…ing again.

RELNOTES=n/a
PiperOrigin-RevId: 715917786
copybara-service bot pushed a commit that referenced this pull request Jan 15, 2025
…ing again.

RELNOTES=n/a
PiperOrigin-RevId: 715917786
copybara-service bot pushed a commit that referenced this pull request Jan 15, 2025
…ing again.

RELNOTES=n/a
PiperOrigin-RevId: 715917786
copybara-service bot pushed a commit that referenced this pull request Jan 15, 2025
…ing again.

RELNOTES=n/a
PiperOrigin-RevId: 715960471
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