Skip to content

[ARCHETYPE-636] mvn archetype:create-from-project creates a broken archetype project #886

@jira-importer

Description

@jira-importer

Bert Brecht opened ARCHETYPE-636 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions