Skip to content

[MNG-7707] ${project.basedir} directory creation when running plugin #9275

Closed

Description

@jira-importer

Giovanni van der Schelde opened MNG-7707 and commented

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 the directory is already created.


Affects: 4.0.0-alpha-4, 4.0.0-alpha-5

Issue Links:

  • MNG-7740 Target directory is flooded with consumer*pom files

Remote Links:

Backported to: 4.0.0-alpha-7

Activity

  1. jira-importer commented on Feb 23, 2023

    @jira-importer
    Author

    Giovanni van der Schelde commented

    After some debugging the directory seems to be created in the ConsumerPomArtifactTransformer#injectTransformedArtifacts().

    The project.getBuild().getDirectory() is filled with the value ${project.basedir}/target.

    Tamas Cservenak, was it your intention to create a temporary consumer pom (line 70), or should it not even inject the transformed artifacts as there is no project to build?

  2. jira-importer commented on Feb 24, 2023

    @jira-importer
    Author

    Tamas Cservenak commented

    This would mean that interpolation is incomplete, at the moment build starts, the project should be fully interpolated. gnodet ?

  3. jira-importer commented on Mar 3, 2023

    @jira-importer
    Author

    Tamas Cservenak commented

    But yes, after 2nd reading... "should it not even inject the transformed artifacts as there is no project to build" bit is something the code is missing.

  4. added
    bug
    priority:minor
    on Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpriority:minor

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions