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

Should ask input for requiredProperty with defaultValue

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      It seems that if a requiredProperty is defined with a defaultValue, the generate mojo does not ask user input. In my opinion it should, just like it does it for the version.

      DefaultArchetypeFactory lines 156-168 seem to be the culprit and I'll attach a patch that might fix this.

        Attachments

        1. ARCHETYPE-200.patch
          1 kB
          Grégory Joseph

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gjoseph Grégory Joseph
              • Votes:
                36 Vote for this issue
                Watchers:
                23 Start watching this issue

                Dates

                • Created:
                  Updated: