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

support environment variable interpolation in alt*DeploymentRepository properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 3.8.1
    • None
    • None

    Description

      In settings.xml, I'm trying to do something like ...

      <profile>
        <id>distribution</id>
        <activation>
          <activeByDefault>true</activeByDefault>
        </activation>
        <properties>
          <altDeploymentRepository>my-repo::default::${env.REPO_URI}</altDeploymentRepository>
        </properties>
      </profile>
      

      If I replace ${env.REPO_URI} with a literal value, it works.

      I thought maybe I was hitting some general limitation where interpolation isn't supported for profile properties, but the example here makes it seem as though they are supported; i.e. this bit ...

      <properties>
        <user.install>${user.home}/our-project</user.install>
      </properties>
      

      Is this something that could be supported for alt*DeploymentRepository properties?

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            rhbecker RH Becker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: