You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

IntelliJ平台插件提交市场失败:找不到com.redhat包依赖

IntelliJ插件市场提交失败:Red Hat lsp4ij依赖找不到问题

问题描述

我的IntelliJ平台插件本地可通过Gradle正常构建,在IDEA和PyCharm中运行正常,但推送至JetBrains插件市场时无法通过验证,核心问题是找不到com.redhat包(包含其下5个相关类)。

已执行操作

  • 将本地IDEA升级至2025.1.2
  • 升级插件版本属性:
    • intelliJPlatform = "2.6.0"
    • pluginSinceBuild=251
    • pluginUntilBuild=251.*

已查阅2025年IntelliJ API变更文档,但未发现相关依赖变更内容。

lsp4ij集成配置详情

gradle.properties

platformPlugins=com.redhat.devtools.lsp4ij:0.13.0

build.gradle.kts

dependencies {
    intellijPlatform {
        create(providers.gradleProperty("platformType"), providers.gradleProperty("platformVersion"))
        plugins(providers.gradleProperty("platformPlugins").map { it.split(',') })
//        plugins("com.redhat.devtools.lsp4ij:0.13.0")
    }
}

plugin.xml

<depends>com.redhat.devtools.lsp4ij</depends> <!-- 本地提示:Cannot resolve plugin 'com.redhat.devtools.lsp4ij' in dependencies -->

libs.versions.toml

[versions]
# libraries
junit = "4.13.2"
java = "21"

# plugins
changelog = "2.2.1"
intelliJPlatform = "2.6.0"
kotlin = "2.1.10"
kover = "0.9.1"
qodana = "2024.3.4"

[libraries]
junit = { group = "junit", name = "junit", version.ref = "junit" }

[plugins]
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }
intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "intelliJPlatform" }
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
qodana = { id = "org.jetbrains.qodana", version.ref = "qodana" }

平台验证报告内容

Compatibility problems details
Package 'com.redhat' is not found details
(Package 'com.redhat' is not found, Package 'com.redhat' is not found along with its 5 classes.

内容的提问来源于stack exchange,提问作者prosody

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 21:18:21