gpt4 book ai didi

maven - 创建 Maven 原型(prototype) : is there a way to specify a default groupId

转载 作者:行者123 更新时间:2023-12-01 02:28:02 25 4
gpt4 key购买 nike

我使用 create-from-project 创建了一个 maven 原型(prototype).有没有办法指定默认值groupId ?

此原型(prototype)仅供内部使用,默认 groupId将节省一些击键。

谢谢。

最佳答案

您可以通过指定 propertyFile 来做到这一点。

此属性文件可能包含一些属性,包括默认 groupId。所以像这样(在一个名为 something.properties 的文件中):

groupId=com.company

并创建原型(prototype)
mvn archetype:create-from-project -Darchetype.properties=../something.properties

另一个例子 here

关于maven - 创建 Maven 原型(prototype) : is there a way to specify a default groupId,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14879455/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com