You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MNG-7707] ${project.basedir} directory creation when running plugin #9275
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
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?
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.
Activity
jira-importer commentedon Feb 23, 2023
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?
jira-importer commentedon Feb 24, 2023
Tamas Cservenak commented
This would mean that interpolation is incomplete, at the moment build starts, the project should be fully interpolated. gnodet ?
jira-importer commentedon Mar 3, 2023
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.