You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "michael-o (via GitHub)" <gi...@apache.org> on 2023/03/17 09:38:13 UTC

[GitHub] [maven] michael-o commented on a diff in pull request #1060: [MNG-7707] ${project.basedir} directory creation when running plugin

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-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org