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 Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Generator
    • Labels:
      None
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      2

      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.

        Issue Links

          Activity

          Hide
          Herve Boutemy added a comment -

          patch applied with improvements in r1163371

          thank you

          Show
          Herve Boutemy added a comment - patch applied with improvements in r1163371 thank you

            People

            • Assignee:
              Herve Boutemy
              Reporter:
              Maarten Winkels
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: