apache / apache/maven-archetype

[ARCHETYPE-550] multi-module partial archetype not supported

Open
#545 0 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
148
Forks
181
Avg merge
1d 20h
Merged PRs (30d)
8

Description

**[Erwin Guib](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=eguib)** opened **[ARCHETYPE-550](https://issues.apache.org/jira/browse/ARCHETYPE-550?redirect=false)** and commented

When one generates an partial multimodule archetype on top of an existing multimodule project this will not work.

The message "Modules ignored in partial mode" and the archetype is not applied.

 

Applying an partial multimodule archetype on an existing multimodule project should work as for "simple" projects:
* existing pom/module poms are merged
* new modules are added to the multimodule project
* new files are added to the project
* attempt to overwrite an existing file triggers an error

 

Attached a (git diff > fileName) patch that fixes the issue.

---

**Affects:** 3.0.1, 3.1.0

**Attachments:**
- [ARCHETYPE-550_maven-archetype.patch](https://issues.apache.org/jira/secure/attachment/12927677/ARCHETYPE-550_maven-archetype.patch) (_11.15 kB_)

1 votes, 2 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the attached ARCHETYPE-550_maven-archetype.patch and the partial multimodule archetype generation path. Reproduce generation on an existing multimodule project, then verify that existing POMs are merged, new modules and files are added, and overwriting an existing file reports an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.