Skip to content

Feature request: purl2url for Maven #179

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

Open
robertguetzkow opened this issue Feb 8, 2025 · 3 comments
Open

Feature request: purl2url for Maven #179

robertguetzkow opened this issue Feb 8, 2025 · 3 comments

Comments

@robertguetzkow
Copy link

robertguetzkow commented Feb 8, 2025

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:

Only the reverse direction url2purl for Maven seems to be currently implemented in packageurl-python.

@robertguetzkow
Copy link
Author

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
Copy link
Member

@robertguetzkow Thanks. The only reason why this may have not bee 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
Copy link
Author

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.

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