You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2021/05/18 13:19:00 UTC

[jira] [Moved] (MNG-7158) support environment variable interpolation in alt*DeploymentRepository properties

     [ https://issues.apache.org/jira/browse/MNG-7158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte moved MDEPLOY-285 to MNG-7158:
---------------------------------------------

                  Key: MNG-7158  (was: MDEPLOY-285)
    Affects Version/s:     (was: 2.8.2)
                       3.8.1
           Issue Type: New Feature  (was: Improvement)
              Project: Maven  (was: Maven Deploy Plugin)

> support environment variable interpolation in alt*DeploymentRepository properties
> ---------------------------------------------------------------------------------
>
>                 Key: MNG-7158
>                 URL: https://issues.apache.org/jira/browse/MNG-7158
>             Project: Maven
>          Issue Type: New Feature
>    Affects Versions: 3.8.1
>            Reporter: RH Becker
>            Priority: Minor
>
> In *settings.xml*, I'm trying to do something like ...
> {code:xml}
> <profile>
>   <id>distribution</id>
>   <activation>
>     <activeByDefault>true</activeByDefault>
>   </activation>
>   <properties>
>     <altDeploymentRepository>my-repo::default::${env.REPO_URI}</altDeploymentRepository>
>   </properties>
> </profile>
> {code}
> 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|https://maven.apache.org/settings.html#properties] makes it seem as though they are supported; i.e. this bit ...
> {code:xml}
> <properties>
>   <user.install>${user.home}/our-project</user.install>
> </properties>
> {code}
> Is this something that could be supported for alt*DeploymentRepository properties?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)