What's the difference between mvn archetype:generate and mvn archetype:create

前端 未结 2 1450
温柔的废话
温柔的废话 2021-02-13 04:38

any difference between those two?

2条回答
  •  别跟我提以往
    2021-02-13 05:02

    archetype:create is the old and deprecated form that needed all properties defined upon start, while archetype:generate is the newer and more comfortable way. archetype:generate knows about those catalogs where archetypes are listed and can ask you for missing properties/variables.

    I guess the reason for introducing a new command was that the new generate was not backward-compatible, so it might have broken existing scripts that rely on it.

提交回复
热议问题