Skip to content

Conversation

joaonmatos
Copy link
Contributor

Having the license information in the POM file allows it to be self-contained. A glance to it is enough to determine licensing.

This is especially important for private artifact mirrors, that often do not allow closed-source, source-available or hard-copyleft libraries to be used. Without the license information on the POM file, some of these repositories will deny mirroring this library.

I'm trying to mirror the Avaje libraries in a private artifact repository, but am running into the issue of the repository not being able to extract the license from the repository (likely not a part of the JARs), which then means that it doesn't mirror the libraries correctly.

Having the license information in the POM file allows it to be self-contained. A glance to it is enough to determine licensing.

This is especially important for private artifact mirrors, that often do not allow closed-source, source-available or hard-copyleft libraries to be used. Without the license information on the POM file, some of these repositories will deny mirroring this library.
@SentryMan
Copy link
Collaborator

SentryMan commented Aug 20, 2025

Instead of copying to each file, would it not work if you add it to the parent pom? (EDIT: no wait we already have the license in the top level java11-oss pom )

Copy link
Collaborator

@SentryMan SentryMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very strange but ok

@rbygrave rbygrave merged commit c73a308 into avaje:main Aug 20, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

3 participants