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

Property replacement for required properties

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha-3
    • Fix Version/s: 2.0-alpha-5
    • Component/s: None
    • Labels:
      None

      Description

      It would be nice if one could define default values for required properties using other required properties.

      For example:

      <requiredProperties>
      <requiredProperty key="myModule" />
      <requiredProperty key="myApp" />
      <requiredProperty key="package">
      <defaultValue>org.foo.bar.${myModule}.${myApp}</defaultValue>
      </requiredProperty>
      </requiredProperties>

      having resources

      src/main/java
      dao/MyDao.java
      Main.java

      would produce

      org.foo.bar.mymodule.myapp.dao.MyDao.java
      org.foo.bar.mymodule.myapp.Main.java

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                wgomes Will Gomes
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: