Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use LICENSE and NOTICE files provided in META-INF of jar of dependencies #546

Open
NilsEngelbach opened this issue Jan 25, 2024 · 4 comments

Comments

@NilsEngelbach
Copy link

Would it be possible to use the LICENSE and NOTICE files provided in the META-INF of the jars of the dependencies?

I don't know if there is a defined standard but many packages provide the files like this in their META-INF:

  • LICENSE
  • icense.txt
  • LICENSE.md
  • NOTICE
  • LICENSE-notice.md
@Master-Code-Programmer
Copy link
Contributor

They can be used, with the new extendedInfo:
https://www.mojohaus.org/license-maven-plugin/aggregate-download-licenses-mojo.html#extendedinfo

The info is then written into the xml report, and can also be exported into an Excel or Calc report:
https://www.mojohaus.org/license-maven-plugin/aggregate-download-licenses-mojo.html#writeexcelfile
https://www.mojohaus.org/license-maven-plugin/aggregate-download-licenses-mojo.html#writecalcfile

@NilsEngelbach
Copy link
Author

Thank you very much, I will definitly try it! Must have overlooked it...

@Master-Code-Programmer
Copy link
Contributor

@NilsEngelbach And, were there problems, or did it work as hoped?

@NilsEngelbach
Copy link
Author

Looks good so far, I sill need to double check for my given dependencies if they contain all the information I would expect. But on the first glance it looks good. The only thing that was confusing me is that the option is only availalbe for the aggreagte-download-licenses goal but not for the download-licenses goal. Is there a reason for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants