michael-o commented on code in PR #1060: URL: https://github.com/apache/maven/pull/1060#discussion_r1140001266
########## maven-core/src/main/java/org/apache/maven/internal/transformation/ConsumerPomArtifactTransformer.java: ########## @@ -62,6 +62,11 @@ public final class ConsumerPomArtifactTransformer { private static final String CONSUMER_POM_CLASSIFIER = "consumer"; public void injectTransformedArtifacts(MavenProject project, RepositorySystemSession session) throws IOException { + if (project.getFile() == null) { + // If there is no build POM there is no reason to inject artifacts for the consumer POM. + // https://issues.apache.org/jira/browse/MNG-7707 Review Comment: I think the link is redudant since you have `git blame` which will lead you to the ticket anyway -- 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org