Giovds commented on code in PR #1060:
URL: https://github.com/apache/maven/pull/1060#discussion_r1141722983
##########
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:
Done
--
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]