Skip to content

fix: Name maven.install and add lock file - #75

Merged
eed3si9n merged 1 commit into
bazeltools:mainfrom
honnix:add-maven-install-name-and-lockfile
Feb 25, 2026
Merged

eed3si9n merged 1 commit into
bazeltools:mainfrom
honnix:add-maven-install-name-and-lockfile

Conversation

@honnix

@honnix honnix commented Feb 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Give maven.install a unique name (bazel_jar_jar_maven) to avoid conflicts when used as a dependency
  • Add lock_file for pinned/reproducible dependency resolution
  • Add repin_instructions for convenience

Motivation

When a downstream module depends on bazel_jar_jar and also has its own maven.install using the default name (maven), the @maven references inside bazel_jar_jar resolve to the wrong repo — the downstream module's maven install rather than bazel_jar_jar's own. This causes build failures like:

ERROR: /private/var/tmp/_bazel_honnix/62d94760b54683f426e9e3ed0886b748/external/rules_jvm_external++maven+maven/BUILD:
no such target '@@rules_jvm_external++maven+maven//:com_eed3si9n_jarjarabrams_jarjar_abrams_assembly_2_12':
target 'com_eed3si9n_jarjarabrams_jarjar_abrams_assembly_2_12' not declared in package '' defined by
/private/var/tmp/_bazel_honnix/62d94760b54683f426e9e3ed0886b748/external/rules_jvm_external++maven+maven/BUILD

Giving the maven.install a unique name (bazel_jar_jar_maven) isolates this module's dependencies and prevents name collisions with downstream consumers.

The lock_file pins exact artifact versions and checksums for reproducible builds.

Test plan

  • bazel build //... passes

🤖 Generated with Claude Code

Give the maven.install a unique name (bazel_jar_jar_maven) to avoid
conflicts when used as a dependency, add a lock file for pinned
dependencies, and include repin instructions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@honnix honnix changed the title Name maven.install and add lock file fix: Name maven.install and add lock file Feb 23, 2026
@honnix
honnix marked this pull request as ready for review February 23, 2026 14:02
@honnix

honnix commented Feb 25, 2026

Copy link
Copy Markdown
Contributor Author

@eed3si9n Thank you for approving. Feel free to merge it.

@eed3si9n
eed3si9n merged commit b5f4c98 into bazeltools:main Feb 25, 2026
8 checks passed
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