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

custom variable filtered in created resources

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-alpha-4
    • Creator, Generator
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: