This post shows how to create a Maven archetype that can conditionally include or exclude files while generating a project.