Re: Accessing child of using property syntax?
Sebastian Hoß wrote: > ${project.licenses[0].url} should do the trick Thanks, Sebastian. Works like a charm. Now I can generate even nicer OSGi Bundle-License headers than with the maven-bundle-plugin's defaults: > ${project.licenses[0].url};description="${project.licenses[0].name}" Best wishes, Andreas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Accessing child of using property syntax?
${project.licenses[0].url} should do the trick On Thu, Jul 7, 2016 at 5:15 PM Andreas Sewe < s...@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 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-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Accessing child of using property syntax?
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 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-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org