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

Specify versions for plugins. #7588

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Specify versions for plugins. #7588

merged 1 commit into from
Jan 2, 2025

Conversation

copybara-service[bot]
Copy link
Contributor

Specify versions for plugins.

I'm getting the impression that Maven, rather than having some kind of default like "Maven 3.9.9 uses maven-install-plugin:3.1.3," actually just downloads the newest version of every plugin without a specified version. If so, that is making our builds non-hermetic, and I wonder if that sort of behavior could explain why I wasn't sure what change on our part could have caused google/auto#1832 (and maybe even misdiagnosed google/truth#1343, though I haven't investigated any of this).

Anyway, I noticed this because of:

Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (895 B at 2.1 kB/s)
[WARNING] Ignoring incompatible plugin version 4.0.0-beta-1: The plugin org.apache.maven.plugins:maven-install-plugin:4.0.0-beta-1 requires Maven version 4.0.0-beta-3
[INFO] Latest version of plugin org.apache.maven.plugins:maven-install-plugin failed compatibility check
[INFO] Looking for compatible RELEASE version of plugin org.apache.maven.plugins:maven-install-plugin
[INFO] Selected plugin org.apache.maven.plugins:maven-install-plugin:3.1.3
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (984 B at 89 kB/s)
[WARNING] Ignoring incompatible plugin version 4.0.0-beta-1: The plugin org.apache.maven.plugins:maven-deploy-plugin:4.0.0-beta-1 requires Maven version 4.0.0-beta-3
[INFO] Latest version of plugin org.apache.maven.plugins:maven-deploy-plugin failed compatibility check
[INFO] Looking for compatible RELEASE version of plugin org.apache.maven.plugins:maven-deploy-plugin
[INFO] Selected plugin org.apache.maven.plugins:maven-deploy-plugin:3.1.3

RELNOTES=n/a

I'm getting the impression that Maven, rather than having some kind of default like "Maven 3.9.9 uses `maven-install-plugin:3.1.3`," actually just downloads the newest version of every plugin without a specified version. If so, that is making our builds non-hermetic, and I wonder if that sort of behavior could explain why I wasn't sure what change on our part could have caused google/auto#1832 (and _maybe_ even misdiagnosed google/truth#1343, though I haven't investigated any of this).

Anyway, I noticed this because of:

```
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (895 B at 2.1 kB/s)
[WARNING] Ignoring incompatible plugin version 4.0.0-beta-1: The plugin org.apache.maven.plugins:maven-install-plugin:4.0.0-beta-1 requires Maven version 4.0.0-beta-3
[INFO] Latest version of plugin org.apache.maven.plugins:maven-install-plugin failed compatibility check
[INFO] Looking for compatible RELEASE version of plugin org.apache.maven.plugins:maven-install-plugin
[INFO] Selected plugin org.apache.maven.plugins:maven-install-plugin:3.1.3
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (984 B at 89 kB/s)
[WARNING] Ignoring incompatible plugin version 4.0.0-beta-1: The plugin org.apache.maven.plugins:maven-deploy-plugin:4.0.0-beta-1 requires Maven version 4.0.0-beta-3
[INFO] Latest version of plugin org.apache.maven.plugins:maven-deploy-plugin failed compatibility check
[INFO] Looking for compatible RELEASE version of plugin org.apache.maven.plugins:maven-deploy-plugin
[INFO] Selected plugin org.apache.maven.plugins:maven-deploy-plugin:3.1.3
```

RELNOTES=n/a
PiperOrigin-RevId: 711438220
@copybara-service copybara-service bot merged commit c146772 into master Jan 2, 2025
1 check passed
@copybara-service copybara-service bot deleted the test_711420356 branch January 2, 2025 16:57
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