war:exploded should have an explicit incremental option

オープン 初心者向け
#556 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@efegokdemir がすでに取り組んでいます。

2026年9月24日 から。

  • #662 @efegokdemir による — オープン

評価

難易度
2/5
見積もり時間
半日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
java
領域
build-system

調査の方向性

まず AbstractWarPackagingTask と、ファイルを展開された WAR に含めるかどうかを決定する copyFile の呼び出しを読みます。Packaging オプションがどのように公開されているかを追跡し、次に、有効にすると変更されていないファイルをスキップする明示的な incremental オプションを追加します。展開された WAR が同等のまま維持され、繰り返しのビルドで不要なコピーが避けられれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement
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 ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/maven-war-plugin のほかの issue

apache/maven-war-plugin の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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