build: a default-profile build adds a second license header to the database and monitoring shell index.html (header sits after <!doctype html>)

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
build-system

調査の方向性

指定された2つの index.html ファイルを読み、license-maven-plugin と format-license のライセンス書式設定の構成を見つけてください。変更されたファイルを再現するために mvn -pl components/resources/resources-database,components/resources/resources-monitoring initialize を実行してください。選択したヘッダーの配置または除外によって、このビルド後も両方のファイルが変更されない状態になれば完了です。

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

説明

What: a build without -P quick-build (license plugin active) modifies two tracked files:

  • components/resources/resources-database/src/main/resources/META-INF/dirigible/database/index.html
  • components/resources/resources-monitoring/src/main/resources/META-INF/dirigible/monitoring/index.html

Both start with <!doctype html> and carry their copyright comment (in a short custom form) after it. license-maven-plugin:format (format-license, phase initialize, skipExistingHeaders=true) does not recognise that as a header and inserts its full 13-line header above the doctype, so every default build leaves both files dirty.

Verified: on origin/master 9f60b659f2, in a real clone (not a worktree): mvn -pl components/resources/resources-database,components/resources/resources-monitoring initialize -> Updating license header in: .../index.html for both, git status shows both modified. -P quick-build sets license.skip, so CI builds do not see it. Two other src/main html files start with a doctype (application-core/.../shell/views/capture.html, resources-karavan-libs/.../designer/index.html), but the same run left them unchanged.

Expected: a build of an unchanged tree leaves these files unchanged: either put the standard header before the doctype (what the plugin would write, so it is recognised next time), or exclude the two files from license formatting.

Found while working on #8754 (generated files that a build rewrites); left out of that PR because these are hand-written shell pages, not generator output.

主要言語
Java
スター
278
フォーク
97
平均マージ
15時間 3分
マージ済み PR(30日)
320

環境構築

はじめの一歩

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

eclipse-dirigible/dirigible のほかの issue

eclipse-dirigible/dirigible の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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