maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Hoß <m...@shoss.de>
Subject Re: Accessing child of <licenses> using property syntax?
Date Fri, 08 Jul 2016 09:42:05 GMT
${project.licenses[0].url} should do the trick

On Thu, Jul 7, 2016 at 5:15 PM Andreas Sewe <
sewe@st.informatik.tu-darmstadt.de> wrote:

> Hi,
>
> I vaguely recall having read the answer to this one years ago, but
> googling and searching through the Apache JIRA didn't turn it up again. :-(
>
> Is it possible to access a single child element of <licenses> POM
> element using ${} property syntax? I tried
>
>   ${project.licenses.1.url}
>   ${project.licenses.1.license.url}
>   ${project.licenses.license.1.url}
>   ${project.licenses.0.url}
>   ${project.licenses.0.license.url}
>   ${project.licenses.license.0.url}
>
> but to no avail.
>
> Any pointers are greatly appreciated.
>
> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message