本文介绍了mvn archetype:generate和mvn archetype:create有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这两个之间有什么区别?
any difference between those two?
推荐答案
archetype:create
是已弃用的旧格式,需要在启动时定义所有属性,而archetype:generate
是更新且更舒适的方式.原型:generate了解列出了原型的那些目录,并可以询问您缺少的属性/变量.
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.
这篇关于mvn archetype:generate和mvn archetype:create有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!