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.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • Generator
    • None
    • 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

        1. traverse-properties-without-default-value.patch
          1 kB
          Maarten Winkels
        2. RequiredPropertyComparatorTest.java
          1 kB
          Maarten Winkels

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              mwinkels@xebia.com Maarten Winkels
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: