SAY-5 commented on code in PR #271:
URL: 
https://github.com/apache/maven-artifact-plugin/pull/271#discussion_r4588207468


##########
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:
   Agreed, dropped it from `artifacts` in 66e40ff, same as the ignored main 
artifact and build POM. The IT now expects ok=2 and ignored=0, and still fails 
with the NPE on master.



-- 
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]

Reply via email to