[ARCHETYPE-552] Erroneous Inheritance Cycle Generated By Archetype Plugin
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
- 領域
- build-system
調査の方向性
添付された最小限の archetype プロジェクトから始めて、mvn install を実行します。target/test-classes/projects/it-basic/project/example-project/example-project-parent/pom.xml を調べると、生成された parent POM に aggregator parent が誤って含まれています。完了条件は、生成されたプロジェクトにその parent element も inheritance cycle も存在せず、動作する Maven プロジェクトであり続けることです。
索引モデルが issue の本文から書いたものです。
説明
Scott MacDonald opened ARCHETYPE-552 and commented
When developing a multi module archetype with a root level aggregator pom which inherits from a sibling parent within the project, the archetype generated project will incorrectly add the aggregator pom as a parent in the sibling parent pom file, causing an inheritance cycle in the generated project.
Attached is a zip file containing a minimal archetype project that demonstrates the behavior.
After running mvn install, you can inspect target/test-classes/projects/it-basic/project/example-project/example-project-parent/pom.xml and see that the generated project incorrectly adds the top-level aggregate pom as a parent in the parent pom causing an inheritance cycle, even though such a parent designation is not specified in the archetype resources.
The exact element that is incorrectly added to target/test-classes/projects/it-basic/project/example-project/example-project-parent/pom.xml is below..
<parent>
<artifactId>example-project-aggregator</artifactId>
<groupId>com.foo</groupId>
<version>0.0.0</version>
</parent>
After the failure, removing the incorrect parent pom element from the target/test-classes/projects/it-basic/project/example-project/example-project-parent/pom.xml results in a working maven project.
Affects: 3.0.1
Attachments:
- maven-archetype-parent-cycle-bug.zip (97.79 kB)
- 主要言語
- Java
- スター
- 147
- フォーク
- 186
- 平均マージ
- 11時間 43分
- マージ済み PR(30日)
- 35
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/maven-archetype のほかの issue
-
help wanted maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/maven-archetype#1086 ·
メンテナーはふだん 1 日以内に返信
-
DefaultArchetypeFilesResolver.findOtherResources(level, files, sourcesFiles, languages) never applies its computed include patterns対応中かも @adityaanikam が 82 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/maven-archetype#1020 ·
メンテナーはふだん 1 日以内に返信
-
Remove the unbuilt archetype-samples tree対応中かも @hutiefang76 が 79 日前に担当しました。 オープンdependencies good first issue maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
apache/maven-archetype#1012 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
maintenance
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
apache/maven-archetype#1057 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
apache/maven-archetype#994 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
apache/maven-archetype の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openhab/openhab-addons#22512 ·
メンテナーはふだん 1 日以内に返信
-
help wanted maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/maven-project-info-reports-plugin#704 ·
メンテナーはふだん 1 日以内に返信
-
help wanted maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/maven-ejb-plugin#261 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
[Bug] Python NumpyTablet silently drops trailing zero bytes from BLOB values対応中かも @DaZuiZui が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信