Build error while synching Java Project during Plugin Testing #7148
Labels
awaiting-maintainer
Awaiting review from Bazel team on issues
product: IntelliJ
IntelliJ plugin
Release Blocker
issue is blocking the plugin release
type: bug
Description of the bug:
While Testing Java Project , build is failing during sync
ERRROR:
Error:error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
Error:error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
Error:ANALYSIS_FAILURE: //greeting_lib:greeting_lib
error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
Error:error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration. and referenced by '//hello:hello_greeter'
Error:command succeeded, but not all targets were analyzed
Error:Build did NOT complete successfully
Error:error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
Error:error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration. and referenced by '//hello:hello_greeter'
Error:command succeeded, but not all targets were analyzed
Error:Build did NOT complete successfully
Which category does this issue belong to?
Intellij
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
1> Open a Java project in intelliJ IDE
2> Click on the sync button
3> Build errors are shown in the logs.
Which Intellij IDE are you using? Please provide the specific version.
2024.2.5 & 2024.3
What programming languages and tools are you using? Please provide specific versions.
Java
What Bazel plugin version are you using?
2024.12.03.0.2-api-version-242 & 2024.12.03.0.2-api-version-243
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
The text was updated successfully, but these errors were encountered: