apache / apache/maven-help-plugin

effective-pom duplicate xml declaration and not pretty printed

オープン
#421 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Java
スター
29
フォーク
42
平均マージ
1日 12時間
マージ済み PR(30日)
6

説明

### Affected version

3.5.2

### Bug description

The effective-pom goal will generate invalid XML output in some cases. Run 'mvn help:effective-pom -Dverbose=true' on the attached pom.xml and you will see output like that in maven-help-plugin.txt

This output shows the following problems:
* There are two xml declarations, this is actually invalid
* The xml has not been pretty-printed
* Comments from the 'verbose' flag still start with

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

AbstractEffectiveMojo.prettyFormat() と EffectivePomMojo.execute() から始め、添付された pom.xml と `mvn help:effective-pom -Dverbose=true` を使って問題を再現します。出力を maven-help-plugin.txt と比較します。完了とは、effective POM に XML 宣言が 1 つあり、整形出力され、verbose コメントが正しくフォーマットされていることを意味します。

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

評価

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

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

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