Maven Archetype
  1. Maven Archetype
  2. ARCHETYPE-383

Use velocity expressions in descriptor properties

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: Plugin
    • Labels:
      None

      Description

      The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
      For example :

      <requiredProperty key="className">
        <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
      </requiredProperty>
      1. patch_jira_383.patch
        3 kB
        Emmanuel Hugonnet

        Issue Links

          Activity

          Mark Thomas made changes -
          Workflow jira [ 12953975 ] Default workflow, editable Closed status [ 12991078 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 22:17:37 UTC 2015 [ 1428272257260 ]
          Mark Thomas made changes -
          Workflow jira [ 12716820 ] Default workflow, editable Closed status [ 12748082 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:05:55 UTC 2015 [ 1428224755734 ]
          Hervé Boutemy made changes -
          Description The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
          For example :
          <requiredProperty key="className">
            <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
          </requiredProperty>
          The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
          For example :
          {code:xml}<requiredProperty key="className">
            <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
          </requiredProperty>{code}
          Bue Pierre-Christophe made changes -
          Link This issue is related to ARCHETYPE-406 [ ARCHETYPE-406 ]
          Olivier Lamy (*$^¨%`£) made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Olivier Lamy (*$^¨%`£) made changes -
          Assignee Olivier Lamy [ olamy ]
          Emmanuel Hugonnet made changes -
          Attachment patch_jira_383.patch [ 56708 ]
          Olivier Lamy (*$^¨%`£) made changes -
          Field Original Value New Value
          Fix Version/s 2.2 [ 17651 ]
          Issue Type Improvement [ 4 ] New Feature [ 2 ]
          Emmanuel Hugonnet created issue -

            People

            • Assignee:
              Olivier Lamy (*$^¨%`£)
              Reporter:
              Emmanuel Hugonnet
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development