You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to suggest that purl2url for Maven packages would be a great feature. DejaCode and ScanCode.io would benefit from this, as they could then perform automatic scans for license and copyright information. Currently scans for Maven do not seem to work as they rely on packageurl-python for converting PURLs to URLs, as seen here:
I've just noticed that there is already an open pull request for this feature, so I would very much appreciate if this could be reviewed and potentially merged. #177
That is a good point, there could be various file types behind it. Sometimes that seems to be indicated through a parameter such as ?type=jar , but this does not have to be present in the PURL. In that case you would need the kind of logic you have linked to resolve it.
Activity
robertguetzkow commentedon Feb 8, 2025
I've just noticed that there is already an open pull request for this feature, so I would very much appreciate if this could be reviewed and potentially merged. #177
pombredanne commentedon Feb 11, 2025
@robertguetzkow Thanks. The only reason why this may have not been implemented for Maven is the many different types of artefacts for the Maven "coordinates". There is some code in https://github.com/aboutcode-org/purldb/blob/main/minecode/collectors/maven.py too for that, but there is no reason not have it here. Actually this is a must!
robertguetzkow commentedon Feb 12, 2025
That is a good point, there could be various file types behind it. Sometimes that seems to be indicated through a parameter such as
?type=jar, but this does not have to be present in the PURL. In that case you would need the kind of logic you have linked to resolve it.tdruez commentedon Jun 5, 2025
Maven support added in #177 thanks to @fafanoulele !
Few examples from the tests:
get_repo_urlget_download_url