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

Replacing properties in default value of other properties doesn't work due to faulty ordering.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Generator
    • Labels:
      None
    • Flags:
      Patch

      Description

      I would like to do something like:

      <requiredProperty key="name"/>
      <requiredProperty key="archetypeId">
        <defaultValue>some-prefix-${name}</defaultValue>
      </requiredProperty>

      This is now not working, because the name property does not declare a default value.

      Please see the attached test for an example.

      The other attachement is a patch that changes the comparator for sorting the required properties in such a way that it actually works.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hboutemy Hervé Boutemy
                Reporter:
                mwinkels@xebia.com Maarten Winkels
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: