apache / apache/maven-archetype
[ARCHETYPE-636] mvn archetype:create-from-project creates a broken archetype project
- Dominant language
- Java
- Stars
- 148
- Forks
- 181
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 8
Description
**[Bert Brecht](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bertbrecht42)** opened **[ARCHETYPE-636](https://issues.apache.org/jira/browse/ARCHETYPE-636?redirect=false)** and commented
Basically, I followed the instructions on https://maven.apache.org/archetype/maven-archetype-plugin/examples/create-multi-module-project.html
* unpack poc.tar.bz2,
* change directory into poc (cd poc) folder
* mvn archetype:create-from-project -Darchetype.filteredExtensions=java
* change into generated archetype project (cd target/generated-sources/archetype/)
* mvn install (for installing the archetype)
leads to:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:integration-test (default-integration-test) on project poc-parent-archetype:
[ERROR] Archetype IT 'basic' failed: Error merging velocity templates: Unable to find resource 'archetype-resources/one/pom.xml'
looks like the directory name of the submodule is ignored and the artifactId is being used to reference the content of the submodule?
---
**Affects:** 3.2.1
**Attachments:**
- [poc.tar.bz2](https://issues.apache.org/jira/secure/attachment/13056073/poc.tar.bz2) (_773 bytes_)
Contributor guide
No contributing guide indexed for this repository
Research direction
Follow the linked multi-module example with the attached poc.tar.bz2 and run mvn archetype:create-from-project -Darchetype.filteredExtensions=java. Inspect target/generated-sources/archetype and run mvn install to reproduce the missing archetype-resources/one/pom.xml error. Done means the generated archetype installs and its basic integration test passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100