Skip to content

Commit 25e3668

Browse files
geoffpotterslawekjaranowski
authored andcommitted
Add property for outputDirectory in create-from-project mojo
Add the "outputDirectory" property, so I can change where this puts the generated archetype code from the command line.
1 parent ac9d130 commit 25e3668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateArchetypeFromProjectMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public class CreateArchetypeFromProjectMojo extends AbstractMojo {
197197
/**
198198
* The directory where the archetype should be created.
199199
*/
200-
@Parameter(defaultValue = "${project.build.directory}/generated-sources/archetype")
200+
@Parameter(defaultValue = "${project.build.directory}/generated-sources/archetype", property = "outputDirectory")
201201
private File outputDirectory;
202202

203203
@Parameter(property = "testMode")

0 commit comments

Comments
 (0)