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

Do not use hardcoded path to the build directory in create-from-project goal

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha-4
    • Fix Version/s: 2.0-alpha-5
    • Component/s: Creator
    • Labels:
      None

      Description

      When using mvn archetype:create-from-project, the archetype is generated in target/generated-sources/archetype irrespective of what the project's specified build directory is.

      Fix should be trivial: instead of using "${basedir}/target" as the expression for outputDirectory in org.apache.maven.archetype.mojos.CreateArchetypeFromProjectMojo (line 142 on the current version in svn), use "${project.build.directory}".

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              florent Florent Robineau
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: