Hi,

> Is there a way to access the contents of the <licenses> element as POM
> properties? I'd like to reference the URL of the first license element
> in a plugin execution, but there doesn't appear to be a
> ${pom.license.url} or anything similar.

here's what I use as an <instruction> for the maven-bundle-plugin to
generate a Bundle-License line in my MANIFEST.MF:

> <Bundle-License>${project.licenses[0].url};description="${project.licenses[0].name}"</Bundle-License>

Works like a charm, as long as you have exactly one license.

Hope this helps.

Andreas

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to