in src/main/java/org/apache/maven/plugins/artifact/buildinfo/DescribeBuildOutputMojo.java [185:202]
private String describeArtifact(Artifact a, boolean skipped) throws MojoExecutionException {
String sha256 = skipped ? "" : (" " + sha256(a.getFile()));
String ce = ("".equals(a.getClassifier()) ? "" : (':' + a.getClassifier()))
+ ("jar".equals(a.getExtension()) ? "" : (":" + a.getExtension()));
String path = rootPath.relativize(a.getFile().toPath()).toString();
int i = path.indexOf("target/");
if (i >= 0) {
path = MessageUtils.buffer().mojo(path.substring(0, i + 7)).build() + path.substring(i + 7);
}
String remoteFilename = BuildInfoWriter.getArtifactFilename(a);
return /*a.getGroupId() + ':' +*/ a.getArtifactId() /*+ ':' + a.getVersion()*/
+ MessageUtils.buffer().strong(ce) + " = "
+ path + " "
+ (path.endsWith(remoteFilename)
? "-"
: MessageUtils.buffer().strong(remoteFilename).build())
+ " " + a.getFile().length() + sha256;
}