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 am using cdxgen v10.9.11 in Java repositories that contains some internal dependencies. With this version of cdxgen, even though if I do not set the private credentials in the settings.xml, cdxgen generate an incomplete SBOM.
Falling back to parsing pom.xml files. Only direct dependencies would get included!
Executing 'mvn -fn org.cyclonedx:cyclonedx-maven-plugin:2.8.0:makeAggregateBom -DoutputName=bom -DincludeTestScope=true -q' in /home/user/TestRepos/repo1/artifact/jobs/REPO1-01-ES
Executing 'mvn dependency:tree -DoutputFile=/tmp/cdxmvn-hTavdr/mvn-tree.txt' in /home/user/TestRepos/repo1/artifact/jobs/REPO1-01-ES
Falling back to parsing pom.xml files. Only direct dependencies would get included!
Multiple errors occurred while building this project with maven. The SBOM is therefore incomplete!
Falling back to parsing pom.xml files. Only direct dependencies would get included!
Executing 'mvn -fn 2.8.0:makeAggregateBom -DoutputName=bom -DincludeTestScope=true -q' in /home/user/TestRepos/repo1/artifact/jobs/REPO1-01-ES
Executing 'mvn dependency:tree -DoutputFile=/tmp/cdxmvn-UPKvzb/mvn-tree.txt' in /home/user/TestRepos/repo1/artifact/jobs/REPO1-01-ES
Falling back to parsing pom.xml files. Only direct dependencies would get included!
Multiple errors occurred while building this project with maven. The SBOM is therefore incomplete!
I have tried using --technique "manifest-analysis" with v11.1.7 but the result is the same.
The problem occurs even when I have a settings.xml with the credentials for the private repositories. With v10.x I get some internal components and with v11.x the SBOM is empty.
Can I reproduce exactly the same behavior in v11.x than I had in v10.x?
If not, are there some parameters that I am missing and can make it work?
The text was updated successfully, but these errors were encountered:
Check the env variable CDX_MAVEN_PLUGIN=2.8.0. This must be the full value of the plugin including the name. CDX_MAVEN_PLUGIN=org.cyclonedx:cyclonedx-maven-plugin:2.9.1
Hi,
I am using cdxgen v10.9.11 in Java repositories that contains some internal dependencies. With this version of cdxgen, even though if I do not set the private credentials in the settings.xml, cdxgen generate an incomplete SBOM.
$ cdxgen --version
10.9.11
env | grep PREFER
PREFER_MAVEN_DEPS_TREE=false
env | grep CDX
CDX_MAVEN_INCLUDE_TEST_SCOPE=true
cdxgen --spec-version 1.5 .
Executing 'mvn -fn org.cyclonedx:cyclonedx-maven-plugin:2.8.0:makeAggregateBom -DoutputName=bom -DincludeTestScope=true -q' in /home/user/TestRepos/repo1
Executing 'mvn dependency:tree -DoutputFile=/tmp/cdxmvn-pE47ut/mvn-tree.txt' in /home/user/TestRepos/repo1
Falling back to parsing pom.xml files. Only direct dependencies would get included!
Executing 'mvn -fn org.cyclonedx:cyclonedx-maven-plugin:2.8.0:makeAggregateBom -DoutputName=bom -DincludeTestScope=true -q' in /home/user/TestRepos/repo1/artifact/jobs/REPO1-01-ES
Executing 'mvn dependency:tree -DoutputFile=/tmp/cdxmvn-hTavdr/mvn-tree.txt' in /home/user/TestRepos/repo1/artifact/jobs/REPO1-01-ES
Falling back to parsing pom.xml files. Only direct dependencies would get included!
Multiple errors occurred while building this project with maven. The SBOM is therefore incomplete!
$ cat bom.json
{"bomFormat":"CycloneDX","specVersion":"1.5", <...> "tools":{"components":[{"group":"https://github.com/CycloneDX","name":"cdxgen","version":"10.9.11","purl":"pkg:npm/%40cyclonedx/[email protected]","type":"application","bom-ref":"pkg:npm/@cyclonedx/[email protected]","author":"OWASP Foundation","publisher":"OWASP Foundation"}]},"authors":[{"name":"OWASP Foundation"}],"lifecycles":[{"phase":"build"}],"component":{"group":"","name":"repo1","version":"latest","type":"application","bom-ref":"pkg:gem/repo1@latest","purl":"pkg:gem/repo1@latest","components":[]},"properties":[{"name":"cdx:bom:componentTypes","value":"maven"},{"name":"cdx:bom:componentNamespaces","value":"org.hsqldb"}]},"components":[{"group":"org.hsqldb","name":"hsqldb","version":"2.0.0","purl":"pkg:maven/org.hsqldb/[email protected]?type=jar","type":"library","bom-ref":"pkg:maven/org.hsqldb/[email protected]?type=jar","evidence":{"identity":{"field":"purl","confidence":1,"methods":[{"technique":"manifest-analysis","confidence":1,"value":"/home/user/TestRepos/repo1/artifact/jobs/REPO1-01-ES/pom.xml"}]}},"properties":[{"name":"SrcFile","value":"/home/user/TestRepos/repo1/artifact/jobs/REPO1-01-ES/pom.xml"}]}],"services":[],"dependencies":[]}
However, if I use cdxgen 11.1.7 with PREFER_MAVEN_DEPS_TREE=false to use it the same way than previous version:
$ cdxgen --version
11.1.7
$ env | grep CDX
CDX_MAVEN_INCLUDE_TEST_SCOPE=true
CDX_MAVEN_PLUGIN=2.8.0
$ cdxgen --spec-version 1.5 .
Executing 'mvn -fn 2.8.0:makeAggregateBom -DoutputName=bom -DincludeTestScope=true -q' in /home/user/TestRepos/repo1
Executing 'mvn dependency:tree -DoutputFile=/tmp/cdxmvn-VtMlTd/mvn-tree.txt' in /home/user/TestRepos/repo1
Falling back to parsing pom.xml files. Only direct dependencies would get included!
Executing 'mvn -fn 2.8.0:makeAggregateBom -DoutputName=bom -DincludeTestScope=true -q' in /home/user/TestRepos/repo1/artifact/jobs/REPO1-01-ES
Executing 'mvn dependency:tree -DoutputFile=/tmp/cdxmvn-UPKvzb/mvn-tree.txt' in /home/user/TestRepos/repo1/artifact/jobs/REPO1-01-ES
Falling back to parsing pom.xml files. Only direct dependencies would get included!
Multiple errors occurred while building this project with maven. The SBOM is therefore incomplete!
$ cat bom.json
{"bomFormat":"CycloneDX","specVersion":"1.5",<...> "tools":{"components":[{"group":"https://github.com/CycloneDX","name":"cdxgen","version":"11.1.7","purl":"pkg:npm/%40cyclonedx/[email protected]","type":"application","bom-ref":"pkg:npm/@cyclonedx/[email protected]","author":"OWASP Foundation","publisher":"OWASP Foundation"}]},"authors":[{"name":"OWASP Foundation"}],"lifecycles":[{"phase":"build"}],"properties":[]},"components":[],"services":[],"dependencies":[]}
I have tried using --technique "manifest-analysis" with v11.1.7 but the result is the same.
The problem occurs even when I have a settings.xml with the credentials for the private repositories. With v10.x I get some internal components and with v11.x the SBOM is empty.
Can I reproduce exactly the same behavior in v11.x than I had in v10.x?
If not, are there some parameters that I am missing and can make it work?
The text was updated successfully, but these errors were encountered: