war:exploded should have an explicit incremental option
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 68/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- java
- 領域
- build-system
調査の方向性
まず AbstractWarPackagingTask と、ファイルを展開された WAR に含めるかどうかを決定する copyFile の呼び出しを読みます。Packaging オプションがどのように公開されているかを追跡し、次に、有効にすると変更されていないファイルをスキップする明示的な incremental オプションを追加します。展開された WAR が同等のまま維持され、繰り返しのビルドで不要なコピーが避けられれば完了です。
索引モデルが issue の本文から書いたものです。
説明
New feature, improvement proposal
When checking whether to copy files into the exploded war, the plugin is aggressively copying each file even if it is already present with an modification date that indicates that it doesn't need to be fully refreshed. This can be a significant slowdown in larger projects (For context, I'm using this on a large legacy java application where the entire non-exploded war file is about half a GB and contains ~21k files of which 787 are separate JARs, and copying the entire set in can take ~2 minutes (which I am entirely aware is probably limited by other factors outside of this plugin!)).
Forking the plugin locally and making myself a version where I just universally change the copyFile invocations in AbstractWarPackagingTask to all have onlyIfModified = true, then the overall WAR compilation time is cut down to seconds and the final output exploded war is equivalent and consistently gets updated as I make changes.
This seems like a fairly simple feature to add that has marginal benefits to people in a similar situation
- 主要言語
- Java
- スター
- 48
- フォーク
- 103
- 平均マージ
- 11時間 20分
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/maven-war-plugin のほかの issue
-
help wanted maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/maven-war-plugin#694 ·
メンテナーはふだん 1 日以内に返信
-
OverlayManager.compareOverlayWithArtifact() treats null classifier as literal "null" string対応中かも @elharo が 146 日前に担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
apache/maven-war-plugin#621 ·
メンテナーはふだん 1 日以内に返信
-
DependencyInfo.hashCode() violates equals/hashCode contract対応中かも @elharo が 146 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/maven-war-plugin#620 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bogus file copy for onlyIfModified=true対応中かも @arturobernalg が 8 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
apache/maven-war-plugin#684 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Multibyte UTF-8 character split by newline in MANIFEST. MF対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
apache/maven-war-plugin#654 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
apache/maven-war-plugin の issue をすべて見る
似ている issue
-
Android Bug Core Drape
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
organicmaps/organicmaps#14449 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openhab/openhab-addons#22512 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
objectionary/lints#1871 ·
メンテナーはふだん 1 日以内に返信
-
help wanted maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/maven-resolver-ant-tasks#219 ·
メンテナーはふだん 1 日以内に返信
-
help wanted maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/maven-project-info-reports-plugin#704 ·
メンテナーはふだん 1 日以内に返信