In a somewhat complex project with subprojects the generation of the SBOM lead to the following error:
* What went wrong:
Bad type on operand stack
Exception Details:
Location:
org/apache/maven/model/validation/DefaultModelValidator.validateEffectiveModel(Lorg/apache/maven/model/Model;Lorg/apache/maven/model/building/ModelBuildingRequest;Lorg/apache/maven/model/building/ModelProblemCollector;)V @926: invokespecial
Reason:
Type 'org/apache/maven/model/DeploymentRepository' (current frame, stack[2]) is not assignable to 'org/apache/maven/model/Repository'
Current Frame:
bci: @926
flags: { }
locals: { 'org/apache/maven/model/validation/DefaultModelValidator', 'org/apache/maven/model/Model', 'org/apache/maven/model/building/ModelBuildingRequest', 'org/apache/maven/model/building/ModelProblemCollector', 'org/apache/
maven/model/building/ModelProblem$Severity', 'org/apache/maven/model/DependencyManagement', 'java/util/Set', 'org/apache/maven/model/building/ModelProblem$Severity', 'org/apache/maven/model/Build', 'org/apache/maven/model/Reporting', 'org/apache/maven/model/DistributionManagement' }
stack: { 'org/apache/maven/model/validation/DefaultModelValidator', 'org/apache/maven/model/building/ModelProblemCollector', 'org/apache/maven/model/DeploymentRepository', 'java/lang/String', 'org/apache/maven/model/building/ModelBuildingRequest' }
Bytecode:
0000000: ... (redacted)
Stackmap Table:
same_frame_extended(@134)
append_frame(@148,Integer,Integer)
same_frame_extended(@227)
chop_frame(@233,2)
append_frame(@296,Object[#11],Object[#172])
append_frame(@330,Object[#222],Integer,Integer)
same_frame_extended(@431)
chop_frame(@437,2)
append_frame(@510,Object[#11],Object[#194],Object[#224])
chop_frame(@665,1)
same_frame(@693)
append_frame(@716,Object[#539],Object[#224])
chop_frame(@785,1)
append_frame(@796,Object[#224])
chop_frame(@831,1)
append_frame(@842,Object[#224])
chop_frame(@877,1)
append_frame(@915,Object[#560])
full_frame(@943,{Object[#2],Object[#53],Object[#110],Object[#284],Object[#11],Object[#172]},{})
Unfortunately I'm not allowed to share the project and couldn't recreate with a smaller project. I am aware that this might not be very helpful for the solution of this problem, but at least wanted to give a heads up that there might be a problem.
In a somewhat complex project with subprojects the generation of the SBOM lead to the following error:
Unfortunately I'm not allowed to share the project and couldn't recreate with a smaller project. I am aware that this might not be very helpful for the solution of this problem, but at least wanted to give a heads up that there might be a problem.