You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/04/16 21:34:00 UTC

[jira] [Commented] (MNG-6356) property from list element in pom model

    [ https://issues.apache.org/jira/browse/MNG-6356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17085276#comment-17085276 ] 

Michael Osipov commented on MNG-6356:
-------------------------------------

The problem could be simply Plexus Interpolation.

> property from list element in pom model
> ---------------------------------------
>
>                 Key: MNG-6356
>                 URL: https://issues.apache.org/jira/browse/MNG-6356
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.5.2
>         Environment: linux
>            Reporter: Ernst Reissner
>            Priority: Major
>             Fix For: waiting-for-feedback, wontfix-candidate
>
>         Attachments: project.tar
>
>
> I tried to filter $\{project.developers[0].email}
> Although mvn help:evaluate finds the correct answer, filtering does not work else.
> Even if i havein the properties section of the pom one of the three
> <authorMail>ernst.reissner@simuline.eu</authorMail>
>  <authorMail>${project.organization.name}</authorMail>
>  <authorMail>$\{project.developers[0].email}</authorMail>
> the latter is not replaced and just comes litterally.
>  
> Update: I added a minimal project
> comprising a pom and some resource to be filtered.
> What we see is, that ${project.organization.name} is filtered,
> whereas $\{project.developers[0].email} is not: remains literal.
>  
> Also I think, better than developers[0] would be a way to use a label,
> e.g. a key, like an identifier. (but this is a feature request. )
>  
>  



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