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

Discuss distribution management URL #245

Closed
stevespringett opened this issue Dec 24, 2022 · 4 comments · Fixed by #477
Closed

Discuss distribution management URL #245

stevespringett opened this issue Dec 24, 2022 · 4 comments · Fixed by #477

Comments

@stevespringett
Copy link
Member

This came about as a result of #239 which has since been reverted.

BOM requires url to download component, pom.dM.repository is for publication (e.g. OSSRH for Maven Central)

For example, commons-compress 1.12 BOM point distribution to https://repository.apache.org/service/local/staging/deploy/maven2 which is the staging area to publish to Maven Central from Apache Software Foundation

For the overwhelming majority of artifacts deployed to Central, the distribution URL will be that of Maven Central. I think ASF (and possibly a few others) are unique in that they have dedicated staging environments. We cannot cripple this functionality for the majority of artifacts for the benefit of a few.

Perhaps we can include a workaround. A few possibilities include:

Let's discuss @hboutemy as the solution needs to be able to work for everyone.

@hboutemy
Copy link
Contributor

hboutemy commented Dec 28, 2022

For the overwhelming majority of artifacts deployed to Central, the distribution URL will be that of Maven Central

in fact, pom.distributionManagement.repository.url does not contain the url to download from Maven Central, but to publish to it: https://central.sonatype.org/publish/publish-guide/#releasing-to-central
Precise url is different for Apache projects, but usual project use OSSRH url = https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/

I don't think this distributionManagement url is useful for BOM consumer

If you want to provide download url, you'll need a configuration in CycloneDX Maven plugin to define the base download URL, eventually with Maven Central download as default value

@hboutemy
Copy link
Contributor

looking at new external reference types from CycloneDX 1.5 spec https://cyclonedx.org/docs/1.5/json/#metadata_component_externalReferences_items_type

@stevespringett it looks like pom.distributionManagement.repository.url corresponds to the new distribution-intake type = "The location where a component was published to. This is often the same as "distribution" but may also include specialized publishing processes that act as an intermediary"?

@stevespringett
Copy link
Member Author

Yes, that is correct @hboutemy

@hboutemy
Copy link
Contributor

thank you: I'll update the plugin for CDX 1.5

hboutemy added a commit that referenced this issue Mar 19, 2024
hboutemy added a commit that referenced this issue Mar 19, 2024
this fixes #245

Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
hboutemy added a commit that referenced this issue Mar 20, 2024
this fixes #245

Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants