Maven Archetype
  1. Maven Archetype
  2. ARCHETYPE-192

Property replacement for required properties

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development