redhat-developer / redhat-developer/vscode-java
Allow to provide Maven gav for java.project.referencedLibraries
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
it is possible to mention path to jar on the filesystem for java.project.referencedLibraries, it would be nice to be able to specify Maven gav too and VS Code java will download them in the ;m2/repository and point to them automatically
"java.project.referencedLibraries": {
"include": [
"library/**/*.jar",
"/home/username/lib/foo.jar",
"mvn:org.example:myArtifact:1.0.0"
],
"exclude": [
"library/sources/**"
],
"sources": {
"library/bar.jar": "library/sources/bar-src.jar"
}
}
sort of the corresponding feature of "Add Library -> Maven managed dependencies" in Eclipse desktop and project Settings -> Libraries in IntelliJ
Environment
- Operating System:
- JDK version:
- Visual Studio Code version:
- Java extension version:
Steps To Reproduce
- [step 1]
- [step 2]
[Please attach a sample project reproducing the error]
Please attach logs
Current Result
Expected Result
Additional Informations
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
入口点是 java.project.referencedLibraries 设置;首先定位其 include、exclude 和 sources 值是如何解析的,以及文件系统中的 JAR 是如何注册的。将请求的 mvn:org.example:myArtifact:1.0.0 行为与现有的 Maven 管理依赖流程进行比较,然后验证其是否解析到 .m2/repository,以及是否自动注册 classpath 和 source。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- build-system, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100