【发布时间】:2017-11-17 08:53:54
【问题描述】:
所以我正在做一个原型,我想使用一些属性,但不希望它们被提示给用户。
例如,我有这个代码:
<requiredProperty key="grupo">
<defaultValue>${artifactId.substring(0,8).toLowerCase()}</defaultValue>
</requiredProperty>
我想为参数 grupo 使用 defaultValue,而不要求用户接受它作为默认值。
这个问题已经被问过:Maven create archetype: Is there a way to declare properties (defaulted to a value) so as not to have them prompted? 但没有回答。
非常感谢您的宝贵时间
【问题讨论】:
-
您找到解决方案了吗?
标签: java maven maven-archetype