Skip to content

Commit

Permalink
Resolves #128 - Added metadata to project component
Browse files Browse the repository at this point in the history
  • Loading branch information
stevespringett committed Sep 3, 2021
1 parent 3930ccd commit d531c51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,7 @@ protected Metadata convert(final MavenProject project) {
component.setType(resolveProjectType());
component.setPurl(generatePackageUrl(project.getArtifact()));
component.setBomRef(component.getPurl());
if (project.getLicenses() != null) {
component.setLicenseChoice(resolveMavenLicenses(project.getLicenses()));
}
extractMetadata(project, component);
metadata.setComponent(component);
return metadata;
}
Expand Down

0 comments on commit d531c51

Please sign in to comment.