elharo commented on code in PR #271:
URL:
https://github.com/apache/maven-artifact-plugin/pull/271#discussion_r4563414053
##########
src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildInfoWriter.java:
##########
@@ -209,10 +209,11 @@ void printArtifacts(MavenProject project) throws
MojoExecutionException {
pomArtifact = pomArtifact.setFile(project.getFile());
}
- artifacts.put(pomArtifact, prefix + n);
if (isIgnore(pomArtifact)) {
p.println("# ignored " + getArtifactFilename(pomArtifact));
+ artifacts.put(pomArtifact, null);
Review Comment:
This looks wrong at first glance. We're supposed to ignore this artifact
here. You probably shouldn't put it in artifacts at all.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]