[
https://issues.apache.org/jira/browse/MDEPLOY-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17346618#comment-17346618
]
Robert Scholte commented on MDEPLOY-285:
----------------------------------------
We discussed about the repositories, that we shouldn't allow expressions in it,
this looks like a different topic.
This is about basic plugin configuration, a general Maven issue. I had a look
at
https://github.com/apache/maven/blob/master/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
and it shows that the env.-prefix is used for system properties, not
environment properties, even though the name suggests differently.
> support environment variable interpolation in alt*DeploymentRepository
> properties
> ---------------------------------------------------------------------------------
>
> Key: MDEPLOY-285
> URL: https://issues.apache.org/jira/browse/MDEPLOY-285
> Project: Maven Deploy Plugin
> Issue Type: Improvement
> Affects Versions: 2.8.2
> 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)