Skip to content

Can't Download Sources in IntelliJ #7809

@carl-mastrangelo

Description

@carl-mastrangelo

Description of the issue. Please be specific.

I have a very bare bones project with a single Maven dependency. The sources for the dep are not found in IntellIj, and Pressing the "Download..." button in the butter bar doesn't seem to do anything.

What's the simplest set of steps to reproduce this issue? Please provide an example project, if possible.

My MODULE.bazel

bazel_dep(name = "rules_java", version = "8.13.0")
bazel_dep(name = "rules_jvm_external", version = "6.8")

maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")

maven.install(
    artifacts = [
        "io.perfmark:perfmark-api:0.27.0"
    ],
    lock_file = "//:maven_install.json",
)

use_repo(maven, "maven")

My BUILD

load("@rules_java//java:defs.bzl", "java_binary")

package(default_visibility = ["//visibility:public"])

java_binary(
    name = "Main",
    runtime_deps = [
        "//src/main/java/fun/carl/apiserver"
    ],
    main_class = "fun.carl.apiserver.Main"
)

My src/main/java/fun/carl/apiserver/BUILD

load("@rules_java//java:defs.bzl",  "java_library")

package(default_visibility = ["//visibility:public"])

java_library(
    name = "apiserver",
    srcs = glob(["*.java"]),
    deps = [
        "@maven//:io_perfmark_perfmark_api"
    ],
)

I assume the Lock files aren't relevant, but I can provide them if needed.

Below are screen shots of my IDE:

Image Image

Version information

IdeaCommunity: 2024.3.5 ( Build #IC-243.26053.27, built on March 15, 2025 )
Platform: Linux 6.1.0-37-amd64
Bazel for IntelliJ plugin: 2025.06.10.0.1-api-version-243
Bazel: 8.3.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Untriaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions