redhat-developer / redhat-developer/vscode-java

Rebuild All, Rebuild Project and Reload all Maven Projects trigger maven phases up to process-test-classes

オープン
#2,890 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

compile Maven regression
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
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
  1. Import the project
  2. change the file path in the ant plugin in the pom.xml to a path in your system
  3. Click Rebuild All
  4. 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.

demo.zip

Current Result

Phase process-sources is executed.

Expected Result

Phase process-sources is not executed like in v1.13.0.

Additional Informations

none

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。