How to expand variable into nested directory in maven-archetype
问题 Suppose I have set groupId to com.example , and artifactId to fancy.project , and now I want to create a archetype, such that when created, expands into the following structure: |--src |--main |--com |--example |-fancy |-project |-App.java That is, I wonder how to expand a variable into a nested directory. I understand that the dual-underscore-wrapped variables will be substituted in file/directory names, but I can only get the following with __groupId__ . |--src |--main |--com.example |