redhat-developer / redhat-developer/vscode-java
Rebuild All, Rebuild Project and Reload all Maven Projects trigger maven phases up to process-test-classes
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
Since version 1.14.0 the actions Rebuild All, Rebuild Project and Reload all Maven Projects trigger maven phases up to process-test-classes. For us this leads to a huge performance issue (vscode even hangs up) since we use a multi project workspace with multiple maven project that each need to do some expensive stuff (javascript dojo build) in phase process-sources.
Up until now this worked in eclipse and vscode with java extension 1.13.0 like a charm, since both never executed this phase in the UI if not explicitly triggered by a maven build.
Is it by intention or is this a bug? If it is, is there any possibilty to turn this off or any other solution available?
Environment
- Operating System: Win 10
- JDK version: jdk-17.0.3.1
- Visual Studio Code version: 1.74.3
- Java extension version: 1.14.0
Steps To Reproduce
- Import the project
- change the file path in the ant plugin in the pom.xml to a path in your system
- Click Rebuild All
- Now you see, that the file is created and lines are appended whenever one of the actions is executed.
Same steps in version 1.13.0 never writes the file as the phase is not executed.
Current Result
Phase process-sources is executed.
Expected Result
Phase process-sources is not executed like in v1.13.0.
Additional Informations
none
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用提供的 demo.zip 重现该行为,修改 pom.xml 中 ant plugin 的路径,并比较扩展版本 1.13.0 和 1.14.0 之间的 Rebuild All。跟踪这些操作会调用哪些 Maven 生命周期阶段;当这些 UI 操作不再运行 process-sources,并与预期结果一致时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100