[ https://issues.apache.org/jira/browse/MNG-7707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17701601#comment-17701601 ]
ASF GitHub Bot commented on MNG-7707: ------------------------------------- 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 > ${project.basedir} directory creation when running plugin > --------------------------------------------------------- > > Key: MNG-7707 > URL: https://issues.apache.org/jira/browse/MNG-7707 > Project: Maven > Issue Type: Bug > Affects Versions: 4.0.0-alpha-4, 4.0.0-alpha-5 > Reporter: Giovanni van der Schelde > Priority: Minor > > When running {{mvn archetype:generate}} in a directory without providing a > valid {{{}pom.xml{}}}, a directory named {{{}$\{project.basedir{}}}} is > created in the directory where you execute the command from. > I could be wrong but the reason which leads me to believe it to be in > maven-core is that when I put a breakpoint at the start of the {{exectute()}} > method in the [generate > mojo|https://github.com/apache/maven-archetype/blob/master/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateProjectFromArchetypeMojo.java#L177] > the directory is already created. -- This message was sent by Atlassian Jira (v8.20.10#820010)