redhat-developer / redhat-developer/vscode-java
Working Maven project reports multiple errors in VSCode and will not build
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
I have a simple working Java Maven project. This project builds (assuming you have Java and Maven setup) - with:
mvn clean install
And the jar file runs as expected.
However, when I open it in VSCode (I have the Java Extension pack installed) - I see 105 "Problems" reported in the pom.xml:
- 4x "Failed to read artifact descriptor for ..."
- The rest "Missing artifact ..."
This appears to prevent most of the VSCode Java tools from working - I can't build and debug. Intellisense seems to be sketchy/intermittent. And so on.
Environment
- Operating System: Windows 10
- JDK version: OpenJDK 11.0.5.10
- Visual Studio Code version: 1.41.1
- Java extension version: 0.55.0
Steps To Reproduce
- Extract the attached zip file to a folder
- Open the folder in VSCode and inspect the Problems tab
- Attempt to build the project
To prove Maven works
- Extract the attached zip file to a folder
- Open a bash or cmd window, cd to the folder and run
mvn clean install - Copy the generated thularest-1.0.jar file from
<folder>/targetto<folder>/bin - cd to /bin and run
./rest-start.sh - Crowse to http://localhost:8080/api/hello
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用附带的 vsc-java-test.zip 重现该报告:在 VSCode 中打开 Maven 项目,检查 Problems 选项卡,并将其与 shell 中的 mvn clean install 进行比较。根据报告的诊断信息,跟踪 Java extension 的项目导入和依赖项解析;完成的标准是,有效项目不再显示缺少 artifact 的错误,并且 Java 构建/调试工具能够正常工作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- build-system, developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100