We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Projects that inherit properties like scm or url from parent pom files always include the website or vcs external references like that
"externalReferences" : [ { "type" : "website", "url" : "URL value" }, { "type" : "vcs", "url" : "URL value" } ],
One option is to provide empty values in child pom.xml like that:
<scm> <url></url> </scm> <url></url>
which leads to this bom file:
"externalReferences" : [ { "type" : "website", "url" : "" }, { "type" : "vcs", "url" : "" } ],
and another option is to place correct URLs, which in some scenarios may not be desired.
Therefore the bom file may appear like that:
Do other options exist?
Would it be meaningful to change this code:
cyclonedx-maven-plugin/src/main/java/org/cyclonedx/maven/DefaultModelConverter.java
Line 272 in 47742b1
to:
if (url == null || url.isEmpty() || url.trim().length() == 0 || doesComponentHaveExternalReference(component, referenceType)) { return; }
to allow not to add an externalReference for a certain type if the URL provided for this type is explicitly empty?
The text was updated successfully, but these errors were encountered:
you're right that the intent of url == null is more isEmpty(url) can you provide a PR, please?
url == null
isEmpty(url)
Sorry, something went wrong.
addressing issue CycloneDX#388. Checking if URL is null, empty, or bl…
72ff141
…ank (using Java 1.8 compatibility)
c38c2e4
…ank (using Java 1.8 compatibility) Signed-off-by: mtgag <githreg@mtg.de>
addressing issue #388. Checking if URL is null, empty, or blank (usin…
c08b9c7
…g Java 1.8 compatibility) Signed-off-by: mtgag <githreg@mtg.de>
fixed by #396
No branches or pull requests
Projects that inherit properties like scm or url from parent pom files always include the website or vcs external references like that
One option is to provide empty values in child pom.xml like that:
which leads to this bom file:
and another option is to place correct URLs, which in some scenarios may not be desired.
Therefore the bom file may appear like that:
Do other options exist?
Would it be meaningful to change this code:
cyclonedx-maven-plugin/src/main/java/org/cyclonedx/maven/DefaultModelConverter.java
Line 272 in 47742b1
to:
to allow not to add an externalReference for a certain type if the URL provided for this type is explicitly empty?
The text was updated successfully, but these errors were encountered: