Uploaded image for project: 'Maven Resources Plugin'
  1. Maven Resources Plugin
  2. MRESOURCES-257

property from list element in pom model

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.2.0
    • None
    • None
    • linux

    Description

      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. )

       

       

      Attachments

        1. project.tar
          130 kB
          Ernst Reissner

        Issue Links

          Activity

            People

              dennisl Dennis Lundberg
              ErnstReissner Ernst Reissner
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: