Scala 如何使用giter8`description`字段?

Scala 如何使用giter8`description`字段?,scala,maven,templates,properties-file,giter8,Scala,Maven,Templates,Properties File,Giter8,我正在使用giter8为Scala服务创建模板。我想在模板中使用的字段包括description。然而,这似乎是。你知道我该怎么解决这个问题吗 这些是我当前(工作)的属性: description = Please answer the following questions:\n id = package = com.sebi.$id$ description = Please answer the following questions:\n id = package = com.se

我正在使用giter8为Scala服务创建模板。我想在模板中使用的字段包括
description
。然而,这似乎是。你知道我该怎么解决这个问题吗

这些是我当前(工作)的属性:

description = Please answer the following questions:\n

id =
package = com.sebi.$id$
description = Please answer the following questions:\n

id =
package = com.sebi.$id$
description = Please describe $id$
14:00 $ g8 file://blaze-service-template.g8/

Please answer the following questions:


id []: test
package [com.sebi.test]:
_description [Please describe test]: A stackoverflow Minimal, Complete, and Verifiable example

Template applied in ./.
运行模板时,我得到:

13:55 $ g8 file://blaze-service-template.g8/

Please answer the following questions:


id []: test
package [com.sebi.test]:

Template applied in ./.
13:56 $ g8 file://blaze-service-template.g8/

context [anonymous] 1:17 attribute id isn't defined
Please describe


context [anonymous] 1:17 attribute id isn't defined
Please describe

id []: test
package [com.sebi.test]:

Template applied in ./.
这就是我想要实现的目标:

description = Please answer the following questions:\n

id =
package = com.sebi.$id$
description = Please answer the following questions:\n

id =
package = com.sebi.$id$
description = Please describe $id$
14:00 $ g8 file://blaze-service-template.g8/

Please answer the following questions:


id []: test
package [com.sebi.test]:
_description [Please describe test]: A stackoverflow Minimal, Complete, and Verifiable example

Template applied in ./.
运行模板时,我得到:

13:55 $ g8 file://blaze-service-template.g8/

Please answer the following questions:


id []: test
package [com.sebi.test]:

Template applied in ./.
13:56 $ g8 file://blaze-service-template.g8/

context [anonymous] 1:17 attribute id isn't defined
Please describe


context [anonymous] 1:17 attribute id isn't defined
Please describe

id []: test
package [com.sebi.test]:

Template applied in ./.
不知何故,使用
description
作为自定义字段会破坏giter8

如果我使用
\u description
作为自定义字段,它将起作用:

description = Please answer the following questions:\n

id =
package = com.sebi.$id$
description = Please answer the following questions:\n

id =
package = com.sebi.$id$
description = Please describe $id$
14:00 $ g8 file://blaze-service-template.g8/

Please answer the following questions:


id []: test
package [com.sebi.test]:
_description [Please describe test]: A stackoverflow Minimal, Complete, and Verifiable example

Template applied in ./.
如果我对必填字段使用
\u description
,我会得到:
14:05$g8file://blaze-service-template.g8/

context [anonymous] 1:17 attribute id isn't defined
Please describe

_description [Please answer the following questions:
]:

你说的“保留”是什么意思?链接的示例显示了
maven(…)
的用法,它与
description
字段无关。请更好地解释一下你正在尝试做什么,以及什么没有按预期工作。@laugedelic
description
第一行似乎是一项要求。例如,如果我将其替换为
desc
,则我的模板会中断:
des[请回答以下问题:[这里有一条新的线]]:
第一行的描述
不是giter8模板的要求。我不明白你发布的代码。为什么有两个
description
s?请为您的问题准备一个最小的模板。请看@laugedelic谢谢你的耐心,对问题做了一些修改。这不是很小,但我希望它是完整的和可验证的现在问题是清楚的!我认为这是giter8中的一个bug,而且一直都是。你说的“保留”是什么意思?链接的示例显示了
maven(…)
的用法,它与
description
字段无关。请更好地解释一下你正在尝试做什么,以及什么没有按预期工作。@laugedelic
description
第一行似乎是一项要求。例如,如果我将其替换为
desc
,则我的模板会中断:
des[请回答以下问题:[这里有一条新的线]]:
第一行的描述
不是giter8模板的要求。我不明白你发布的代码。为什么有两个
description
s?请为您的问题准备一个最小的模板。请看@laugedelic谢谢你的耐心,对问题做了一些修改。这不是很小,但我希望它是完整的和可验证的现在问题是清楚的!我认为这是giter8中的一个bug,而且它一直存在。