I am using giter8 to create a template for Scala services. Among the fields that I want to use in the template is description
. However this seems to be reserved as a Maven property. Any idea how I can work around this?
These are my current (working) properties:
description = Please answer the following questions:\n
id =
package = com.sebi.$id$
Running the template, i get:
13:55 $ g8 file://blaze-service-template.g8/
Please answer the following questions:
id []: test
package [com.sebi.test]:
Template applied in ./.
This is what i want to achieve:
description = Please answer the following questions:\n
id =
package = com.sebi.$id$
description = Please describe $id$
Running the template, i get:
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 ./.
Somehow, using description
as a custom field breaks giter8.
If i use _description
as a custom field, it works:
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 ./.
If i use _description
for the required field, i get:
14:05 $ g8 file://blaze-service-template.g8/
context [anonymous] 1:17 attribute id isn't defined
Please describe
_description [Please answer the following questions:
]: