Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7395

Support interpolation in extensions.xml

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.8.5, 4.0.0-alpha-1, 4.0.0
    • None
    • None

    Description

      Currently an entry has to be the following form:

      <extension>
      	<groupId>org.eclipse.tycho</groupId>
      	<artifactId>tycho-build</artifactId>
      	<version>2.7.0-SNAPSHOT</version>
      </extension>
      

      This has the drawback that I always need to edit the extension.xml file and there is no way to specify it on the commandline.

      The proposal is to allow the follwoing:

      <extension>
      	<groupId>org.eclipse.tycho</groupId>
      	<artifactId>tycho-build</artifactId>
      	<version>${tycho-version|2.6.0}</version>
      </extension>
      

      I would then expect the following:

      1. If no systemproperty with name 'tycho-version' exits, the value after the | is used as a default
      2. If a systemproperty with name 'tycho-version' exits it is used as a version

      That way I can call mvn -Dtycho-version=2.7.0-SNAPSHOT clean install to override the default version.

      Attachments

        Activity

          People

            michael-o Michael Osipov
            laeubi Christoph Läubrich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: