-
Notifications
You must be signed in to change notification settings - Fork 3
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
Mapping from Pom.xml to SPDX-id. #4
Comments
Note that it's not really a specific Maven thing, it's just that there is no specification in Maven for the license name format. It's probably the same problem in various other context (I think it's the same for the Debian packages, for example). |
We (the SPDX project) are working with Maven folks (and Pypi folks and a number of other communities) to help them adopt he SPDX short license identifiers. |
Yes, Maven Central will probably never be full SPDX because of the existing artifacts. And even if Sonatype starts to impose it for new projects, having other repositories do it is going to be quite a challenge... |
I prepared an To cope with the mapping issue, merged two different techniques:
---> if any of you want to contribute to this file, feel free to do it; anyway, please pay the very attention to not insert a double alias because it would cause an error. The csv is treated with
ConvertToSPDX() merges these two techniques to convert a verbose license name into an SPDX id. By both techniques: two more functions are used: IsInAliases() and IsAnSPDX(), both return a boolean value: Thank you in advance for your time and help, |
@tmortagne Dear Thomas,
I am sorry not to have specified that still, I don't have a function able to map the randomly used license's name in the Pom.xml with the SPDX-id (which is a file format used to document information on the software licenses, practically recognized as an open standard).
I implemented a similar function to map from scancode names to SPDX-ids, which clearly does not help in this specific case.
I will keep you updated upon developing this mapping function for the java maven project use case.
Sincerely,
Michele
The text was updated successfully, but these errors were encountered: