Skip to content

Commit

Permalink
display configured classifier from #506
Browse files Browse the repository at this point in the history
fixes #547

Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
  • Loading branch information
hboutemy committed Sep 25, 2024
1 parent cb74626 commit cffeb1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public abstract class BaseCycloneDxMojo extends AbstractMojo {
protected static final String MESSAGE_CREATING_BOM = "CycloneDX: Creating BOM version %s with %d component(s)";
static final String MESSAGE_CALCULATING_HASHES = "CycloneDX: Calculating Hashes";
protected static final String MESSAGE_WRITING_BOM = "CycloneDX: Writing and validating BOM (%s): %s";
protected static final String MESSAGE_ATTACHING_BOM = " attaching as %s-%s-cyclonedx.%s";
protected static final String MESSAGE_ATTACHING_BOM = " attaching as %s-%s-%s.%s";
protected static final String MESSAGE_VALIDATION_FAILURE = "The BOM does not conform to the CycloneDX BOM standard as defined by the XSD";

/**
Expand Down Expand Up @@ -463,7 +463,7 @@ private void saveBomToFile(String bomString, String extension, Parser bomParser)
}

if (!skipAttach) {
getLog().info(String.format(MESSAGE_ATTACHING_BOM, project.getArtifactId(), project.getVersion(), extension));
getLog().info(String.format(MESSAGE_ATTACHING_BOM, project.getArtifactId(), project.getVersion(), classifier, extension));
mavenProjectHelper.attachArtifact(project, extension, classifier, bomFile);
}
}
Expand Down

0 comments on commit cffeb1c

Please sign in to comment.