如何在没有原型插件默认参数的情况下创建原型?
How to create an archetype without the archetype-plugins default parameters?
我想创建一个不使用某些标准 maven-archetype-plugin 参数的原型,例如 groupId
或 package
。
我该如何配置?
我还没有在 archetype doumentation and on the documentation of the metadata 上找到这方面的信息。
也找不到方法,因为我不知道你是使用命令行还是使用某些 GUI,我分享了我的命令行方式的解决方法,当你使用生成时只需添加:
-Dpackage=- -DgroupId=-
如果您的配置中没有使用它们,您将不会遇到任何问题,也不必在交互模式中进行提示。
我想创建一个不使用某些标准 maven-archetype-plugin 参数的原型,例如 groupId
或 package
。
我该如何配置?
我还没有在 archetype doumentation and on the documentation of the metadata 上找到这方面的信息。
也找不到方法,因为我不知道你是使用命令行还是使用某些 GUI,我分享了我的命令行方式的解决方法,当你使用生成时只需添加:
-Dpackage=- -DgroupId=-
如果您的配置中没有使用它们,您将不会遇到任何问题,也不必在交互模式中进行提示。