redhat-developer / redhat-developer/vscode-java
Maven dependency with classifier not resolved correctly in vscode
未关闭
还没有人认领这个 Issue。
bug
Maven
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
I have a Maven dependency with <type>jar</type> and <classifier>idl</classifier> but instead of my -idl.jar classes being resolved in vscode, it's actually the classes of the main artifact that are visible. When i build the project with mvn install or w/e on the CLI, it's working correctly.
Environment
- Operating System: openSUSE Leap 42.2
- JDK version: 11.0.8, 2020-07-14
- Visual Studio Code version: 1.50.0, 2020-10-07
- Java extension version: 0.72.0, [2020-12-02]
Steps To Reproduce
- create 2 maven projects
- use some plugin to export a jar with a different classifier (tests for example) in project 1
- import project 1 in project 2 with that classifier
- try to import a class that's only visible in that classifier
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 issue 中描述的两个 Maven 项目重现该问题,其中包括一个带有 idl classifier 的依赖项。首先跟踪 Java 扩展如何解析 Maven 依赖项,然后验证 classifier 专用的类—而不是主 artifact 的类—在 VS Code 中可用,同时 CLI 构建仍然正确。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100