Camel file name from artifactId for Maven archetype?

For the Maven archetype, how can a camel generate a generated file name using ${artifactId} in archetype-metadata.xml ? For example, sample-my should give SampleMy.java .

I assumed that this is needed to be a speed pattern, but this requires specifying a macro in archetype-metadata.xml . A macro can be created in pluginApp .java, as shown on the page:

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

How to do archetype-metadata.xml ?

The exact fragment in question is located at:

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

+6
source share

All Articles