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 Osipov (Jira)" <ji...@apache.org> on 2023/03/03 16:38:00 UTC

[jira] [Updated] (MNG-7707) ${project.basedir} folder creation when running plugin

     [ https://issues.apache.org/jira/browse/MNG-7707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov updated MNG-7707:
--------------------------------
    Description: 
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 folder is already created.

  was:
When running {{mvn archetype:generate}} in a directory without providing a valid {{{}pom.xml{}}}, a directory named {{{}$\{project.basedir{}}}} is created in the folder 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 folder is already created.


> ${project.basedir} folder 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 folder is already created.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)