On 2018-05-18T17:01:52 +0200
Andreas Sewe <[email protected]> wrote:

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

Looks good, thanks!

You're also using it for the exact same reason I'd be using it. :)

-- 
Mark Raynsford | http://www.io7m.com

Attachment: pgp4j6uhckNwT.pgp
Description: OpenPGP digital signature

Reply via email to