You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Yan Zhang (JIRA)" <ji...@apache.org> on 2018/01/24 03:57:00 UTC

[jira] [Commented] (ARCHETYPE-311) Basedir property in archetype:generate cannot be overriden

    [ https://issues.apache.org/jira/browse/ARCHETYPE-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16336854#comment-16336854 ] 

Yan Zhang commented on ARCHETYPE-311:
-------------------------------------

{{Same for me.}}

{{maven-archetype-plugin:3.0.1, }}`-Dbasedir` doesn't work at all. 

Others also suffer from the same issue:

[https://stackoverflow.com/questions/46439296/how-can-i-specify-the-directory-where-to-create-the-project-for-archetypegenera]

 

After so many years, is there any update?

 

> Basedir property in archetype:generate cannot be overriden
> ----------------------------------------------------------
>
>                 Key: ARCHETYPE-311
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-311
>             Project: Maven Archetype
>          Issue Type: Bug
>         Environment: Windows XP, maven 2.2.0
>            Reporter: Samuli Saarinen
>            Priority: Major
>         Attachments: patch.txt
>
>
> Following is the output when trying to execute archetype:generate using alternative directory for basedir
> D:\tmp>mvn -o -npr archetype:generate *-Dbasedir=d:/foo*
> ....
> [INFO] ----------------------------------------------------------------------------
> [INFO] Using following parameters for creating OldArchetype: maven-archetype-quickstart:RELEASE
> [INFO] ----------------------------------------------------------------------------
> [INFO] Parameter: groupId, Value: test
> [INFO] Parameter: packageName, Value: test
> [INFO] Parameter: package, Value: test
> [INFO] Parameter: artifactId, Value: test
> [INFO] Parameter: basedir, Value: *D:\tmp*
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [INFO] ********************* End of debug info from resources from generated POM ***********************
> [INFO] OldArchetype created in dir: D:\tmp\test
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 8 seconds
> [INFO] Finished at: Fri Apr 16 10:53:06 EEST 2010
> [INFO] Final Memory: 10M/19M
> [INFO] ------------------------------------------------------------------------



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)