Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-636

mvn archetype:create-from-project creates a broken archetype project

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.1
    • None
    • Plugin
    • None

    Description

      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?

      Attachments

        1. poc.tar.bz2
          0.8 kB
          Bert Brecht

        Activity

          People

            Unassigned Unassigned
            bertbrecht42 Bert Brecht
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: