来自artifactId的Camel案例文件名为Maven原型?

时间:2016-01-04 01:46:07

标签: maven velocity minecraft archetypes

对于Maven原型,如何使用${artifactId}中的archetype-metadata.xml来生成文件名?例如,sample-my应该提供SampleMy.java

我认为这需要是一个速度模板,但这需要在archetype-metadata.xml中指定一个宏。可以在 pluginApp .java中创建宏,如下所示:

https://github.com/arun-gupta/spigot-archetype/blob/master/src/main/resources/archetype-resources/src/main/java/pluginApp.java#L4-L7

如何完成archetype-metadata.xml

有问题的确切片段位于:

https://github.com/arun-gupta/spigot-archetype/blob/master/src/main/resources/META-INF/maven/archetype-metadata.xml#L14

1 个答案:

答案 0 :(得分:1)

我将其修复如下:

asyncio