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

custom variable filtered in created resources

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-alpha-4
    • Component/s: Creator, Generator
    • Labels:
      None
    • Environment:
      Any

      Description

      It would be nice to be able to define a custom variable that would be filtered for created resources just like artifactId or gourpId.

      Example
      ------------

      Command line: mvn archetype:create ... -DartifactId=my-foo -DmyVar=myValue

      Usage, in archetype-resources pom for example:

      <scm>
      <developersConnection>https://example.com/foo/${myVar}/${artifactId}/trunk

      Which would translate to:
      <scm>
      <developersConnection>https://example.com/foo/myValue/my-foo/trunk

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tzara Lorand Somogyi
              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: